diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/magyar/magyar.ldf | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/magyar/magyar.ldf b/Master/texmf-dist/doc/latex/magyar/magyar.ldf index 6970bdadf58..f1bd40024e4 100644 --- a/Master/texmf-dist/doc/latex/magyar/magyar.ldf +++ b/Master/texmf-dist/doc/latex/magyar/magyar.ldf @@ -2736,7 +2736,7 @@ \ifnum#1=-1 m\'nusz egyedik\else \ifnum#1=-2 m\'nusz kettedik\else \ifnum#1<0 m\'inusz \expandafter\@huordinal\expandafter{\number-#1 }\else - \ifcase#1 nulladik\or els\H o\or m\'asodik\or harmadik\or negyedik\or + \ifcase\number#1 nulladik\or els\H o\or m\'asodik\or harmadik\or negyedik\or \"ot\"odik\or hatodik\or hetedik\or nyolcadik\or kilencedik\else \ifnum#1>999 \expandafter\@@magyar@ezresedik\number#1.\else \ifnum#1>99 \expandafter\@@magyar@szazasodik\number#1\else @@ -4778,19 +4778,29 @@ %** Convert \@currentlabel to lowercase \@huordinal if \thechapter is a %** huordinal or a Huordinal. \def\@@magyar@lowercase@currentlabel@toc@thechapter{% - \ifx\vfuzz\magyar@@toc@thechapter\vfuzz\else - % Convert to lower case. - \protected@edef\@currentlabel{\@huordinal\c@chapter}% - \fi + \begingroup + \csname c@chapter\endcsname0 + \edef\reserved@a{\csname thechapter\endcsname}% + \edef\reserved@a{\expandafter\@gobble\reserved@a0}% + \ifx\reserved@a\magyar@ulladik + \endgroup\expandafter\@firstofone\else + \endgroup\expandafter\@gobble\fi + {% Convert to lower case. + \protected@edef\@currentlabel{\@huordinal\c@chapter}}% } %** Convert \@currentlabel to lowercase \@huordinal if \thepart is a %** huordinal or a Huordinal. \def\@@magyar@lowercase@currentlabel@toc@thepart{% - \ifx\vfuzz\magyar@@toc@thepart\vfuzz\else - % Convert to lower case. - \protected@edef\@currentlabel{\@huordinal\c@part}% - \fi + \begingroup + \csname c@part\endcsname0 + \edef\reserved@a{\csname thepart\endcsname}% + \edef\reserved@a{\expandafter\@gobble\reserved@a0}% + \ifx\reserved@a\magyar@ulladik + \endgroup\expandafter\@firstofone\else + \endgroup\expandafter\@gobble\fi + {% Convert to lower case. + \protected@edef\@currentlabel{\@huordinal\c@part}}% } %** Emits the rule to the running head. Must put something of zero width |