%% %% 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. %% %% %% 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 (JPFD). %% %% This work consists of all the files listed in the file `minitoc.l' %% distributed with it. %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 %% 2001 2002 2003 2004 2005 2006 2007 2008 %% Jean-Pierre F. Drucbert %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[1996/06/01]% \ProvidesPackage{mtcpatchmem}% [2008/07/16 v60 Package mtcpatchmem] \RequirePackage{mtcmess}[2006/03/14] \mtcPackageInfo[M0001]{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\relax \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\relax \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'.