5
votes
Accepted
Beamsplitter and transmission beam problem
pst-optexp cannot be run with xelatex.
Run it with latex->dvips->ps2pdf -dNOSAFER (the latest GhostScript version doesn't support transparency without the NoSafer option):
\documentclass[...
5
votes
Why is my beam no propagating beyond the second mirror?
Debugging your setup
pst-optexp offers you different debugging possibilities:
Using \psset{pswarning} you can enable warnings at Postscript level. For your example you get "Warning pst-optexp: The ...
4
votes
Why is my beam not propagating downstream from the mirror?
The beam misses the dump optbox, because it is drawn in the wrong direction. You use the same node both as start and as end node, in which case the box is oriented horizontally, because we have no ...
3
votes
Accepted
Smooth transition between fiber elements in pst-optexp
The \drawfiber command can work properly only of you give at least one component to draw from/to, and not only a point. If a component is given by id or name, only then can pst-optexp use the ...
3
votes
Accepted
Similar package to tikzscale for pstricks?
\documentclass{article}
\begin{document}
\begin{pspicture}[showgrid](0,-0.3)(3,3.3)
\pnode(0,2.5){A}\pnode(2,2.5){B}\pnode(2,1.5){C}
\mirror[labelangle=-45](A)(B)(C){M}
\optbox[position=start, ...
3
votes
How to design a galvo-scanner to re-direct a beam
The easiest way to get a custom reflective component is using the \opttripole macro, where you can define whatever you want:
\documentclass[margin=12pt]{standalone}
\usepackage{pst-optexp}
\begin{...
3
votes
Accepted
optexp environment error when compiling with XeLaTeX
The pst-optexp package doesn't work with XeLaTeX. You must use the toolchain
latex file.tex && dvips file.dvi && ps2pdf file.ps
3
votes
Accepted
pst-optexp: Trouble in drawing collimated beam
In general you have different options to adjust the beam path in such a situation: fine tune the position of the second lens, or its refractive index. Or you can define the beam path piecewise, see ...
3
votes
Accepted
How to show node labels as shown in pst-optexp documentation?
Here you are. I completed the code. Note it works with pdflatex, thanks to the auto-pst-pdf package, if you add the --enable-write18 switch under MiKTeX, -shell-escape under TeX Live or MacTeX.
It ...
2
votes
Accepted
How to customize transmission grating in pst-optexp?
Such special gratings aren't supported out-of-the-box. However, you can use \optdipole to use any kind of object as component:
\documentclass[preview,border=20pt]{standalone}
\usepackage{pst-optexp}
...
2
votes
Accepted
How to make a 3-port component using pst-optexp
In order to draw a fiberbox with custom internal structure you must define your own macro to call \fiberbox with changed \fiberbox@comp.
The internal macro fiberbox@comp simply draws the fiberbox ...
2
votes
Why is my beam trace skewed?
Solution: Solved it by changing the source position which hits BS1 to DM1 instead of M1:
\beamsplitter[bsstyle=plate, compname=BS1,label = 0.8 -90](DM1)(BS1)(BS2){BS1}
2
votes
Accepted
Locally override ps-style in pst-optexp
In general usefiberstyle=false should allow you to use a local style. However, it seems that \optfiber is special with this respect.
But you can use addtoFiber to change the fiber line style locally, ...
2
votes
Accepted
Building blocks of optical setups in pst-optexp to avoid reusing code
You can define a simple command with \def, which takes as input parameters the component's coordinate and the name of the respective input/output node for connecting different components. The ...
2
votes
Accepted
WDMCoupler with multiple inputs in pst-optexp
I just released version 6.0 of pst-optexp.
Now a wdmcoupler can have an arbitrary number of input nodes:
\documentclass[margin=5pt]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{...
2
votes
Accepted
Modify filter appearance in pst-optexp
I have added one line and modified a second one. Both are marked in the source below.
\documentclass[margin=0]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(7,3)
\psset[...
2
votes
Accepted
Draw optical filters with pst-optexp
First of all, pst-optexp doesn't work properly with XeLaTeX, compile with latex, dvips and ps2pdf. That's the reason, why your filter look weird, and different from those in the manual.
As flip ...
2
votes
Drawing a conical mirror in pst-optexp
There is no ready-to-use component for your task, but you can quite easily define your own component.
pst-optexp offers plain, curved and path interfaces (see e.g. https://tex.stackexchange.com/a/...
2
votes
Accepted
Align beam endings at angled grating in pst-optexp
The main advantage of \drawbeam is connecting components, without knowing about the actual shape, reflection and transmission behavior. You haven't used that at all, so that \drawbeam starts at a ...
1
vote
Add arrows to drawwidebeam in pst-optexp
Wide beams don't support arrows. Basically, they are filled areas, and must also be able to handle curved edges.
In general, you would need to draw additional beams for the arrows.
In your case, this ...
1
vote
Problem compiling latex document: invalid STOI argument (Miktex, pst-optexp)
I've been able to solve the problem after resetting my personal miktex configuration in the 'cleanup' tab, redownloading all the relevant packages, redownloading texworks and restarting again. The ...
1
vote
Accepted
How to flip the orientation of beamsplitter in pst-optexp package
The three nodes of a \beamsplitter are the source, center of the beamsplitter and the target of the reflected beam. The reflective interface is rotated accordingly.
So if the beam should come from A,...
1
vote
Positioning along optical path with pst-optexp
Maybe this is close to what you want?
\documentclass[border=1cm, 12pt, dvipsnames]{standalone}%pstricks,
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsfonts, amssymb}
\...
1
vote
How can I manipulate the transmittance of mirrors in pst-optexp?
pst-optexp has semitransparent mirrors (mirrortype=semitrans), which work like beamsplitters: when drawing the beams, it is automatically determined, if the transmittive or reflective path is taken, ...
Only top scored, non community-wiki answers of a minimum length are eligible