Next / Previous / Contents / NM Tech homepage

10.3. The \epigraph command

The format specification says the epigraph should be on an unnumbered page with no heading. The epigraph will be centered horizontally and vertically. If there is an attribution, it is right-aligned below the epigraph.

The command has one optional argument, the attribution; and one required argument, the epigraph.

nmtthesis2015.sty
%
% - - -   \ e p i g r a p h
%
\providecommand{\epigraph}{}%
\renewcommand{\epigraph}[2][]%
{% Epigraph environment
%    #1: Optional attribution
%    #2: The quote
  \clearpage
  \thispagestyle{empty}
  \vspace*{\fill}

The meaning of a centered paragraph is not clear when the paragraph is justified. Hence, we will arbitrarily use a somewhat narrower paragraph, 4″ wide. The quote must be single-spaced; see Section 13.12, “\single@spacing: Set up single-spaced lines”.

nmtthesis2015.sty
  \begin{center}
    \parbox{4in}%
    {% Start \parbox
      \single@spacing
      #2%
    }% End \parbox
  \end{center}

We use the \ifthenelse construct to test whether the optional attribution argument was used. If so, the attribution is set flush right a little further down the page.

nmtthesis2015.sty
  \ifthenelse{\equal{#1}{}}%
  {}% No optional argument: do nothing
  {% Optional argument is attribution, skip down and set flush right
    \begin{flushright}
      #1%
    \end{flushright}
  }%
  \vfill
  \pagebreak[4]
}% End \epigraph