I have spent my whole day trying to learn this software. It's ridiculous. I have read two tutorials, and neither explains some basic terminology that I need to understand.
WHAT IS A "PACKAGE"?????
General ⇒ What Are "Packages"?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
What Are "Packages"?
The TeX FAQ answers this and a lot of other frequently asked questions:
At this occasion, a small comment from a moderator: please write in a nice way, don't write whole words or sentences in capital letters, please respect the work of LaTeX developers who built the system which you now use for free.
Stefan
At this occasion, a small comment from a moderator: please write in a nice way, don't write whole words or sentences in capital letters, please respect the work of LaTeX developers who built the system which you now use for free.
Stefan
LaTeX.org admin
What Are "Packages"?
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
What Are "Packages"?
A class is a file that has to be loaded at the beginning of a document by saying
The class provides a basic layout and a basic set of available commands for usage in the document. How the layout looks and which commands are provided strongly depends on the chosen class. What most of them have in common are sectioning commands like
Common classes are the standard classes
scrguien.pdf.
Another well-known class is memoir which is somewhat of a “all-in-one” class and has a detailed manual:
memman.pdf.
A package can be seen as an “add-on” that extends the basic functionality of the LaTeX kernel. A package can consist of a single file or of a bunch of files. Its usage may be as simple as loading it ar provide loads of commands and options for a user. This strongly varies and one can't be more specific as there are over 1500 packages on CTAN and a complete LaTeX installation. All of them are loaded in the same way: via
A list of commonly by many people used packages can be found here.
Regards
Code: Select all
\documentclass{<class name>}
\section
and \subsection
and basic floats like figure
.Common classes are the standard classes
article
, book
, report
and letter
. Also well-known are the KOMA-Script equivalents scrarticl
, scrbook
, scrreprt
and scrlttr2
. Unlike the standard classes the KOMA classes have a rich set of options and possibilities to customize layout and stuff. They are described in detail in 
Another well-known class is memoir which is somewhat of a “all-in-one” class and has a detailed manual:

A package can be seen as an “add-on” that extends the basic functionality of the LaTeX kernel. A package can consist of a single file or of a bunch of files. Its usage may be as simple as loading it ar provide loads of commands and options for a user. This strongly varies and one can't be more specific as there are over 1500 packages on CTAN and a complete LaTeX installation. All of them are loaded in the same way: via
\usepackage{<package name>}
in the document preamble, i.e., between \documentclass
and \begin{document}
.Code: Select all
\documentclass{<class name>}
% preamble:
\usepackage{<package name>}
...
% document:
\begin{document}
...
\end{document}
Regards
site moderator & package author
What Are "Packages"?
Thank you for the replies, everyone. The pages from TeX FAQ and Dickimaw left me still confused ("TeX primitives"? "A model offering an abstraction"?), but the explanation from Clemens was good, and I think I'm beginning to understand.
For what it's worth, I would have voted to retain "style", instead of "class".
A glossary of terms for LaTeX would be quite helpful. I looked but did not find one.
For what it's worth, I would have voted to retain "style", instead of "class".
A glossary of terms for LaTeX would be quite helpful. I looked but did not find one.
What Are "Packages"?
In the old times, i.e., before 1994 when LaTeX2e was released, the equivalents (in LaTeX 2.09) were indeed called styles. In order to maintain backwards compatibility as far as possible a new name was needed. So class it is...gremlint wrote:For what it's worth, I would have voted to retain "style", instead of "class".
This comes close.gremlint wrote:A glossary of terms for LaTeX would be quite helpful. I looked but did not find one.
Regards
site moderator & package author