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