|
Department of Engineering |
|
|
Next: New Commands
Up: Customising
Previous: Macros
Many of the features of a LATEX document are easily customised, but
you'll often have to look at the class (.cls
) files to find out what to
do. For example, suppose you wanted to have References in a book
rather than Bibliography. If you look in book.cls you'll
see
\newcommand\bibname{Bibliography}
so adding
\renewcommand{\bibname}{References}
to your file should achieve what you want.
Counters (e.g. figure) have related commands
(e.g. thefigure) to control their appearance, so
they're easy to customise
\renewcommand\thefigure{\roman{figure}}
produces figure numbers in lower case roman numerals.
Longer commands can be adapted too. Remember however, that if the
command involves a @
you have to enclose your changes in
\makeatletter
... \makeatother
. Here's an example that
changes the appearance of section headings -
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0mm}
{\baselineskip}%
{\baselineskip}{\normalfont\normalsize\scshape\centering}}%
\makeatother
\begin{document}