0

I'm creating a book in LaTeX and I'm creating a lot of duplicated formatting of the following nature:

\begin{chapter}
\begin{fullwidth}
\begin{LARGE}

......

\end{LARGE}
\end{fullwidth}
\end{chapter}

Is there a way of either:

  • Re-wrapping the \chapter command to automagically include those tags, or
  • Configuring a class-level style for chapter objects? (similarly to how one might in CSS?)
  • 1
    why do you have those commands at all? simply delete the fullwidth and LARGE environments and set up the required font and page size in the preamble as normal. – David Carlisle Jun 23 '18 at 8:09
  • 1
    also note that you have to be very careful if you use a size command as an environment, make sure you always leave a blank line before \end{LARGE} or the line spacing will be wrong. – David Carlisle Jun 23 '18 at 8:12
  • Thanks for those pointers! I'm editing this template, which doesn't seem very transparent for editing settings in the environment. – mcatee Jun 23 '18 at 8:17
  • 2
    just out \LARGE in the preamble and text will go large but do you really want the body text to be larger than the text of your headings??? and similarly you can use geometry package or direct setting of \textwidth to set the page size once for the book, there is no reason to have wide text on everything except a chapter heading. – David Carlisle Jun 23 '18 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.