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 have a problem with this file tex:


but I don't understand where is the error.

share|improve this question
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). I think we will need a full minimal working example (MWE) including your preamble. – Joseph Wright Aug 26 '12 at 15:54
It is not related to your problem but it is worth mentioning that it is recommended to use \centering instead of \begin{center}...\end{center}. – kiss my armpit Aug 26 '12 at 16:00
Was there an error message? – LarsH Aug 7 '13 at 17:27

It is the typical error message when using pdflatex with PSTricks.

Run the document with xelatex or use the sequence latex->dvips->ps2pdf (which is often only one click in a GUI). See also FDE no 4 (Frequently Done Error) at http://PSTricks.tug.org

share|improve this answer
This worked for me. Wish I could get the tick beneath the answer :-P but only if it works for the asker! – Host-website-on-iPage Oct 2 '13 at 4:59
Just click the grey tick mark beneath the score on the answer you want to accept. The tick mark will turn green. That means the answer is accepted and everyone will know that the problem has been solved. – Host-website-on-iPage Oct 3 '13 at 6:30

There is another solution : you can use pdfLaTeX with pstricks, provided pdflatex is launched with one of these switches: --enable-write18 (MiKTeX) or --shell-escape (TeXLive), and you load pstricks with the pdf option.

Strangely enough, if you don't load pstricks itself but, say, pstricks-add, with the pdf option, you have an error message: unknown option 'pdf' for package 'pstricks-add'albeit pstricks-add loads pstricks. A workaround consists in setting it as an option to the document class: the class doesn't know the option, and will propose it to each of the packages loaded through the preamble.

The same workaround is valid if you try to load xcolor with an option, there is an option clash for package 'xcolor' error message because pstricks already loads xcolor.

As an example you may begin your document with something like:

\usepackage[11pt, a4paper, twoside, x11names, table, pdf]{article}
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.