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 wish to create a figure using pstricks code, and then to display only a cropped region of the figure. I thought that the arguments to \begin{pspicture}(...,...)(...,...) would allow me to do this, but changing those arguments seems to have no effect whatsoever on the output.

I am using TeXShop in OSX, so I suppose that compilation is via epstopdf and pdflatex, etc.

I would like a solution that does not involve exporting the figures to external files and then subsequently cropping. Currently 100% of the code to generate the .pdf is in the .tex file, and I hope to keep it that way.

share|improve this question
up vote 5 down vote accepted

I think you might be looking for


Note the *

share|improve this answer

Use standalone class and compile the source with latex-dvips-ps2pdf sequence. You will get a tight standalone output as follows,

enter image description here




share|improve this answer

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.