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
------------------------------------------------------------------------ The pst-optexp package --- Drawing optical experimental setups Maintained by Christoph Bersch E-mail: [email protected] Released under the LaTeX Project Public License v1.3c or later See http://www.latex-project.org/lppl.txt ------------------------------------------------------------------------ The package pst-optexp is a collection of optical components that facilitate easy sketching of optical experimental setups. A lot of different free-ray and fiber components are provided, which alignment, positioning and labelling can be achieved in very simple and flexible ways. The components can be connected with fibers or beams, realistic raytraced beam paths are also possible. Installation ------------ The package is supplied in dtx format and as a pre-extracted zip file, pst-optexp.tds.zip. The later is most convenient for most users: simply unzip this in your local texmf directory and run texhash to update the database of file locations. The pst-optexp package is also contained in MiKTeX and TeX Live distributions. If you want to unpack the dtx yourself you must run "tex pst-optexp.ins", to typeset the documentation run "latex pst-optexp.dtx". The package requires recent version of pst-node, multido, pstricks-add, pst-eucl, and environ.
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 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
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.