O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – using an environment to adjust the font size

We will produce a title with a larger and bigger font:

  1. Create another small document with this code:
    \documentclass{article}
    \begin{document}
    \begin{huge}
    \bfseries
    A small example
    
    \end{huge}
    \bigskip
    This is just another small illustrative example.
    \end{document}
  2. Typeset to see the result:
    Time for action – using an environment to adjust the font size

What just happened?

By writing \begin{huge}, we told LaTeX to switch to a huge font size just like with the \huge command. \end{huge} informs LaTeX that this size change should end now. From this point onwards, the font size is the same as before \begin{huge}.

Inside this environment, we use the declaration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required