LATEX-Rules
- Use
\texttt,\textbf, \textit... instead of
\tt, \bf, \it... The latter are deprecated since
LATEX2
, which was released in June 1994. Besides being
deprecated, they also have nasty side-effects. Using \bf\it
to typeset in bold italics does not work. In fact, it is impossible
to produce bold italic output using the two-letter font commands!
Do not use \tt, \bf, \it..., forget
they ever existed!
- Leave two blank lines in front of sectioning commands
(
\section{} etc.). It you want to assign a \label to
a section, put it on a line by itself, immediately following the
sectioning command. Leave a blank line after a sectioning command
or the label following one. This makes the LATEX-source of this
document much more readable.
- Break long lines. A line of source of this document should not
be longer than 72 characters. Hint: In GNU/Emacs you can reformat
paragraphs by pressing M-q.
- Typeset filenames in monospaced italics like this:
\Filename{filename}.
- Typeset commands in a monospaced font like this:
\Command{commands}.
- Typeset variables in an italic font like this:
\Variable{variables}.
- When you refer to a function() or
subroutine() use a monospaced font and append a pair of
parentheses by using the command
\Subroutine{} like this:
\Subroutine{subroutine}. Note that this command
automatically appends the parentheses.
- Organize the labels by prepending them with class-string. A
label for a section would look like this:
\label{sec:title_of_section}. Class-strings would be sec
(section, subsection, etc.), eq (equation), fig (figure), tab
(table).