Next / Previous / Contents / NM Tech homepage

13.7. \internal@chapter

This command accomplishes much the same as the user-level \chapter command, with one important difference: it does not set the inbody flag that triggers the start of Arabic page numbering.

The first part of this command is taken directly from the definition of \chapter in the stock stylesheet report.cls. The \clearpage command clears old floats and starts a new page. The \global\@topnum\z@ command prevents new floats from being placed at the top of the new page.

nmtthesis2015.sty
%
% - - -   \ i n t e r n a l @ c h a p t e r
%
\newcommand{\internal@chapter}%
{% Start a new chapter
  \par
  \clearpage
  \global\@topnum=\z@

The stock stylesheet has \@afterindentfalse here, which suppresses indentation of the first paragraph of a section. However, we want the first paragraph indented.

nmtthesis2015.sty
  \@afterindenttrue

The \secdef command is used in the stock stylesheets to dispatch further processing to either of two commands, depending on whether the document used the \chapter or \chapter* form. See the Mittelbach book, p. 32, for more on \secdef.

It is necessary to implement the \chapter* in order to allow the two unnumbered chapters that the Graduate Office specification allows: an initial “INTRODUCTION” chapter and a final “CONCLUSION” chapter.

nmtthesis2015.sty
  \secdef\chapter@\chapter@star
}% End \internal@chapter