Re: [NTG-context] color in pdfTeX

2004-03-05 Thread Henning Hraban Ramm
Am Freitag, 05.03.04, um 08:21 Uhr (Europe/Zurich) schrieb pawcoo: \pdfliteral{0 1 0 0 k} colorized text \pdfliteral{0 0 0 1 k} % come back to black Seems to be currently the only way. The \pdfliteral{} primitives are done between two x/y transformations, so you can't use q/Q grouping. And the

Re: [NTG-context] color in pdfTeX

2004-03-05 Thread pawcoo
Henning Hraban Ramm wrote: You really need plain pdfTeX, do you? Otherwise you know ConTeXt's sophisticated color commands? Actually I tried to retrive color tricks from ConTeXt core but without results. Do I need plain pdfTeX? Good question! In general, I feel better when I understand every

Re: [NTG-context] color in pdfTeX

2004-03-04 Thread pawcoo
On Wed, 3 Mar 2004, pawcoo wrote: please, consider the following simple example of pdftex code: \pdfliteral{0 1 0 0 k} % Magenta (ugly) \hrule height 1pt \hrule height 1.1pt \end The upper hairline remains black. What should I do to colorize thin lines also? Lines with width = 1 bp are

Re: [NTG-context] color in pdfTeX

2004-03-04 Thread Hartmut Henkel
On Thu, 4 Mar 2004, pawcoo wrote: Lines with width = 1 bp are stroked by pdftex, lines wider than that are filled (procedure pdf_set_rule). Stroking CMYK color is set by K, nonstroking by k, so you need both: Note, forgot this: This only affects the \hrule and \vrule primitives. When you

Re: [NTG-context] color in pdfTeX

2004-03-04 Thread pawcoo
\pdfliteral{0 1 0 0 k} \pdfliteral{0 1 0 0 K} Thanks! That works. I'll dare to ask one more question. How to use colors in (some kind of) groups, meaning localy? In example, how to set some nice color for given object only (word, letter or rule)? Or should I always say something like