Use of the list environment in LaTeX

Source: Internet
Author: User

The list is to divide the content to be expressed into several entries in a certain order, to achieve a concise, intuitive effect. The list is often used in the writing of the thesis. The list environments common in LaTeX are enumerate, itemize, and description. The main difference between these three list environments is the difference in the list item labels:

1. Enumerate is an ordered list. For example:

1  \begin{Enumerate} 2  \item  This is the first item 3  \item  This is the second item 4  \item  This is the third item 5 \end{Enumerate}

The resulting effect is as follows:

2. itemize a dot as a label. For example:

1  \begin{itemize} 2 \item This  is the first item3\item the   second item4  \item This  is the third item5\end{itemize}

The resulting effect is as follows:

      3.  description is a list of explanations, you can specify a label. For example:

1 %\usepackage{pifont}2\begin{description}3     \item [\ding{47}] This  is the first item4     \item[\ding{47}] This is the second item5     \item[\ding{47}] This  is the third item< /c19>6\end{description}

The resulting effect is as follows:

The list environment can be nested with each other, by default different levels of labels are different to reflect the hierarchical hierarchy.

The above three lists are customized based on the list environment, which means that the list environment is the most powerful listing environment, but it is rarely used because it is cumbersome to use. In fact, the above three kinds of lists after certain expansion can produce many styles of the list, these basic can meet the needs of the ordinary. Let's talk about how to extend the function. The Enumitem macro package extends the functionality of the enumerate, itemize, and description environments and provides a simple syntax. The Enumitem macro package allows the user to set the key values in the above three lists by Key=value.

• Vertical Distance

–topsep
–partopsep
–parsep
–itemsep

• Horizontal Distance

–leftmargin
–rightmargin
–listparindent
–labelwidth
–labelsep
–itemindent

The distance above can be clearly reflected in the diagram.

Words don't say much, look at an example. Here are the settings I made in my paper for the Enumitem environment:

 1  \ Usepackage  {Enumerate}  2  \usepackage  {Enumitem}  3  \ Setlist  [enumerate,1]{label= (\textup ,  4  leftmargin=7mm,labelsep=1.5mm,topsep=0mm,itemsep=- 0.8mm}  5  \setlist  [Enumerate,2]{label= (\alph* )., Font=\textup ,  6  leftmargin=7mm,labelsep=1.5mm,topsep=-0.8mm,itemsep=-0.8mm} 

Use of the list environment in LaTeX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.