From: Patrick Gundlach <gundlach@irb.cs.uni-dortmund.de>
Subject: Re: [ConTeXt] Re: pictures for numbers
Date: Fri, 16 Nov 2001 16:47:34 +0100 [thread overview]
Message-ID: <200111161547.fAGFlYC05229@sol.cs.uni-dortmund.de> (raw)
Hi!
[...]
> \def\Sleutels#1%
> {\hbox{\expandafter\DoSleutels\romannumeral #1\relax}\relax}
[...]
> %(1)% \setuphead[chapter][numbercommand=\Sleutels]
> (1):
> ! Missing number, treated as zero.
> <to be read again>
> \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
next reply other threads:[~2001-11-16 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Your message of "Fri, 16 Nov 2001 16:06:37 +0100." <20011116160637.G29519@cs.uu.nl>
2001-11-16 15:47 ` Patrick Gundlach [this message]
2001-11-16 16:48 ` Hans Hagen
2001-11-16 9:55 Andres Loeh
2001-11-16 11:53 ` Hans Hagen
2001-11-16 15:06 ` [ConTeXt] " Andres Loeh
2001-11-16 16:37 ` 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=200111161547.fAGFlYC05229@sol.cs.uni-dortmund.de \
--to=gundlach@irb.cs.uni-dortmund.de \
/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).