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 – adding a caption to our font table

Now it's time to complete our table. We shall list the remaining font commands. We'll use the first column to describe the category of the font commands: Family, Weight, Shape, and so on. Then we will add another column to show the effect of combining font commands.

To finish, we shall center the table and provide a number and a caption:

  1. Put a table environment around our example table, use \centering inside, and insert a \caption command at the end of the table environment. Add more font commands and add another column at the right containing more examples:
    \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{multirow} \newcommand{\head}[1]{\textnormal{\textbf{#1}}} \newcommand{\normal}[1]{\multicolumn{1}{l}{#1}} ...

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