summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/magyar
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-05 00:24:56 +0000
committerKarl Berry <karl@freefriends.org>2011-02-05 00:24:56 +0000
commit5f2b824413a629645d9eff9df514aef4eac21b01 (patch)
treef7aed6720368fc2fdfda74101b7bd89c2071625b /Master/texmf-dist/doc/latex/magyar
parent5b3b116d501180732abae395deacc5b21f2e22ea (diff)
magyar (2feb11)
git-svn-id: svn://tug.org/texlive/trunk@21302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/magyar')
-rw-r--r--Master/texmf-dist/doc/latex/magyar/magyar.ldf47
1 files changed, 43 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/magyar/magyar.ldf b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
index 8f1ba846aad..d08c6e5c0cb 100644
--- a/Master/texmf-dist/doc/latex/magyar/magyar.ldf
+++ b/Master/texmf-dist/doc/latex/magyar/magyar.ldf
@@ -191,6 +191,7 @@
%** mathmuskips=unchanged, % or =latex or =hu
%** mathreal=weak, % or =no or =yes
%** mond=weak, % or =no or =yes
+%** ntheoremfix=yes, % or =unchanged
%** openqq=maybedown, % or =up or =down or =unchanged
%** partnumber=unchanged, % or =huordinal or =Huordinal
%** postdescription=unchanged, % see postpara=
@@ -234,7 +235,7 @@
\magyar@opt@emitdate{emitdate}{weak}%
\magyar@opt@extras@@yes
\magyar@opt@chapterhead@@yes
- \magyar@opt@fancyhdr@@hu% !! other places, too
+ \magyar@opt@fancyhdr@@hu% change over 1.4
\magyar@opt@figurecaptions@@hu
\magyar@opt@footnote@@yes
\magyar@opt@frenchspacing@@unchanged
@@ -254,6 +255,7 @@
\magyar@opt@hynumberline@@unchanged
\magyar@opt@mathreal{mathreal}{weak}%
\magyar@opt@mond{mond}{weak}%
+ \magyar@opt@ntheoremfix@@yes
\magyar@opt@openqq@@maybedown
\magyar@opt@partnumber@@unchanged
\magyar@opt@postpara{}{unchanged}%
@@ -305,7 +307,7 @@
\magyar@opt@dottedtocline@@unchanged% OK
\magyar@opt@emitdate{emitdate}{no}% OK
\magyar@opt@extras@@yes% OK
- \magyar@opt@fancyhdr@@hu
+ \magyar@opt@fancyhdr@@unchanged% OK
\magyar@opt@figurecaptions@@hu% OK
\magyar@opt@footnote@@unchanged% OK
\magyar@opt@frenchspacing@@unchanged% OK
@@ -325,6 +327,7 @@
\magyar@opt@hynumberline@@unchanged% OK
\magyar@opt@mathreal{mathreal}{no}%
\magyar@opt@mond{mond}{no}% OK
+ \magyar@opt@ntheoremfix@@yes% OK
\magyar@opt@openqq@@maybedown% OK
\magyar@opt@partnumber@@unchanged% OK
\magyar@opt@postpara{}{unchanged}% OK
@@ -389,6 +392,7 @@
\magyar@opt@hynumberline@@unchanged
\magyar@opt@mathreal{mathreal}{no}%
\magyar@opt@mond{mond}{no}%
+ \magyar@opt@ntheoremfix@@unchanged
\magyar@opt@openqq@@unchanged
\magyar@opt@partnumber@@unchanged
\magyar@opt@postpara{}{unchanged}%
@@ -455,6 +459,7 @@
\magyar@opt@hynumberline@@hu
\magyar@opt@mathreal{mathreal}{yes}%
\magyar@opt@mond{mond}{yes}%
+ \magyar@opt@ntheoremfix@@yes
\magyar@opt@openqq@@maybedown
\magyar@opt@partnumber@@Huordinal
\magyar@opt@postdescription{}{dot}%
@@ -515,6 +520,7 @@
mathhucomma=fix,
mathreal=weak,
mond=weak,
+ ntheoremfix=yes,
openqq=maybedown,
postdescription=dot,
postpara=diamond,
@@ -533,8 +539,8 @@
varioref=hu,
}
-%** Matches Hungarian typographic orders most closely -- and most
-%** simplistically.
+%** Matches Hungarian typographic rules most closely -- and most
+%** simplistically (minimally).
\dMf magyar@opt@defaults@@hu-min {%
%\csname magyar@opt@defaults@@over-1.4\endcsname
\csname magyar@opt@defaults@@safest\endcsname
@@ -655,6 +661,9 @@
\def\magyar@opt@fancyhdr@@unchanged{\def\magyar@opt@@fancyhdr{0}}
\def\magyar@opt@fancyhdr@@hu{\def\magyar@opt@@fancyhdr{1}}
\let\magyar@opt@fancyhdr\magyar@enumarg
+\def\magyar@opt@ntheoremfix@@unchanged{\def\magyar@opt@@ntheoremfix{0}}
+\def\magyar@opt@ntheoremfix@@yes{\def\magyar@opt@@ntheoremfix{1}}
+\let\magyar@opt@ntheoremfix\magyar@enumarg
\def\magyar@opt@figurecaptions@@unchanged{\def\magyar@opt@@figurecaptions{0}}
\def\magyar@opt@figurecaptions@@hu{\def\magyar@opt@@figurecaptions{1}}
\def\magyar@opt@figurecaptions@@us{\def\magyar@opt@@figurecaptions{2}}
@@ -5518,6 +5527,36 @@
\@gobble
{^}%
+% vvv ntheoremfix=
+
+%** Fix for the `! Undefined control sequence. \select' error message with
+%** ntheorem.sty
+%**
+%** The reason for the error is that magyar.ldf emits
+%** \select@language{magyar} into .thm files (as well as .toc, .lof, .lot
+%** etc. files), and LaTeX cannot read those files without \makeatletter
+%** because of the @ in the \select@language command.
+%**
+%** Our solution: add \makeatletter somewhere before \@input{\jobname.thm} to
+%** the macro which reads the .thm file (\thm@processlist) in ntheorem.sty .
+\if0\magyar@opt@@ntheoremfix \@@magyar@skiplong\fi
+ \def\magyar@@ntheoremfix{%
+ \expandafter\ifx\csname ver@ntheorem.sty\endcsname\relax\else
+ \ifx\thm@processlist\@undefined\else
+ % This doesn't work, because the body of \thm@processlist contains #
+ %\expandafter\def\expandafter\thm@processlist\expandafter{%
+ % \expandafter\begingroup\expandafter\makeatletter
+ % \thm@processlist\endgroup}%
+ \expandafter\@temptokena\expandafter{%
+ \expandafter\begingroup\expandafter\makeatletter
+ \thm@processlist\endgroup}%
+ \edef\thm@processlist{\the\@temptokena}%
+ \fi
+ \fi
+ }
+ \AtBeginDocument{\magyar@@ntheoremfix}
+ \@gobble
+{^}%
% vvv extras=, must be last