TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 am using \textcolor command in the body of my TeX file. I need to generate Postscript file.

When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can get the colored text as I have planed in the .tex file. However, when I go through the "Option Menu\Configure TeXStudio\Build\PS chain", I get undefined control sequence error for \textcolor command. It seems \textcolor command is unknown when I am trying to generate PS output.

Is there anyway so I can fix the problem? Perhaps, using an alternative command to change the text color or an alternative way to generate PS file?

share|improve this question

closed as off-topic by David Carlisle, Heiko Oberdiek, Werner, Jesse, ChrisS Apr 22 '14 at 1:47

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX-SX. Can you make a small example that replicates the problem such that people can check whether it is a code issue or TeXStudio related? – percusse Apr 21 '14 at 16:52
Does your document contains \usepackage{color} or \usepackage{xcolor}? – Heiko Oberdiek Apr 21 '14 at 16:58
I have used \xcolor package. It works fine for generating PDF output (no error). However, when I set it to generate PS output, I get error specifically on \textcolor or \color command! – frank Apr 21 '14 at 16:58
The same error when using \usepackage[dvipsnames]{xcolor}. I guess something is wrong with PS generating method. How can you generate PS output from a .tex file? – frank Apr 21 '14 at 17:05
coding error (package not loaded) – David Carlisle Apr 21 '14 at 23:56