# Things to Avoid

## Nested center environments

Avoid LaTeX code as shown in the example snippet:

\begin{figure}
\begin{center}
...
\end{center}
\end{figure}


Use \centering inside such environments instead.

## Line breaks and paragraphs

• Do not combine line breaks and paragraphs such as \\\par. Either you need a line break (which is really uncommon except inside math or tables) or you need to end the current paragraph.

• For spaces between two paragraphs use \smallskip \medskip \bigskip

## Makeat macros inside packages and classes

Note

If you are working on your own LaTeX package or class, avoid makeat macros such as \makeatletter or \makeatother. This is not necessary and it’s even breaking some automatic mechanism.
Avoid using pagestyle{fancy} provided by the package \usepackage{fancyhdr}. This package has no support for several KOMA-Script features, for example the element scheme (\setkomafont, \addtokomafont and \usekomafont) or the configurable numbering format for dynamic headers.
Hence, if you are using the BFH LaTeX classes, which are based on the KOMA-Script class, you should use the new scrlayer-scrpage package instead.