How can I convert a color name (such as used with the xcolor package) to a pdfliteral code, like q 1 0 0 rg (for red)?
Tell me more
×
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.
in pdf it is: |
||||
colorpackage normally deal with this for LaTeX users, as this keeps code driver-independent. Also, with a sufficiently up-to-date pdfTeX or LuaTeX, why use\pdfliteralrather than\pdfcolorstack? – Joseph Wright♦ Sep 19 '11 at 9:28\colorthere because I'm inserting PDF annotations from the Lua code. – ℝaphink Sep 19 '11 at 9:30