ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <H.vanderMeer@uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: playing colors more
Date: Tue, 1 Mar 2011 15:09:29 +0100	[thread overview]
Message-ID: <48C36778-1123-4193-9C85-80E42CAA2ECA@uva.nl> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 503 bytes --]

Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?

Hans van der Meer

\setuppapersize[A5][A5]
\switchtobodyfont[20pt]

\definepalet[dvb][
	colorone=blue,
	colortwo=green   %,colorthree=red
	]
\setuppalet[dvb]
\showpalet[dvb][]

\starttext
\color[colorone]{hello} \quad
\color[colortwo]{hello} \quad

\stoptext



[-- Attachment #1.2.1: Type: text/html, Size: 903 bytes --]

[-- Attachment #1.2.2: test.pdf --]
[-- Type: application/pdf, Size: 4962 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 147 bytes --]

[-- Attachment #1.2.4: test.pdf --]
[-- Type: application/pdf, Size: 4996 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 162 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2011-03-01 14:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 14:09 Hans van der Meer [this message]
2011-03-01 14:11 ` Taco Hoekwater
     [not found]   ` <B57EC386-B363-4003-9C57-CD3835970A24@uva.nl>
2011-03-01 14:52     ` Taco Hoekwater

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=48C36778-1123-4193-9C85-80E42CAA2ECA@uva.nl \
    --to=h.vandermeer@uva.nl \
    --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).