Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revtex4 incompatibility #12

Closed
pgf-tikz-bot opened this issue Apr 4, 2006 · 4 comments
Closed

revtex4 incompatibility #12

pgf-tikz-bot opened this issue Apr 4, 2006 · 4 comments

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: kovidgoyal
Timestamp: 2006-04-04 03:32:15

Hi,

pgf/tikz appears to be incompatible with revtex4
(document class provided by the American Physical
Society http://authors.aps.org/revtex4\)

latex main.tex && dvips main.dvi && ps2pdf main.ps
on the following documents produces an error at the
ps2pdf stage and the generated ps is not viewable.

\documentclass[twocolumn]{revtex4}
\usepackage{tikz}
\begin{document}
\title{test}
\maketitle
\begin{tikzpicture}
\end{tikzpicture}
\end{document}

Removing either the twocolumn or the \maketitle fixes
it. pdflatex also produces correct output. The error
generated by gs is
Error: /undefined in pgfo
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1 3 %oparray_pop 1
3 %oparray_pop 1 3 %oparray_pop 1
3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval--
Dictionary stack:
--dict:1119/1686(ro)(G)-- --dict:0/20
(G)-- --dict:81/200(L)-- --dict:175/300(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 15748
ESP Ghostscript 815.01: Unrecoverable error, exit
code 1

Thanks,

Kovid.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2006-04-04 08:37:49

Logged In: YES
user_id=886275

Hi!

indeed. Turns out the revtex4 does *really evil* things like throwing away all
text before the title.

Anyway, I fixed this and the problem should no longer occur in similar
situations. Please try the current CVS that solves the problem.

Thanks for pointing this out,
Till

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2006-04-04 08:37:49

  • status: open --> closed-fixed

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2006-04-04 08:45:54

Logged In: YES
user_id=886275

Hi again,

turns out the CVS of sourceforge is down currently, so I cannot commit (its
supposed to work again tomorrow).

So, here is the diff for the impatient:

In the file pgf/generic/pgf/systemlayer/pgfsys-dvips.def

change the line

\def\pgf@sys@postscript@header#1{\special{! #1}}

to

\def\pgf@sys@postscript@header#1{\AtBeginDvi{\special{! #1}}}

and change the line

\special{!

to

\pgf@sys@postscript@header{

That should do the trick.

Best regards,
Till

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: kovidgoyal
Timestamp: 2006-04-04 17:08:00

Logged In: YES
user_id=1109503

Hi,

Thank you for the prompt response. Current CVS fixes the
test case. I'll let you know if revtex creates anymore
problems.

Kovid.

DominikPeters added a commit to DominikPeters/pgf-tikz-html-manual that referenced this issue Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant