Adding captions to tables
Especially with longer text, we would like to add captions and numbers to our tables. Numbering the tables allows easy referencing, whereas captions add information and tell the reader what the table is about. LaTeX has built-in features to achieve that.
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. To do that, we will put a table
environment around our example table, use \centering
inside it, and insert a \caption
command at the end of the table
environment. We will add more font commands and add another column at the right, containing more examples. Let's break it down into the following steps:
- Start with the document's
article
class...