I need to create PNG and PDF files from the same .tex source using pdflatex (Texlive 2010, Ubuntu).

To make PNG files, there's no problem with dvipng utility.

But with PDF files (created by the pdflatex --output-format=pdf command), I've no colored output, just black text.

This is my code, can I fix this problem? How?





\textcolor{colore}{ test text }


1 Answer 1


It's a common mistake to specify the dvips or pdftex options. This should never be done in the global options nor when loading graphicx and color.

Only drivers different from these (dvipdfm, for instance) should be specified if needed.

  • Thank's, but removing dvips from .tex and using dvipdfm on output i've wrong output. There's no way to let dvips and color package live together?
    – Flavio
    Commented Sep 21, 2011 at 13:54
  • You don't need dvipdfm unless you use that program for producing the PDF file. That's the meaning of if needed. Don't specify any option for the standard drivers such as dvipng and dvips or for pdflatex.
    – egreg
    Commented Sep 21, 2011 at 14:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .