summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/magyar/magyar.ldf12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/magyar/magyar.ldf b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
index f84f624a9f8..51ebb8843f6 100644
--- a/Master/texmf-dist/doc/latex/magyar/magyar.ldf
+++ b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
@@ -4821,11 +4821,13 @@
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\thechapter\ifx\@chapapp\@@magyar@appendixname\else.\fi\space\@chapapp.}%
- \ifx\@chapapp\@@magyar@appendix@chapapp
+ \ifx\@chapapp\@@magyar@appendixname
% \@gobble gobbles the dot emitted by \numberline.
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter\protect\@gobble}#1}%
\else
- \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}
+ \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
+ \fi
+ \ifx\@chapapp\@@magyar@appendix@chapapp
\ifnum\magyar@opt@@chapternumber>0 \protected@edef\@currentlabel{\@huordinal\c@chapter}\fi
\fi
\else
@@ -4913,11 +4915,13 @@
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\thechapter\ifx\@chapapp\@@magyar@appendixname\else.\fi\space\@chapapp.}%
- \ifx\@chapapp\@@magyar@appendix@chapapp
+ \ifx\@chapapp\@@magyar@appendixname
% \@gobble gobbles the dot emitted by \numberline.
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter\protect\@gobble}#1}%
\else
- \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}\fi
+ \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
+ \fi
+ \ifx\@chapapp\@@magyar@appendix@chapapp
\ifnum\magyar@opt@@chapternumber>0 \protected@edef\@currentlabel{\@huordinal\c@chapter}\fi
\fi
\else