A basic TeX distribution has limited functionality. To create a LaTeX document, you'll often need additional packages that provide extra options or features. There are a wide variety of packages available, generally categorized into two types:
multicol
.graphicx
or amsmath
. To use a package in your document, you must include it in the preamble, before the \begin{document}
statement. The syntax for this is \usepackage{ }
, with the package name inside the brackets.
\usepackage[]{}
helps you to provide further arguments and additional setting for each package. You can add multiple arguments using comma in square brackets.\usepackage{}
Here's an example of a LaTeX preamble with included packages:
The cyan text inside the square brackets are options for the called package, altering how it affects the document. These options are specified in the package's documentation.