ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: framed parameter
Date: Fri, 30 Jun 2006 10:04:32 +0200	[thread overview]
Message-ID: <D0B784E9-B517-4F9D-9566-1958FDD18AAD@science.uva.nl> (raw)


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

Just curious, because the last of the three examples solves the problem.

Why is it that this is allowed in the parameter list of \framed:

\framed[frame=on,\iftrue width=3cm\fi]{abc}

But this gives an error:
\framed[frame=on,\iftrue background=color,backgroundcolor=green\fi]{abc}

! Incomplete \if; all text was ignored after line 42.
<inserted text>
                 \fi
<*> test.tex
              emergencyend
?

Allthough this works and solves the problem I had:
\framed[frame=on,background=\iftrue color\else none 
\fi,backgroundcolor=green]{abc}

Is this somewhat inconsistent behaviour intrinsic to some parameters?
I thought all parameters are picked up by a macro and then stashed away.

Hans van der Meer




[-- Attachment #1.2: Type: text/html, Size: 3395 bytes --]

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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

             reply	other threads:[~2006-06-30  8:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-30  8:04 Hans van der Meer [this message]
2006-06-30 16:45 ` Taco Hoekwater
2006-06-30 17:05 ` Hans Hagen
2006-06-30 19:35   ` Hans van der Meer
2006-06-30 20:15     ` Hans Hagen

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=D0B784E9-B517-4F9D-9566-1958FDD18AAD@science.uva.nl \
    --to=hansm@science.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).