Text Formatting** WARNING ** Interpreting PS code failed

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

** WARNING ** Interpreting PS code failed

Post by Laurentius »

What do these error messages mean?

** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(277.948, 404.797)" (in PDF)
** WARNING ** >> xxx "ps: save /setgray { pop } def"
** WARNING ** >> Reading special command stopped around >>/setgray { pop } def<<
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(277.948, 404.797)" (in PDF)
** WARNING ** >> xxx "ps: restore"
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(192.578, 349.161)" (in PDF)
** WARNING ** >> xxx "ps: save /setgray { pop } def"
** WARNING ** >> Reading special command stopped around >>/setgray { pop } def<<
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(192.578, 349.161)" (in PDF)
** WARNING ** >> xxx "ps: restore"
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(363.318, 349.161)" (in PDF)
** WARNING ** >> xxx "ps: save /setgray { pop } def"
** WARNING ** >> Reading special command stopped around >>/setgray { pop } def<<
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(363.318, 349.161)" (in PDF)
** WARNING ** >> xxx "ps: restore"
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(162.316, 321.079)" (in PDF)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

** WARNING ** Interpreting PS code failed

Post by localghost »

I don't see any errors messages, just warnings. That's an important difference. It would be much more interesting to see the code in form of a minimal example that produces them. And some specific information about the involved typesetting engine would also be helpful.


Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Error messages

Post by Stefan Kottwitz »

This could mean problems regarding conversion from DVI to PDF (using dvipdfmx possible). It could be caused by wrong a driver option. It's hard to say if you don't show the code (at least the preamble) and the way you compile. Perhaps this doesn't match.

Stefan
LaTeX.org admin
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Re: Error messages

Post by Laurentius »

I just found out that this is caused by the qtree package
and the command (f. Ex.):

\Tree [.{ego fateor} [.homines [.{\it attr.} multos [.{(et \ldots\ et \ldots)\\ moderatos, gravis} ] ] [.{\it præd.\\\rm (\ldots\ et \ldots)} [.fuisse [.{animo ac virtute} excellenti ] ] [.exstitisse [.sine doctrina ] [.per {se ipsos} ] [.habitu [.naturae ipsius ] [.divino prope ] ] ] ] ] ]
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

** WARNING ** Interpreting PS code failed

Post by Stefan Kottwitz »

I still think more information is required, as I said above, because this code runs without problem for me.

Code: Select all

\documentclass{article}
\usepackage{qtree}
\begin{document}
\Tree [.{ego fateor} [.homines [.{\it attr.} multos [.{(et \ldots\ et \ldots)\\
  moderatos, gravis} ] ] [.{\it præd.\\\rm (\ldots\ et \ldots)} [.fuisse
  [.{animo ac virtute} excellenti ] ] [.exstitisse [.sine doctrina ]
  [.per {se ipsos} ] [.habitu [.naturae ipsius ] [.divino prope ] ] ] ] ] ]
\end{document
tree.png
tree.png (6.01 KiB) Viewed 8931 times
Stefan
LaTeX.org admin
Dimmy
Posts: 1
Joined: Sat Jan 30, 2016 9:45 pm

Re: ** WARNING ** Interpreting PS code failed

Post by Dimmy »

Hi!
I am a complete newb, so what I say might make no sense in your case. But anyways. My problem was similar (Unknown token "save" warning with a bunch of other warnings and in my case nothing would show up on the pdf, even though no errors occurred).

I fixed it by setting the following in Configure TeXStudio:
Build&View: DVI->PS->PDF Chain
Default compiler: PDFLaTeX

Actually, I'm not sure what will happen if Build&View is left default. But anyways - maybe this will fix your issues too.
Post Reply