[<< wikibooks] LaTeX/List Structures
Convenient and predictable list formatting is one of the many advantages of using LaTeX. Users of WYSIWYG word processors can sometimes be frustrated by the software's attempts to determine when they intend lists to begin and end. As a mark-up language, LaTeX gives more control over the structure and content of lists.


== List structures ==
Lists often appear in documents, especially academic, as their purpose is often to present information in a clear and concise fashion. List structures in LaTeX are simply environments which essentially come in three types:

itemize for a bullet list
enumerate for an enumerated list and
description for a descriptive list.All lists follow the basic format:

All three of these types of lists can have multiple paragraphs per item: just type the additional paragraphs in the normal way, with a blank line between each. So long as they are still contained within the enclosing environment, they will automatically be indented to follow underneath their item.

Try out the examples below, to see what the lists look like in a
real document.

LaTeX will happily allow you to insert a list environment into an
existing one (up to a depth of four, more levels are available
using packages). Simply begin the appropriate environment at the
desired point within the current list. Latex will sort out the
layout and any numbering for you.


== Some special lists ==
Sometimes you feel the need to better align the different list
items. If you are using a KOMA-script class (or package
scrextend), the
labeling environment is handy. It takes a mandatory
argument that contains the longest of your labels.

If you are on tight space limitations and only have short item
descriptions, you may want to have the list inline. Please note
that the example also shows how to change the font.

If you want a horizontal list, package tasks can be handy. In
combination with a package like exsheets, you can prepare exam
papers for students.


== Customizing lists ==
When dealing with lists containing just a few words per item,
the standard lists often take up too much space. Package
enumitem provides you a simple interface to
customize the appearance of lists.
You can change the appearance of lists globally in the preamble,
or just for single lists using the optional argument of the
environment. Have a look at the following example where the list
on the right is more compact using noitemsep.

An example for alignment and the width of the label. 

The documentation of package enumitem goes into more detail with
respect to what can be changed and how. You can even define your
own lists.
Environments like labeling and tasks 
can be changed differently, details can be found in the package 
documentation respectively.


== Easylist package ==
The easylist package allows you to create list using a more convenient syntax and with infinite nested levels.
It is also very customizable.
Load the package with the control character as optional argument:

The easylist environment will default to enumerations.

It features predefined styles which you can set as optional argument.

Available styles:

tractatus
checklist - All items have empty check boxes next to them
booktoc - Approximately the format used by the table of contents of the book class
articletoc - Approximately the format used by the table of contents of the article class
enumerate - The default
itemizeYou can customize lists with the \ListProperties(...) command and revert back the customization with \NewList. Yes, that's parentheses for \ListProperties parameters.
The Style parameter sets the style of counters and text, the Style* parameter sets the style of counters, and the Style** parameter sets the style of text. The parameter Numbers determines the way that the numbers are displayed and the possible values are r or R (for lower and upper case Roman numerals), l or L (for lower and upper case letters), a (for Arabic numbers, the default), and z (for Zapf's Dingbats).
The FinalMark parameter sets the punctuation of the final counter (Ex: FinalMark3={)}) while FinalSpace sets the amount of space between the item and the item's text. The Margin parameter sets the distance from the left margin (Ex: FinalSpace2=1cm). The Progressive parameter sets the distance from the left margin of all items in proportion to their level.
The Hide = n parameter prevents the first n counters from appearing in all levels. If there is a number after a parameter (Ex: Style3*) then this numbers indicates the level that it will affect (Ex: Style3=\color{red}).
Example of custom enumerate:

Note that we put the FinalMark argument between {} to avoid LaTeX understanding it as the end of the properties list.
Now we change the default properties to print a custom itemize:

Spaces in Style parameters are important. The Style* parameter acts as a default value and easylist will use a medium dash for level 1, 5 and onward. 
You can also define custom styles using LaTeX macros:

Important note: easylist has some drawbacks.
First if you need to put an easylist inside an environment using the same control character as the one specified for easylist, you may get an error.
To circumvent it, use the following commands provided by easylist:

Besides using easylist along with figures may cause some trouble to the layout and the indentation.
LaTeX lists do not have this problem.
To use easylist with Beamer, each frame that uses easylist must be marked as fragile: