From: pawcoo <jackos1@poczta.onet.pl>
Subject: Re: color in pdfTeX
Date: Thu, 04 Mar 2004 23:24:34 +0100 [thread overview]
Message-ID: <4047ACA2.7080005@poczta.onet.pl> (raw)
In-Reply-To: <Pine.LNX.4.58.0403032230270.1136@hahepc1.hahe>
> 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 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:
>
> \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
\pdfliteral{0 1 0 0 k}
colorized text
\pdfliteral{0 0 0 1 k} % come back to black
Any clues?
Regards, Pawe/l
next prev parent reply other threads:[~2004-03-04 22:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-03 0:45 color in hairlines pawcoo
2004-03-03 21:36 ` Hartmut Henkel
2004-03-04 22:24 ` pawcoo [this message]
2004-03-04 22:56 ` color in pdfTeX Hartmut Henkel
2004-03-05 7:21 ` pawcoo
2004-03-05 15:33 ` Henning Hraban Ramm
2004-03-05 16:16 ` pawcoo
2004-03-11 2:16 ` Guy Worthington
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4047ACA2.7080005@poczta.onet.pl \
--to=jackos1@poczta.onet.pl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).