cbersch / pst-optexp Goto Github PK
View Code? Open in Web Editor NEWDrawing optical experimental setups with PSTricks
License: Other
Drawing optical experimental setups with PSTricks
License: Other
Hi Christoph,
i've installed the following actual versions:
pst-optexp 4.10 2014-06-04
pst-node 1.33 2014-03-25
multido 1.42 2010-05-14
pstricks-add.tex 3.73 2014-06-16
pst-eucl.tex 1.51 2014/05/17
ENVIRON v0.2
Example:
\begin{pspicture}showgrid(3,3.3)
\pnode(0,2.5){A}\pnode(2,2.5){B}\pnode(2,1.5){C}
\mirrorlabelangle=-45(B)(C){M}
\optboxposition=start, labeloffset=0,
labelref=relative(B){box}
\drawbeam(A){1}{2}
\end{pspicture}
test
Output:
Kind Regards
Claus
The beamsplitter cube is rotated by 45 degrees.
It should look like this (section 4.20 from the manual):
Source:
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(3,2)
\beamsplitter[beam,bsstyle=cube,](0,1)(2,1)(2,0){BS}
\end{pspicture}
\end{document}
Built on a fairly recent miktex install. In particular, I have v6 of pst-optext
.
Log file: pst-optexp.log
it would be nice if there was also a \optpoint (as starting point) which would allow to define a beam divergence angle for \drawwidebeam
Hi,
I am using pst-optexp for experiment diagram. I found a problem when using oapmirror. The following code reproduce this:
\documentclass{article}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}[showgrid](8,2)
\pnode(5.0,0.9){In}
\pnode(1.0,1.0){OAP}
\pnode(7.0,1.0){F}
\oapmirror[compname=OAP1](In)(OAP)(F)
\drawwidebeam[beamwidth=.2](In){OAP1}(F)
\end{pspicture}
\end{document}
The output is
which is not expected.
If the coordinate of {In} is changed to (5.0,1.0), nothing appears. If the coordinate of {In} is changed to (5.0,1.1), the result is correct. It seems this problem appears when the vertical coordinate of {In} is below {OAP}. Would you check this? Thanks a lot!
Ming
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.