From 0372b9ce4a51f0478b0d524214e153a5f60cb31c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 4 Apr 2009 23:51:46 +0000 Subject: magyar.ldf update (4apr09) git-svn-id: svn://tug.org/texlive/trunk@12627 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/magyar/magyar.ldf | 28 ++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/doc') 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 -- cgit v1.2.3