TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to reproduce an example (figure 8) from the pst-optic documentation and it creates an unrecoverable error for Ghostscript (version 9.02). This is on a Mac using TeXShop. I have updated pst-optic to the latest version form TeXlive.

Here is the example:




nameFi=F’_1,nameAi={ },nameBi={},nameO=O_1,focus=1,OA=-2,lensGlass=true, lensWidth =0.5]}


Any help or pointers would be appreciated. (Note that I would have liked to add pst-optic as a tag to this question but do not have reputation to do so.)

share|improve this question
Upon further investigation, it appears that the \pspolygon are what is causing the problem. – André Dec 26 '11 at 18:37
up vote 11 down vote accepted

It is not an accent for the points, it is a single quote:


And a polygon is always closed, you do not need the first point again at the end.

enter image description here

share|improve this answer
Thank you, that worked. I had simply copy-pasted the code from the doc and would never have found this. – André Dec 26 '11 at 21:01
I've tried to work with the package pst-optics. But it is not working. I've copied the example in this question and corrected it with the answer. Typesetting in gives the error in line 134 (!!!!) the example only has 19 lines?? auto-pst-pdf Error-pst-auto In the log file: /usr/local/texlive/2013/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty:134: Package auto-pst-pdf Error: "shell escape" (or "write18") is not enabled: auto-pst-pdf will not work! Thanks for the help. – Arne Timperman Sep 3 '13 at 14:54
run it with pdflatex -shell-escape <file> – Herbert Sep 3 '13 at 18:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.