ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Felix Ingram <f.ingram.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Tikz and \color
Date: Mon, 19 Sep 2011 12:10:58 +0100	[thread overview]
Message-ID: <CAK5aKC_rUSAFO2bGJ3A=HLRjnuhDx4SesXB+aMdR_s4JKuGy_w@mail.gmail.com> (raw)

Hello all,

I'm using Tikz to draw some fancy text boxes, but I've bumped into an
annoying problem. If you run the example below then the body text will
be rendered in red. If you remove the "REMOVE ME" text, then it will
be rendered in black. I would expect the black version to be the
correct version but I need to add text to my node.

Am I using \color correctly? Does anyone know how I might go about
debugging this? Is there a way to determine whether it's Context or
Tikz that's misbehaving?

\usemodule[tikz]
\setuppapersize[A4][A4]
\setupcolors[state=start]
\setuphead[section]
[
after={\color[red]{\hrule width 125mm \vskip 2em}},
]
\starttext
\section{Some Title}
\starttikzpicture
    \node{
REMOVE ME
    };
\stoptikzpicture
Flank sint culpa, dolore dolore ham hock chicken t-bone irure
pastrami. Eiusmod corned beef sint enim. Corned beef nulla qui aute,
meatloaf ground round cillum ex. Ut swine pork belly, tongue pig sed
tail frankfurter biltong ut bresaola anim. Jowl consequat tenderloin,
meatloaf fatback eu sint duis mollit chuck biltong. Nostrud cupidatat
nulla meatball, brisket irure dolor. Aliqua chuck ut in, nisi ea
t-bone shankle bresaola.
\stoptext


Thanks in advance,

Felix
___________________________________________________________________________________
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-09-19 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 11:10 Felix Ingram [this message]
2011-09-19 11:41 ` Hans Hagen
2011-09-19 12:28   ` Felix Ingram

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='CAK5aKC_rUSAFO2bGJ3A=HLRjnuhDx4SesXB+aMdR_s4JKuGy_w@mail.gmail.com' \
    --to=f.ingram.lists@gmail.com \
    --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).