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:
Put a table environment around our example table, use
\centering
inside, and insert a\caption
command at the end of thetable
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}} \pagestyle{empty} \begin{document} \begin{table} \centering \begin{tabular}{@{}l*2{>{\textbackslash\ttfamily}l}% l<{Example text}l@{}} \toprule[1.5pt] & \multicolumn{2}{c}{\head{Input}} &...