chiark / gitweb /
mdwtools.tex: Add the two-column header to a contents table before including.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Sep 2020 14:56:56 +0000 (15:56 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 15:46:47 +0000 (16:46 +0100)
The `strayman' class is unusual in that, in `book' mode, it mentions the
`Contents' table in the table of contents.  But, if we add the table of
contents early, then this entry ends up being in a single column above
the main table, which is just wrong.

mdwtools.tex

index feca1b6c2cb9a04572fe94a96ade395cc12cb456..fbf97216ddbc9a4e3e167989814658fae290a084 100644 (file)
 %
 %    \begin{macrocode}
   \def\do##1##2{%
-    ##2%
     \ifhave@multicol\addtocontents{##1}{%
       \protect\begin{multicols}{2}%
       \hbadness\@M%
     }\fi%
+    ##2%
   }%
   \docontents%
 %    \end{macrocode}