[texhax] TeX command works for "1 Foo" but not for "11 Foo"

martin f krafft madduck at madduck.net
Tue Oct 30 21:49:07 CET 2007

Hi list,

This is a weird problem. I use the following for my thesis to force
me to include a date with each link I refer to, or make it explicit
that I don't need a date, e.g. \link{http://debian.org}{}:

  % not making #2 optional on purpose
  \renewcommand{\link}[2] {%
  \if\@empty#2\relax\else{ }\begin{smaller}{[#2]}\end{smaller}\fi%

The problem is that this works fine for dates like 1 Oct 2007 or 15
Sep 2007, but as soon as the date is 11 or 22, something goes fishy:

While \link{http://debian.org/Bugs/server-control}{10 Oct 2007}}

  http://debian.org/Bugs/server-control [10 Oct 2007]

\link{http://debian.org/Bugs/server-control}{11 Oct 2007}} gets me

  http://debian.org/Bugs/server-control Oct 2007

Either TeX is on drugs, or I am, or I simply don't understand what's
going on. Could you help me figure this out, please?

martin | http://madduck.net/ | http://two.sentenc.es/
sed -e '/^[when][coders]/!d' \
    -e '/^...[discover].$/d' \
    -e '/^..[real].[code]$/!d' \
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://tug.org/pipermail/texhax/attachments/20071030/46fe33bb/attachment.bin 

More information about the texhax mailing list