mdwtools.tex: Partition stuff as front/main/back matter if available.
[mdwtools] / mdwtools.tex
index 391ae90..1a0d37e 100644 (file)
@@ -36,7 +36,7 @@
 %</mdwtools>
 % \end{meta-comment}
 %
-% \CheckSum{691}
+% \CheckSum{709}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
     \def\do##1##2{\addtocontents{##1}{\protect\end{multicols}}}%
     \docontents%
   \fi%
+  \ifx\backmatter\@@undefined\else\backmatter\fi%
   \PrintIndex%
 }
 %    \end{macrocode}
 %
 %    \begin{macrocode}
   \begin{document}
+  \ifx\frontmatter\@@undefined\else\frontmatter\fi%
   \maketitle%
 %    \end{macrocode}
 %
 % Input the main file now.
 %
 %    \begin{macrocode}
+  \ifx\mainmatter\@@undefined\else\mainmatter\fi%
   \DocInput{\@basefile}%
 %    \end{macrocode}
 %