Questions tagged [pst-optexp]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 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} \...
user avatar
  • 1,657
1 vote
0 answers
33 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){...
user avatar
  • 517
2 votes
1 answer
34 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, ...
user avatar
  • 1,657
2 votes
1 answer
65 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 ...
user avatar
  • 1,657
3 votes
1 answer
60 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} \...
user avatar
  • 1,657
3 votes
1 answer
66 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 ...
user avatar
  • 1,657
3 votes
1 answer
49 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,...
user avatar
  • 1,657
1 vote
0 answers
71 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: \...
user avatar
  • 11
2 votes
1 answer
111 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 ...
user avatar
  • 21
2 votes
1 answer
67 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,...
user avatar
  • 517
1 vote
1 answer
29 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 ...
user avatar
  • 517
2 votes
1 answer
205 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 ...
user avatar
  • 517
4 votes
1 answer
78 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}[...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 11
2 votes
1 answer
249 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 ...
user avatar
1 vote
1 answer
477 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{...
user avatar
4 votes
1 answer
80 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 ...
user avatar
  • 41
2 votes
2 answers
459 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}(...
user avatar
1 vote
1 answer
89 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]...
user avatar
  • 1,441
3 votes
2 answers
313 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 ...
user avatar
  • 1,441
2 votes
1 answer
455 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\...
user avatar
  • 23
1 vote
1 answer
185 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 ...
user avatar
  • 265
1 vote
1 answer
180 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,...
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} \...
user avatar
  • 111
6 votes
1 answer
167 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} \...
user avatar
3 votes
1 answer
148 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} \...
user avatar
  • 281
2 votes
1 answer
446 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} \...
user avatar
2 votes
1 answer
297 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 ...
user avatar
3 votes
0 answers
92 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 ...
user avatar
  • 131
2 votes
1 answer
215 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 ...
user avatar
3 votes
1 answer
316 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{...
user avatar
2 votes
1 answer
538 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 ...
user avatar
  • 21
3 votes
0 answers
180 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 ...
user avatar
4 votes
1 answer
873 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-...
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 ...
user avatar
  • 11
5 votes
1 answer
193 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{...
user avatar
  • 281
2 votes
1 answer
286 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 ...
user avatar
  • 41
8 votes
1 answer
1k 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. ...
user avatar
4 votes
1 answer
1k 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 ...
user avatar
  • 347
4 votes
2 answers
178 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+...
user avatar
3 votes
1 answer
519 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 ...
user avatar
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 ...
user avatar
  • 33
4 votes
1 answer
614 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....
user avatar
  • 41
4 votes
1 answer
271 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?
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: ...
user avatar
  • 599