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.
 latex list

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.
      
                \begin{itemize}
                \item ``That's a great deal to make one word mean,'' Alice said in a thoughtful tone.
                \item ``When I make a word do a lot of work like that,'' said Humpty Dumpty,``I always pay it extra.''
                \item ``Oh!'' said Alice.  She was too much puzzled to make any other remark.
                \end{itemize}
                

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

learn latex tutorial - latex lists - latex example programs

               
               \begin{description}               
               \item[Toves] are something like badgers they're something like lizards -- and they're something like corkscrews 
               \item[Gyre] to go round and round like a gyroscope
               \item[Wabe] the grass-plot round a sun-dial, which goes a long way before it, a long way behind it, and a long way beyond it on each side
               \end{description}


Related Searches to Latex Lists