From: Daniel Schopper <daniel.schopper@aon.at>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: checkparameters and current beta (20120802)
Date: Fri, 03 Aug 2012 21:12:42 +0200 [thread overview]
Message-ID: <501C22AA.4000909@aon.at> (raw)
Hi,
\checkparameters seems broken in the current beta. The following example
used to work at least with version 2012.06.13
---------------------------------------------------------------------------------
\def\myCom[#1]{%
\checkparameters[#1]
\ifparameters
\getparameters[do][one=1,two=2,#1]
\doone\ \dotwo
\else
#1
\fi
}
\starttext
\myCom[one]
\myCom[one=one,two=two]
\stoptext
---------------------------------------------------------------------------------
… while with the current beta (2012.08.02) it results in:
system > tex > error on line 11 in file
testcheckparameters.tex: Undefined control sequence ...
1 \def\myCom[#1]{%
2 \checkparameters[#1]
3 \ifparameters
4 \getparameters[do][one=1,two=2,#1]
5 \doone\ \dotwo
6 \else
7 #1
8 \fi
9 }
10 \starttext
11 >> \myCom[one]
12
13 \myCom[one=one,two=two]
14 \stoptext
\checkparameters ..._helpers_get_empty_parameters
#1=@@\_e_o_s_
\myCom [#1]->\checkparameters [#1]
\ifparameters \getparameters
[do][one=1,t...
l.11 \myCom[one]
Thanks in advance,
Daniel
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2012-08-03 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 19:12 Daniel Schopper [this message]
2012-08-03 20:44 ` Wolfgang Schuster
2012-08-04 9:30 ` Daniel Schopper
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=501C22AA.4000909@aon.at \
--to=daniel.schopper@aon.at \
--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).