summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty')
-rw-r--r--Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty90
1 files changed, 90 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty b/Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty
new file mode 100644
index 00000000000..f1ab012bb69
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/minitoc/mtcpatchmem.sty
@@ -0,0 +1,90 @@
+%%
+%% This is file `mtcpatchmem.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% minitoc.dtx (with options: `mtcpatchmem')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2005 by:
+%% Jean-Pierre F. Drucbert
+%% <jean-pierre.drucbert@onera.fr>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2003/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "author-maintained".
+%%
+%% This Current Maintainer of this work is Jean-Pierre F. Drucbert.
+%%
+%% This work consists of all the files listed in the file `minitoc.l'
+%% distributed with it.
+%%
+\NeedsTeXFormat{LaTeX2e}[1996/06/01]%
+\ProvidesPackage{mtcpatchmem}%
+ [2005/09/16 v43 Package mtcpatchmem]
+\PackageInfo{mtcpatchmem}%
+ {*** mtcpatchmem package to patch the memoir class ***\@gobble}
+\renewcommand{\@m@mchapter}[1][]{%
+ \def\ch@pt@c{#1}% capture first optional arg
+ \@ifnextchar[{\@chapter}{\@chapter[]}%
+}
+\def\@chapter[#1]#2{%
+ \ifx\ch@pt@c\@empty
+ \def\f@rtoc{#2}%
+ \def\f@rhdr{#2}%
+ \else
+ \let\f@rtoc\ch@pt@c
+ \ifx\@empty#1\@empty
+ \let\f@rhdr\ch@pt@c
+ \else
+ \def\f@rhdr{#1}%
+ \fi
+ \fi
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \refstepcounter{chapter}%
+ \fi
+ \fi
+ \chaptermark{\f@rhdr}%
+ \ifartopt
+ \@makechapterhead{#2}%
+ \@afterheading
+ \else
+ \insertchapterspace
+ \if@twocolumn
+ \@topnewpage[\@makechapterhead{#2}]%
+ \else
+ \@makechapterhead{#2}%
+ \fi
+ \@afterheading
+ \fi
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \ifanappendix
+ \addcontentsline{toc}{appendix}{%
+ \protect\chapternumberline{\thechapter}\f@rtoc}%
+ \else
+ \addcontentsline{toc}{chapter}{%
+ \protect\chapternumberline{\thechapter}\f@rtoc}%
+ \fi
+ \else
+ \addcontentsline{toc}{chapter}{\f@rtoc}%
+ \fi
+ \else
+ \addcontentsline{toc}{chapter}{\f@rtoc}%
+ \fi
+ \ifheadnameref\M@gettitle{\f@rhdr}\else\M@gettitle{\f@rtoc}\fi
+}
+\endinput
+%%
+%% End of file `mtcpatchmem.sty'.