For each compilation, only one of the 2 \rputs can be used. Attempting to activate both will produce a strange output which is only the first \rput can work.



        \rput(!\i\space 1 add dup){\psPrintValue{\i\space 1 add}}

Why does \psPrintValue not allow 2 \rputs to work at the same time?

Edit: I am still using TeXLive 2011.

The strange behavior above occurs only when I use latex->dvips->ps2pdf sequence. For xelatex, it works without problem.

  • is \rput(!\i\space 1 add dup) even legal? I only see \rput documented as taking coordinates as two tex expressions separated by comma? – David Carlisle Jul 19 '12 at 22:56
  • well it seems to be I just didn't see it in the manual (well it's used once in the middle of a large code section on page 182:( Presumably you have a real use case somewhere, because the examples using postscript arithmetic you've been posting could all be done more easily with tex arithmetic? – David Carlisle Jul 19 '12 at 23:01
  • Actually it works for me (TL2012) if I uncomment the second one I get oh where can I put an image, I have to make it a answer? – David Carlisle Jul 19 '12 at 23:07
  • What Kind of strange output so you get? – user2478 Jul 20 '12 at 1:57
  • I'll have a look, but only in 3 weeks – user2478 Jul 20 '12 at 22:00

Actually it works for me (TL2012) if I uncomment the second one I getenter image description here

  • I used latex/dvips/ps2pdf texlive 2012 as downloaded a day or so ago – David Carlisle Jul 19 '12 at 23:14

Problem solved!

-dPDFSETTINGS=/prepress or -dPDFSETTINGS#/prepress (for Windows) passed to ps2pdf caused the error.

  • No, that cannot be the problem for \rput – user2478 Feb 12 '13 at 12:57
  • @Herbert: I have tested it and the problem disappeared. – kiss my armpit Feb 12 '13 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.