[OS X TeX] problems with \pdfliteral

Stephen Moye stephenmoye at cox.net
Sat Jul 22 10:24:47 EDT 2006


No matter how I do it:

\newtoks\colortoks
\newcommand{\whatcolor}[1]{\colortoks={#1 }}
\pdfliteral{\the colortoks k}

or

\newcommand{\whatcolor}[1]{\def\colorit{#1 }}
\expandafter\pdfliteral\expandafter{\colorit k}

I end up with an error (and a blank page where \pdfliteral is used)  
in Acrobat:

"There were too many arguments."

but no error at all in TeXShop or Preview.

Could somebody enlighten me about what is happening, and a workaround?

I'm glad I decided to try this in Acrobat, just as a test...

Thanks for any help.

SGM
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list