Skip to main content

Questions tagged [pst-optexp]

{pst-optexp} is a {pstricks} package for drawing optical experimental setups.

Filter by
Sorted by
Tagged with
2 votes
1 answer
52 views

How do I connect my \optdetector and \optbox using the fibers/wires in the pst-optexp package?

I've spent today working with, and learning more about the pst-optexp package. So far, I've managed to solve all the problems that I've encountered using it. But the final part of the drawing is ...
Benzv2001's user avatar
1 vote
1 answer
60 views

Align beam endings at angled grating in pst-optexp

I am trying to replicate an optical setup used for CPA using pst-optexp. My current code is the following: \begin{pspicture}(18,20) \Large \definecolor{passiveFiberColor}{HTML}{FF8000} \...
arc_lupus's user avatar
  • 1,781
1 vote
0 answers
46 views

Rotate entire pspicture drawing

I have this code for a pspicture drawing: \documentclass[margin=15pt]{standalone} \usepackage{pst-optexp} \usepackage{newtxtext,newtxmath} \begin{document} \begin{pspicture}(3,5) \pnodes(0,3){A}(1,3){...
Rodrigo's user avatar
  • 567
2 votes
1 answer
72 views

Locally override ps-style in pst-optexp

Per default all fibers in diagrams drawn using pst-optexp appear to be black, except when setting the color explicitly, as shown with the example \begin{pspicture}(18,6) \psset[optexp]{fiber=none, ...
arc_lupus's user avatar
  • 1,781
2 votes
1 answer
75 views

Similar package to tikzscale for pstricks?

For integrating figures drawn in tikz in my projects I use tikzscale such that I do not have to worry about font scaling (and can simply use \includegraphics{} for including figures. I also use ...
arc_lupus's user avatar
  • 1,781
3 votes
1 answer
103 views

Building blocks of optical setups in pst-optexp to avoid reusing code

I have different optical setups I would like to draw using pst-optexp, but not necessarily all in the same document. As an example I have the following code: \documentclass[margin=5pt]{standalone} \...
arc_lupus's user avatar
  • 1,781
3 votes
1 answer
96 views

WDMCoupler with multiple inputs in pst-optexp

In pst-optexp one can use a component called \wdmcoupler with two inputs and one output. For my project I would need a similar coupler, but with n>2 inputs. I could not find such a construct in the ...
arc_lupus's user avatar
  • 1,781
3 votes
1 answer
145 views

Smooth transition between fiber elements in pst-optexp

Hei, I am trying to draw a small fiber-optical design using pst-optexp, but I'm currently stuck with some problems. My MWE code is \documentclass[margin=5pt]{standalone} \usepackage[dvipsnames,...
arc_lupus's user avatar
  • 1,781
1 vote
0 answers
116 views

pst-optexp Drawbeam Error - GPL Ghostscript 9.50: Unrecoverable error, exit code 1 [duplicate]

I have a problem with my pst-optexp package LaTeX script: I can't draw two or more different beams, each one alone works fine, so the error lies in the \drawbeam command. Here an example: \...
The7's user avatar
  • 11
2 votes
1 answer
209 views

Drawing a conical mirror in pst-optexp

I need to draw an optical system which contains a conical mirror, which in the 2D projection is just a triangle or angled mirror. I would like to implement the drawing in pst-optexp. However, I don't ...
ManuelP's user avatar
  • 21
2 votes
1 answer
127 views

Add arrows to drawwidebeam in pst-optexp

I have this setup I made using pst-optexp. I want to add arrows to indicate the direction of the wide beams: Code: \documentclass[margin=0]{standalone} \usepackage{pst-optexp} \usepackage{newtxtext,...
Rodrigo's user avatar
  • 567
1 vote
1 answer
57 views

Modify filter appearance in pst-optexp

I would like to change the appearance of the filters available in pst-optexp: There're three waves in each filter box. I want the ones with a slash to be red and the others to remain black. How can I ...
Rodrigo's user avatar
  • 567
2 votes
1 answer
354 views

Draw optical filters with pst-optexp

I have code that produces the following image at the end of the post: I need to draw different kinds of filters in my setup. For instance, a bandpass filter (BP) a neutral-density filter (ND) and a ...
Rodrigo's user avatar
  • 567
4 votes
1 answer
88 views

Why is my beam not propagating downstream from the mirror?

\documentclass[pstricks,margin=12pt]{standalone} \usepackage{pst-optexp} \usepackage{pst-node} \usepackage{pstricks-add} \psset{useNA=false} \psset{pswarning} \begin{document} \begin{pspicture}[...
Enrique Segura's user avatar
0 votes
1 answer
2k views

Problem compiling latex document: invalid STOI argument (Miktex, pst-optexp)

I've been trying to produce optics figures using the pst-optexp package in latex, however something has gone wrong meaning I can't compile anything in latex now using texworks and miktex. I'm working ...
Oli's user avatar
  • 11
2 votes
1 answer
346 views

Beamsplitter and transmission beam problem

I tried to draw a figure such that the laser beam is transmitted and reflected from a beam splitter. However, following the description on the internet, I ran into two problems, 1) The cubic beam ...
Allen Chiu's user avatar
1 vote
1 answer
605 views

pst-optexp: issue putting beam behind elements [duplicate]

So, I'm having some trouble with pst-optexp lately. There seems to be some compilation problems with my sketch, since it doesn't show the elements properly. My current code is \documentclass{...
Níckolas Alves's user avatar
4 votes
1 answer
86 views

Uncontrollable displacement in positioning pst-optexp component

I am beginner in pst-opexp and I have a problem with positioning component. When I try no draw a lens in the position (2,1) (see code after), I get a lens in the position (1.92,1) (see figure). The ...
eamy's user avatar
  • 41
2 votes
2 answers
544 views

optexp environment error when compiling with XeLaTeX

I have troubles with optexp environment. There is a code \documentclass[pstricks,margin=12pt]{standalone} \usepackage{pst-optexp} \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(...
Ron LaHire's user avatar
1 vote
1 answer
112 views

Why is my beam trace skewed?

I am using the pst-optexp package to configure a optical setup. after drawing the beam path, it appears to be skewed on its return path after it hits a beam splitter. MWE: \documentclass[margin=36pt]...
Rene Duchamp's user avatar
  • 1,501
3 votes
2 answers
384 views

How to design a galvo-scanner to re-direct a beam

I am trying my hands at pst-optexp package and ... The following is the optical setup I am trying to design. So far my approach is to design the flow by tracing the beam path sequentially. I am ...
Rene Duchamp's user avatar
  • 1,501
2 votes
1 answer
562 views

How to flip the orientation of beamsplitter in pst-optexp package

I was trying to plot an interferometer in latex using pst-optexp package. Everything works fine the beamsplitter is in the wrong orientation and need to be fliped 90 degree. However, the command\...
polkolp's user avatar
  • 23
1 vote
1 answer
251 views

Positioning along optical path with pst-optexp

I am trying to draw an object (per example a lens) with the pst-optexp package. The difficulty arises when I try to have this object drawn at a given distance from another object, but along the ...
Mammouth's user avatar
  • 323
1 vote
1 answer
201 views

How can I manipulate the transmittance of mirrors in pst-optexp?

I would like to propagate the beam to the detectors near each mirror. I also would like the propagation to work as normally would (from mirror 1 to mirror 2 to the apertures). \documentclass[pstricks,...
Enrique Segura's user avatar
1 vote
0 answers
76 views

Issue with \drawwidebeam on pst-optexp [duplicate]

I'm trying to use pst-optexp with XeLaTeX, but every time I call \drawwidebeam, I get a broken figure. \documentclass{article} \usepackage{pst-optexp} \usepackage{pst-node} \begin{document} \...
pserra's user avatar
  • 111
6 votes
1 answer
182 views

Why is my beam no propagating beyond the second mirror?

\documentclass[]{revtex4} \usepackage{pst-optexp} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid=true](13,14) \pnodes(2,10){A}(3,10){MIP}(3,12.5){LIP}(3,13){MIIP}(5,13){LIIP} \...
Enrique Segura's user avatar
3 votes
1 answer
171 views

How to customize transmission grating in pst-optexp?

My current working example: \documentclass[preview,border=20pt]{standalone} \usepackage{pst-optexp} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid](2, 2) \pnodes(0,1){A} \...
WDC's user avatar
  • 291
2 votes
1 answer
533 views

pst-optexp Not Displaying Graphics [duplicate]

It seems that pst-optexp is not drawing the graphics associated with a drawing, only the text in it. Here is an example: \documentclass{article} \usepackage{filecontents} \usepackage{pstricks} \...
Billy Kalfus's user avatar
2 votes
1 answer
310 views

pst-optexp with MikTex on Windows

I am trying to draw a diagram with pst-optexp in MikTex on Windows. Every time I try to compile using XeLatex, it would throw an error saying MiKTeX GPL Ghostscript 9.19: Unrecoverable error, exit ...
Billy Kalfus's user avatar
3 votes
0 answers
93 views

Strange output for a beamsplitter with xelatex [duplicate]

I’m trying to figure out how to use the pst-optexp package. However I can’t make the \beamsplitter work. Even with the code provided by the documentation (§4.20, p.46 of the English version of the ...
Luc's user avatar
  • 153
2 votes
1 answer
242 views

How to make a 3-port component using pst-optexp

I'm wanting to create a custom component using the pst-optexp package. So far, I've figured out how to make a two-port custom component that shows the internal structure, but I can't figure out how to ...
Jonathan Wheeler's user avatar
3 votes
1 answer
399 views

How to show node labels as shown in pst-optexp documentation?

In the pst-optexp documentation, they show this example: When I have the following code: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks} \usepackage{pst-optexp} \begin{...
Jonathan Wheeler's user avatar
2 votes
1 answer
660 views

Export PSTricks with pst-optexp to EPS

I have been trying to create EPS files from drawings of several optical experimental setups made with pst-optexp. It all works quit well for pdf files so there is no issue on that front. There is ...
Mario's user avatar
  • 21
3 votes
0 answers
196 views

PSTricks drawing not cropped in standalone

I'm trying to create a drawing using the pst-optexp package, and I can get the drawing to compile, but the output is not cropped to the drawing (the drawing is just placed in the top left corner of a ...
Zach Mitchell's user avatar
4 votes
1 answer
983 views

pst-optexp: Trouble in drawing collimated beam

I want to draw a Z-Scan experimental setup. My lab's DPSS Laser has a beam radius of some value, and I change this value by using a simple telescope. It was supposed to be easy to draw this using pst-...
a-sf-d's user avatar
  • 57
1 vote
1 answer
1k views

Installing the pst-optexp package

I am having trouble installing and using pst-optex package. I went through the documentation installed all the prerequisites. But my tex comiler(TeXMaker) keeps giving errors. The code I have written ...
arjun's user avatar
  • 11
5 votes
1 answer
213 views

Weird whitespace occurs using \drawbeam in pst-optexp

In my drawing using pst-optexp, I found weird whitespace occured when using \drawbeam, \pstVerb and tx@addDict together. Here are the minimum reproduction codes for my claim: \documentclass{...
WDC's user avatar
  • 291
2 votes
1 answer
301 views

pstricks not working with thesis template

I've been trying to get the pst-optexp package working with the thesis template I have, and it's been a nightmare. I'm using MikTeX with pdflatex compilation, as as previously mentioned in How to use ...
drasticbutfine's user avatar
8 votes
1 answer
2k views

Understanding beams in pst-optexp

I'm apparently missing something fundamental in how beams interact with interfaces. I have prepared three simple examples, with the hopes that someone can explain to me why certain things happen. ...
Zach Mitchell's user avatar
4 votes
1 answer
2k views

pst-optexp: draw 4f correlator

I recently discovered pst-optexp and am trying to draw my optical setup for an experiment on it before my deadline. I was looking through the docs and it is an amazing package but there is so much in ...
ginny's user avatar
  • 347
4 votes
2 answers
191 views

where can I find the detailed description of how to use \pstVerb and tx@addDict

I am drawing some setup using Pstricks and pst-optexp. I want to know what the following example means. Also I can't find a detailed description of how to use \pstVerb and tx@addDict. \multido{\i=0+...
Xiaomin Nie's user avatar
3 votes
1 answer
616 views

Drawing an off-axis parabolic mirror in pst-optexp and pst-optic

Having looked through the pst-optexp manual, it doesn't seem that there is a built-in off-axis parabolic mirror. I'm trying to make a diagram of a lab setup that goes like this: Collimated beam falls ...
zmitchell's user avatar
  • 131
3 votes
1 answer
2k views

PSTricks package giving xkeyval error

I have been trying to solve this error by myself but did not find a way. So if someone out there can help me, any help is greatly appreciated! I use Texmaker to run MikTex 2.9. I want to use the ...
Tobias's user avatar
  • 33
4 votes
1 answer
646 views

Acousto-optic modulator in pst-optexp?

pst-optexp not only creates beautiful graphics but also it provides a way to logically describe complex optical setups. one thing I found missing is the ability to define an acousto optical modulator....
yoniwis's user avatar
  • 41
4 votes
1 answer
288 views

Transmission grating in pst-optexp

It seems that transmission gratings have not been implemented yet in the pst-optexp. Does anyone know whether there exists a workaround?
spookyfw's user avatar
  • 599
13 votes
4 answers
2k views

pst-optexp: draw prism compressor

I wanted to draw a prism compressor with the respective beamlines. The general setup works, but the exact control of the beam alignment within the prisms fails. Here is the code that I have so far: ...
spookyfw's user avatar
  • 599