

In the above, the subfigure caption label is enclosed by parentheses and the figure caption label is separated from the caption text by a colon. The letters and numbers (“a”, “b” and “1”) that enumerate the captions and subcaptions are caption labels. A basic article class document has figure and subfigure captions that look like this: You can change the fonts, numbering style, alignment and format of the captions and the caption labels. There is more.T he captions for figures, tables, subfigures and subtables in LaTeX can be customized in various ways using the caption and subcaption packages. You should ensure these are added and called out in your preamble before compiling your code. You may encounter an error when using certain fond commands if you do not have the relevant LaTeX font packages installed. Some frequently asked questions related to LaTeX fonts are shown below: So try experimenting with different font styles to make your next document look extra special. The above guide should help you navigate through the various font options available in LaTeX. Whether that is bolded or italic portions or even sentences that are presented in different font sizes. It’s not uncommon to use at least a few different font styles in a single document. Final ThoughtsĪs you can see, there are a variety of different LaTeX font options.

You can then save your file and compile it again.

Therefore, you can locate the error within a particular line and remove it. The good news is that these error messages tend to be detailed. If this occurs, LaTeX will show an error message at the bottom of the window after compiling your document. In some cases, you may encounter an error when using certain fonts.

Font Font Package Name Font Code Computer Modern Roman cmr Latin Modern Roman lmodern lmr Latin Modern Dunhill lmodern lmdh Latin Modern Sans Serif lmodern lmss Times mathptmx ptm Utopia/Fourier utopia/fourier put Palatino palatino ppl Bookman bookman pbk Charter charter bch Troubleshooting LaTeX Font Problems Some of the additional typefaces you can use are shown below, along with their package name and code. When compiled, the output font will resemble: This document shows different document typefaces and fonts Instead, they are relative to the size of the font declared in the document’s \documentclass preamble.įor example, the command in the preamble for Helvetica font. However, their sizes aren’t actually absolute. These font sizes can be identified using specific names. LaTeX offers a range of font sizes for each document. Why Aren’t My LaTeX Font Commands Working Properly?
