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 – writing special characters in our text

We will write a very short example printing out an amount of dollars and a percent number, then we shall try more symbols:

  1. Create a new document and enter the following lines:
    \documentclass{article}
    \begin{document}
    Statement \#1:
    50\% of \$100 makes \$50.
    More special symbols are \&, \_, \{ and \}.
    \end{document}
  2. Typeset and view the output:
    Time for action – writing special characters in our text

What just happened?

By putting a backslash before such a special symbol, we turned it into a LaTeX command. This command has the only purpose of printing out that symbol.

Note

The command for printing a backslash is \textbackslash. If you would like to know ...

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