Next / Previous / Contents / NM Tech homepage

13.9. \make@majorhead

This command formats all the large headings that start on a new page: abstract, chapter, appendix, etc.

Here is the general form of invocation:

\make@majorhead[tophead]{mainhead}
tophead

This optional argument is used for the first part of two-part headings such as “Chapter 3” or “Appendix C”.

If present, this part is set in centered, large, boldface type, and with a double-space after it.

mainhead

For chapter or appendix titles, this is the actual title of the unit. For other major headings, it is the heading text, e.g., “ABSTRACT”.

This part is set in centered, large, boldface type, and with a double-space after it. If it contains multiple lines, they are single-spaced.

The specification states that the following text will start on the fourth single-spaced line after the last line of the heading. Since the default leading is double-spaced, this means the final vertical skip is 1.5 times the current leading.

nmtthesis2015.sty
%
% - - -   \ m a k e @ m a j o r h e a d
%
\newcommand{\make@majorhead}[2][]%
{% Format a heading such as ABSTRACT or a chapter or appendix heading.

First we skip an extra half-inch to get the specified 2″ top margin. Then we start a group to localize the style changes: no paragraph indentation; all lines centered; boldface; and larger type.

nmtthesis2015.sty
  \vspace*{3pc}
    {% Localize style changes
    \setlength{\parindent}{0pt}
    \centering
    \large\bf

If the optional tophead argument was given, display it here, followed by an extra blank line.

nmtthesis2015.sty
    \ifthenelse{\equal{#1}{}}%
     {}% No optional argument
     {% Optional argument
       #1\par
       \vspace{\baselineskip}
     }% Optional argument

Now display the mainhead text, strongly discourage a page break here, and skip 1.5 lines.

nmtthesis2015.sty
    \MakeUppercase{#2}\par
    \nopagebreak[4]
    \vspace{1.5\baselineskip}
  }% Localize style changes
}% End \make@majorhead