summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/nomencl.hak
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/nomencl.hak')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/nomencl.hak71
1 files changed, 63 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/nomencl.hak b/Master/texmf-dist/tex/latex/koma-script/nomencl.hak
index c51a390f57e..7a4991b6d72 100644
--- a/Master/texmf-dist/tex/latex/koma-script/nomencl.hak
+++ b/Master/texmf-dist/tex/latex/koma-script/nomencl.hak
@@ -40,7 +40,7 @@
%% find a complete unmodified copy of LaTeX2e at
%% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
%%
-%%% From File: $Id: scrkernel-version.dtx 3050 2018-12-30 14:36:55Z kohm $
+%%% From File: $Id: scrkernel-version.dtx 3063 2019-02-01 07:39:11Z kohm $
\begingroup
\catcode`\@11\relax
\ifx\KOMAScriptVersion\undefined
@@ -62,17 +62,21 @@
\fi
}
\fi
- \@CheckKOMAScriptVersion{2018/12/30 v3.26a KOMA-Script}%
+ \@CheckKOMAScriptVersion{2019/02/01 v3.26b KOMA-Script}%
\endgroup
-%%% From File: $Id: scrhack.dtx 3019 2018-09-06 15:45:33Z kohm $
+%%% From File: $Id: scrhack.dtx 3063 2019-02-01 07:39:11Z kohm $
\ProvidesFile{nomencl.hak}[%
- 2018/12/30 v3.26a KOMA-Script
+ 2019/02/01 v3.26b KOMA-Script
package
(hacking package
nomencl)%
]
-%%% From File: $Id: scrhack.dtx 3019 2018-09-06 15:45:33Z kohm $
+%%% From File: $Id: scrhack.dtx 3063 2019-02-01 07:39:11Z kohm $
\RequirePackage{tocbasic}
+\@ifpackagelater{nomencl}{2019/01/01}{%
+ \PackageInfo{scrhack}{only `tocbasic' loaded for `nomencl'}%
+ \expandafter\endinput
+}{}
\addtotoclist[nomencl]{nlo}
\addtotoclist[nomencl]{nls}
\xpatchcmd{\thenomenclature}{%
@@ -90,9 +94,60 @@
}{%
\PackageInfo{scrhack}{\string\thenomenclature\space successfully patched}%
}{%
- \PackageWarning{scrhack}{cannot patch \string\thenomenclature.\MessageBreak
- This could happen if you are using an unknown\MessageBreak
- release of package `nomencl'%
+ \xpatchcmd{\thenomenclature}{%
+ \@ifundefined{chapter}%
+ {
+ \section*{\nomname}
+ \if@intoc\addcontentsline{toc}{section}{\nomname}\fi%
+ }%
+ {
+ \chapter*{\nomname}
+ \markboth{\nomname}{\nomname}%
+ \if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
+ }%
+ }{%
+ \scr@hack@nomencl@head
+ }{%
+ \PackageInfo{scrhack}{\string\thenomenclature\space successfully patched}%
+ }{%
+ \xpatchcmd{\thenomenclature}{%
+ \@ifundefined{chapter}%
+ {
+ \section*{\nomname}
+ \if@intoc\addcontentsline{toc}{section}{\nomname}\fi%
+ }%
+ {
+ \chapter*{\nomname}
+ \@mkboth{\nomname}{\nomname}%
+ \if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
+ }%
+ }{%
+ \scr@hack@nomencl@head
+ }{%
+ \PackageInfo{scrhack}{\string\thenomenclature\space successfully patched}%
+ }{%
+ \xpatchcmd{\thenomenclature}{%
+ \@ifundefined{chapter}%
+ }{%
+ \scr@hack@nomencl@head
+ \@gobbletwo
+ }{%
+ \PackageWarning{scrhack}{%
+ using emergency patch of \string\thenomenclature.\MessageBreak
+ This could happen if you are using an unknown\MessageBreak
+ release of package `nomencl'.\MessageBreak
+ Mostly this patch does work too, but it also could\MessageBreak
+ break `nomencl`. If this happens, please deactivate\MessageBreak
+ the `nomencl` hack of `scrhack`
+ }%
+ }{%
+ \PackageWarning{scrhack}{%
+ cannot patch \string\thenomenclature.\MessageBreak
+ This could happen if you are using an unknown\MessageBreak
+ release of package `nomencl'%
+ }%
+ }%
+ }%
}%
}
\newcommand*{\scr@hack@nomencl@head}{%