diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/magyar/magyar.ldf')
-rw-r--r-- | Master/texmf-dist/doc/latex/magyar/magyar.ldf | 23 |
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 |