summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-21 23:29:30 +0000
committerKarl Berry <karl@freefriends.org>2011-08-21 23:29:30 +0000
commitcc6dec43bed861394613828f8ed1351b0952d702 (patch)
treee5cd1e772fa686e07c5100780776b98cdcc4ed74 /Master/texmf-dist
parent649629710527f397a6a4e5cd1b5539808c5baccf (diff)
ltnews20.tex doc fix (21aug11)
git-svn-id: svn://tug.org/texlive/trunk@23639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/source/latex/base/ltnews20.tex17
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltnews20.tex b/Master/texmf-dist/source/latex/base/ltnews20.tex
index 909965c82a6..f8eb9a8a7f1 100644
--- a/Master/texmf-dist/source/latex/base/ltnews20.tex
+++ b/Master/texmf-dist/source/latex/base/ltnews20.tex
@@ -135,15 +135,18 @@ latter being the default.
itself contained code which needed protection (e.g., pr/4080) so this got
changed in the last release to use \verb"\protected@edef". However, that in turn failed with Babel
(bug report/4093) if the label contained active characters, e.g., a ``:'' in French. So now
-we use even more \verb"\expandafter" commands to avoid any expansion other
+we use (after one failed attempt pr/4159) even more \verb"\expandafter" commands and \verb"\romannumeral" trickery to avoid any expansion other
than what is absolutely required---making the code in that space absolutely unreadable.
\begin{verbatim}
- \expandafter\expandafter\expandafter
- \def\expandafter\expandafter\expandafter
- #1\expandafter\expandafter\expandafter
- {\expandafter\expandafter\expandafter
- \@cdr\csname r@#2\endcsname
- \@nil}%
+ \expandafter\def\expandafter#1\expandafter{%
+ \romannumeral
+ \expandafter\expandafter\expandafter
+ \z@
+ \expandafter \@cdr
+ \romannumeral
+ \expandafter\expandafter\expandafter
+ \z@
+ \csname r@#2\endcsname\@nil}%
\end{verbatim}
Code like this nicely demonstrates the limitations in the programming layer of \LaTeXe{} and the advantages that \textsf{expl3} will offer on this level.