summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-28 23:28:46 +0000
committerKarl Berry <karl@freefriends.org>2011-02-28 23:28:46 +0000
commita72ee27344c1305783b243a5919f9299a02cfe08 (patch)
treee517b07cc6fc39f6a97c19bc29366ae4626779da /Master/texmf-dist
parente07e14e254e962920557e7fbbe7d712736cd94a8 (diff)
magyar (28feb11)
git-svn-id: svn://tug.org/texlive/trunk@21551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/magyar/magyar.ldf23
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/magyar/magyar.ldf b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
index d08c6e5c0cb..ea04995017a 100644
--- a/Master/texmf-dist/doc/latex/magyar/magyar.ldf
+++ b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
@@ -4117,7 +4117,7 @@
%** Dat: footnotes inside \begin{minipage} are not affected -- intentionally.
%** Will be called by \stepcounter{...} after `\advance\c@footnote1'
\def\magyar@fo@resetzero@afterpage{%
- \begingroup
+ {% { is better \begingroup, because { works in a tabular
\@tempcnta\c@footnote@add
\advance\@tempcnta\c@footnote
\let\reserved@a\@empty% default
@@ -4151,7 +4151,7 @@
% references.' in case a footnote is removed or changed, and also for
% the very first run. Fine.
\reserved@a
- \endgroup
+ }%\endgroup
}
\let\magyar@fo@resetzero\relax
@@ -4561,10 +4561,12 @@
\expandafter\@@magyar@fixmathcmd@low\meaning#1""\hfuzz#1%
}
+ \let\@@magyar@domathbins@prefix\@empty
\def\@@magyar@fixeverymathcmds@appendto#1{%
\expandafter\def\expandafter#1\expandafter{#1% append
\@@magyar@resetmathchars
- \let\do\@@magyar@fixmathbinchar \@@magyar@domathbins% only in math mode start
+ \let\do\@@magyar@fixmathbinchar
+ \@@magyar@domathbins@prefix\@@magyar@domathbins% only in math mode start
}%
}
\def\@@magyar@fixeverymathcmds@setup{%
@@ -4573,6 +4575,21 @@
\else\@@magyar@fixeverymathcmds@appendto\mathoptions@on\fi
}
+ % The definition of \@tabular contains a $, which calls
+ % \@@magyar@domathbins, which has some unintended side effects of changing
+ % \catcode values and the meaning of the active character : . This magic
+ % prevents the call to \@@magyar@domathbins .
+ %
+ % Test code: \author{a:b} \maketitle
+ % Test code: \def\foo{a:b} \begin{tabular}[t]{c}x\foo y\end{tabular}
+ \def\@@magyar@mathbins@tabularfix#1${%
+ #1\def\@@magyar@domathbins@prefix{%
+ \let\@@magyar@domathbins@prefix\@empty\@gobble}$}%
+ \expandafter\expandafter\expandafter\def
+ \expandafter\expandafter\expandafter\@tabular
+ \expandafter\expandafter\expandafter{%
+ \expandafter\@@magyar@mathbins@tabularfix\@tabular}
+
\def\@@magyar@fixmathcmds{%
\let\do\@@magyar@fixmathcmd
% vvv Binary relations listed in Table 3.4 in lshort.dvi