From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6184 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: [ConTeXt] Re: pictures for numbers Date: Fri, 16 Nov 2001 16:47:34 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <200111161547.fAGFlYC05229@sol.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035396727 8296 80.91.224.250 (23 Oct 2002 18:12:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:12:07 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6184 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6184 Hi! [...] > \def\Sleutels#1% > {\hbox{\expandafter\DoSleutels\romannumeral #1\relax}\relax} [...] > %(1)% \setuphead[chapter][numbercommand=\Sleutels] > (1): > ! Missing number, treated as zero. > > \edef > \setstrutdimen ...strutdimen =#3\strutdimen \edef > #1{\the \strutdimen } maybe this is the same problem I had a short time ago. In the new core-con.tex there is: \def\Romannumerals#1% {\expandafter\doRomannumerals\number#1\relax} \def\doRomannumerals#1#2\relax {\ifnum#1#2<10 \ifcase0#1#2\or I\or II\or III\or IV\or V\or VI\or VII\or VIII\or IX\fi \else\ifnum#1#2<100 \ifcase 0#1\or X\or XX\or XXX\or XL\or L\or LX\or LXX\or LXXX\or XC\fi \doRomannumerals#2\relax \else\ifnum#1#2<1000 \ifcase 0#1\or C\or CC\or CCC\or CD\or D\or DC\or DCC\or DCCC\or CM\fi \doRomannumerals#2\relax \else\ifnum#1#2<4000 \ifcase 0#1\or M\or MM\or MMM\fi \doRomannumerals#2\relax \else \uppercase\expandafter{\romannumeral#1#2}% \fi\fi\fi\fi} [this should go in core-con.tex] Viele Grüße, Patrick Gundlach