[pstricks] PSTricks and standalone package

Clemens Schäfermeier XC-lemens at web.de
Mon May 16 17:20:29 CEST 2016


Dear all,
running the latest MiKTeX 64 bit and compiling the attached example, the 
output is a landscape-like pdf, however it used to cropped to the 
bounding box of the drawing.
Compilation:

latex -> dvips -> gswin64c.exe (with -sPAPERSIZE=a4 -dSAFER -dBATCH 
-dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps")

This is, afaik, the standard LaTeX => PS => setting from the 
TeXniCCenter editor.

As it appeared after the latest updates, I suspect some package causing 
that issue. If someone has an idea about the cause, thanks for sharing.

Cheers
Clemens

-------------- next part --------------
\documentclass{standalone}

\usepackage{pst-optexp}

\begin{document}

\begin{pspicture}*[showgrid = true](-2,-1)(6,5)
  \pnode(1,-1){S}
  \pnode(1,0){A}
  \pnode(1,1){B}
  \pnode(1,2){C}
  \pnode(1,4){D}
  \pnode(2,1){E}
  \pnode(4,1){F}
  \pnode(3,3){G}
  \optretplate[abspos = 1, labelangle = 180](S)(A)
  \beamsplitter[labelangle = 0, labeloffset = 1](0,0)(B)(2,2)
  \mirror[](C)(D)(2, 3)
  \lens[lensradius = 1, abspos = 1, labeloffset = 1, labelangle = 170](D)(F)
  \mirror[](B)(F)(3, 2)
  \lens[lensradius = 1, abspos = 1, labeloffset = 1, labelangle = -10](F)(D)
  \optbox[position = 0.5, labeloffset = 0, labelref = relative](D)(F)

  \drawwidebeam[beamwidth = 0.1, fillstyle = solid, fillcolor = red, linecolor = red](S){1}{2}{3}{4}{7}
  \drawwidebeam[beamwidth = 0.1, fillstyle = solid, fillcolor = red, linecolor = red]{1}{2}{5}{6}{7}
\end{pspicture}

\end{document}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crop_test.pdf
Type: application/pdf
Size: 4187 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20160516/05e568b4/attachment.pdf>


More information about the PSTricks mailing list