next up previous contents index
Next: 6.1.1 The graphicx Package Up: 6. Packages Previous: 6. Packages   Contents   Index


6.1 Using Packages

LaTeX has a great many useful commands, but it doesn't have a command to do absolutely everything, so if additional commands are required, they can be supplied in files called packages. [Documentation of packages] If you want to use any commands or environments that are defined in a package, you first need to specify the name of the package with the command:

\usepackage[<options>]{<package name>}

where <package name> is the name of the package without the .sty extension, and <options> is a comma separated list of options to be passed to the package (just as you can do with class files using the \documentclass command). Note that the \usepackage command must always go in the preamble.

Let's look at a few examples.



Subsections
next up previous contents index
Next: 6.1.1 The graphicx Package Up: 6. Packages Previous: 6. Packages   Contents   Index

Nicola L. C. Talbot. School of Computing Sciences. University of East Anglia. Last Modified: 2008-01-15 W3C HTML 3.2 Valid