From a72ee27344c1305783b243a5919f9299a02cfe08 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 28 Feb 2011 23:28:46 +0000 Subject: magyar (28feb11) git-svn-id: svn://tug.org/texlive/trunk@21551 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/magyar/magyar.ldf | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist') 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 -- cgit v1.2.3