The style file contains a defintion for the chapter foreword,
Code: Select all
\def\foreword{\startonoddpage
\chapter*{Foreword}
\global\titletrue
\addtocontents{toc}{\vskip-8pt}
\addcontentsline{toc}{schapter}{Foreword}}
\let\endforeword\endpreface
\def\l@schapter#1#2{%
\ifnum \c@tocdepth >1
\addpenalty{-\@highpenalty}%
\vskip 6pt \@plus\p@
\setlength\@tempdima{2.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hbox
to\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\vskip1sp
\fi}
Code: Select all
\begin{document}
\include{foreword1}
\include{foreword2}
\end{document}
Code: Select all
\begin{foreword}
\large{by Joe Bloggs},\\
\lipsum[1-2]
\end{foreword}
And I want it to sayForeword xi
Foreword xiii
How can I modify the macro in the style file, such that I can change what is shown in the TOC? Thank you!Foreword (Joe Bloggs) xi
Foreword (Henry Blah) xiii