LaTeX tricks

Here are some tricks I have found for LaTeX. This section will be updated from time to time.

Changing fonts size

If you are using the article class for instance, three different font sizes are available : 10,11,12 pt. You can use it like this :

\documentclass[10pt]{article}

What if you want to use to other sizes ? Pre-built functions like do not work on the section titles. The solution is to redefine fontsize:

\documentclass{article}
\begin{document}
\tiny
\def\fontsize#1#2{} 
This is a test (hey,hey).
\section{One}
This is a test (hey,hey).
\end{document}