latex - Latex Lists - latex tutorial
What is lists in Latex?
- List are basic elements in a document, when used correctly they keep concepts organized and structured.
- This Will explains how to create and modify numbered and unnumbered lists in LATEX.
Types of Lists
- There are three types of lists in LaTeX.
- enumerated (1, 2, 3, ...) - \begin{enumerate}
- itemized ("bullets") - \begin{itemize}
- descriptions - \begin{description}
- All lists in LaTeX have the same general format:
- \begin{list type}
- \item List entry
- \item Next List entry
- \end{list type}
- Any time a \begin{operator} ... \end{operator} construct is being used in LaTeX, the text in between is said to be in the "operator" environment.
Example:
- text that begins with \begin{enumerate} and ends with \end{enumerate} is in the "enumerate" environment.
Enumerated Lists:
- An enumerated list is a numbered list.
- LaTeX will automatically keep track of the numbering of the list if you decide to add or subtract an item from the list.
- Create a numbered list that looks like the following.
- The text is in the file name.tex which is already in your latex directory.
- "My name is Alice, but - "
- "It's a stupid name enough!" Humpty Dumpty interrupted impatiently. "What does it mean?"
- "Must a name mean something?" Alice asked doubtfully.
Itemized Lists:
- An itemized list is a bulleted list. The input format is exactly like that of enumerate only the list type is itemize, as in the following example.
- "My name is Alice, but - "
- "It's a stupid name enough!" Humpty Dumpty interrupted impatiently. "What does it mean?"
- "Must a name mean something?" Alice asked doubtfully.
Description Lists:
- Description lists are contained within a description environment, just as enumerated or itemized lists are.
- However, a description list has both a term and a description, so some method of distinguishing the two is necessary.
- The description term follows the \item command and is bounded by brackets.
learn latex tutorial - latex lists - latex example programs