[Additional] enumerate modification interval http://blog.sina.com.cn/s/blog_5e16f1770100g5ox.html#] \ renewcommand \ labelenumi {[\ theenumi]} call
EnumerateWhen the number is added
Fang
Brackets.
There are three columns in latex: itemize, enumerate, and discription.
The main topics of this article are: Set the line spacing, set the limit, and set the full text.
- After the layout, each column has a text or character label before the layout ). In the environment where the itemize and enumerate commands are executed,
The identifier of the condition column has the internal character, but you can also set it by yourself. The description command is imported by the user.
- A maximum of six rows can be placed under each condition column.
(1) set the line spacing between the distance between the specified object and the specified object:
In begin {itemize}, use \ itemsep to complete the entire-1pt, that is, the memory size is 1pt, and 1pt is increased to 1pt.
(2) encrypt the entire enumerate Data Sheet
Exam file: The enumerate package documentation
The first parameter set by the parameter is the ararchar number, and the second parameter is (a), (B), (c)
\documentclass{article}\usepackage{enumerate}\begin{document} \begin{enumerate} \item This is an example of \ldots \item \ldots the usual enumeration. \begin{enumerate}[a)] \item And this is a \ldots \item \ldots couple of \ldots \end{enumerate} \item \begin{enumerate}[-- i --] \item \ldots examples of \ldots \item \ldots custom-tailored \ldots \item \ldots enumerations. \newcounter{enumii_saved} \setcounter{enumii_saved}{\value{enumii}} \end{enumerate} Some general comments \begin{enumerate}[-- i --] \setcounter{enumii}{\value{enumii_saved}}
Use \ newcounter {enumii_saved}
\item My next point. \setcounter{enumii}{7}
Use setcounter {enumii} {number} to specify a Counter
\item My eighth point. \end{enumerate} \end{enumerate}\end{document}
(3) The enumerate can also set the integer value in the full-text instruction environment in the following format: Signature and standard format.
The identifier of the condition column: \ labelitemi and \ labelitemii
The former represents the exclusive 'item' command environment, and the latter represents the next 'yiyun' command environment. The next example command is \ labelitemiii ..
The criteria of this directive are sequential arabic numerals or English letters. The control directives include \ Arabic, \ Roman, \ Roman, and \ Alph. For example,
\ Renewcommand {\ labelenumi }{\ Arabic {enumi })}
Change the name of the outermost component of the directive to 1), 2. Similarly, the following command converts the mark into a big argument: I., II .,....
\ Renewcommand {\ labelenumi }{\ Roman {enumi }}
(4) set the internal margin of each comment Column
In the first column, the internal margin of the zookeeper is controlled by \ leftmargini,
The last letter I represents the first letter; the second letter column is subject to \ leftmarginii Control
Usage
The first two rows before \ begin {itemize} indicate that the first row contains 7mm and 2nd contains 6mm
\ Leftmargini = 7mm
\ Leftmarginii = 6mm
[Transfer] http://www.cnblogs.com/dearjustine/archive/2010/04/05/1704508.html
-------------------------------
Latex/List
Enumeration, enumeration, and description
\begin{list_type} \item The first item \item The second item \item The third etc \ldots\end{list_type}
The default list_type includes enumerate, itemize, and description. The main difference is that the column item label is different. Enumerate is an ordered list; itemize uses dots; description uses \ item [label] to specify labels. Various list environments can be nested with each other. In this case, the labels of enuemrate automatically change to reflect the hierarchical hierarchy.
Add a \ hfill if you do not want the first row of the column to walk with the label.
\begin{description} \item[First] \hfill \\ The first item \item[Second] \hfill \\ The second item \item[Third] \hfill \\ The third etc \ldots\end{description}
Compact list
The preceding list environment has a large blank space. If you need a more compact list method, you can select the itemize *, enumerate *, and Description * environments provided by the mdwlist macro package, the usage is consistent with that without an asterisk.
Custom list Environment
Distance
Within the list, it is easy to change the distance.
\begin{itemize} \setlength{\itemsep}{1pt} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} \item first item \item second item\end{itemize}
For more detailed parameters, see the following list environment.
Tags and counters
The counter of the enumerated list can be changed. Enumerate provides four counters, enumi, enumii, enumiii, and enumiv, which correspond to different enumeration levels.
\begin{enumerate} \setcounter{enumi}{4} \item fifth element\end{enumerate}
Will generate
5. fifth element
Latex can print the values of these counters in other formats,
Command |
Example |
\ Arabic |
1, 2, 3... |
\ Alph |
A, B, c... |
\ Alph |
A, B, c... |
\ Roman |
I, II, III... |
\ Roman |
I, II, III... |
\ Fnsymbol |
Asterisks, single-sword, and double-sword |
% Redefinition Level 1 Count display \ renewcommand {\ theenumi} {\ Roman {enumi} \ renewcommand {\ labelenumi} {\ theenumi} % redefinition Level 2 Count display \ renewcommand {\ theenumii} {\ Alph {enumii }}\ renewcommand {\ labelenumii} {(\ theenumii )}
This seems a little troublesome. Sometimes writing directly
\renewcommand{\labelenumi}{\Roman{enumi}}
However, there is a drawback: if you reference these counters in the list, they will be printed in the original format.
You do not need to count itemize. The label format can be changed through \ item [label. Or \ labelitemi, \ labelitemii, \ labelitemiii, \ labelitemiv at all levels. So
\item[$\star$]
Equivalent
\renewcommand{\labelitemi}{$\star$}
Enumerate macro package
The enumerate macro package provides more flexible labels for enumerate. You can use a, a, I, I, and 1 as Optional options to generate \ Alph, \ Alph, \ Roman, \ Roman, \ Arabic effects.
usepackage{enumerate}......\begin{enumerate}[(i)] \item The first item \item The second item \item The third etc \ldots\end{enumerate}
In-row list
The paralist macro package provides an inparaenum environment to generate a list without segmentation. You can also format tags similar to the enumerate macro package.
\usepackage{paralist} ......\textbf{\itshape Inline lists}, which are sequential in nature, just like enumerated lists, but are\begin{inparaenum}[\itshape a\upshape)] \item formatted within their paragraph; \item usually labelled with letters; and \item usually have the final item prefixed with `and' or `or',\end{inparaenum} like this example.
List Environment
The most customizable environment is the list environment. The above enumerate, itemize, and description are essentially encapsulated list environments.
\begin{list}{label}{spacing} \item First item \item Second item \end{list}
The label content is placed in a separate box as a label before each item. You can also use \ item [label.
Spacing sets some distance. It is usually null, because the default distance is enough.
- \ Additional blank between the top of the topsep list and the previous content, excluding \ baselineskip
- \ Partopsep
- \ Itemsep additional vertical spaces between items in the list
- \ PARSEP: an item. If it is segmented, the Section is blank.
- The horizontal distance between the \ leftmargin list and the left margin. The value is non-negative.
- The horizontal distance between the \ rightmargin list and the right margin. The value is non-negative.
- \ Itemindent indent of the first line of each item
- \ Listparindent indentation of each row after the first line of each item
- \ Labelsep distance between the label box and the first line of text of each item
- \ Labelwidth: the width of the label box. If the label is too long, the width automatically increases until the first line of text in the list is displayed.
- \ Makelabel {label}: generate the label required by the \ item [label] command
- \ Usecounter {CTR} uses the CTR of the list project counter. The initial value is 0.
Example
% Define counter \ newcounter {lcount} % the tag count is displayed as a Roman number \ begin {list} {item-\ Roman {lcount }%use counter {\ usecounter {lcount} % symmetric \ setlength {\ rightmargin} {\ leftmargin} % start \ item this is the first item \ item and this is the second item \ end {list}
The effect will be
Item-I This is the first itemItem-II And this is the second item
[Transfer] http://blog.chinaunix.net/uid-778728-id-2043822.html
There are three columns in latex: itemize, enumerate, and discription.
The main topics of this article are: Set the line spacing, set the limit, and set the full text.
- After the layout, each column has a text or character label before the layout ). In the environment where the itemize and enumerate commands are executed,
The identifier of the condition column has the internal character, but you can also set it by yourself. The description command is imported by the user.
- A maximum of six rows can be placed under each condition column.
(1) set the line spacing between the distance between the specified object and the specified object:
In begin {itemize}, use \ itemsep to complete the entire-1pt, that is, the memory size is 1pt, and 1pt is increased to 1pt.
(2) encrypt the entire enumerate Data Sheet
Exam file: The enumerate package documentation
The first parameter set by the parameter is the ararchar number, and the second parameter is (a), (B), (c)
\documentclass{article}\usepackage{enumerate}\begin{document} \begin{enumerate} \item This is an example of \ldots \item \ldots the usual enumeration. \begin{enumerate}[a)] \item And this is a \ldots \item \ldots couple of \ldots \end{enumerate} \item \begin{enumerate}[-- i --] \item \ldots examples of \ldots \item \ldots custom-tailored \ldots \item \ldots enumerations. \newcounter{enumii_saved} \setcounter{enumii_saved}{\value{enumii}} \end{enumerate} Some general comments \begin{enumerate}[-- i --] \setcounter{enumii}{\value{enumii_saved}}
Use \ newcounter {enumii_saved}
\item My next point. \setcounter{enumii}{7}
Use setcounter {enumii} {number} to specify a Counter
\item My eighth point. \end{enumerate} \end{enumerate}\end{document}
(3) The enumerate can also set the integer value in the full-text instruction environment in the following format: Signature and standard format.
The identifier of the condition column: \ labelitemi and \ labelitemii
The former represents the exclusive 'item' command environment, and the latter represents the next 'yiyun' command environment. The next example command is \ labelitemiii ..
The criteria of this directive are sequential arabic numerals or English letters. The control directives include \ Arabic, \ Roman, \ Roman, and \ Alph. For example,
\ Renewcommand {\ labelenumi }{\ Arabic {enumi })}
Change the name of the outermost component of the directive to 1), 2. Similarly, the following command converts the mark into a big argument: I., II .,....
\ Renewcommand {\ labelenumi }{\ Roman {enumi }}
(4) set the internal margin of each comment Column
In the first column, the internal margin of the zookeeper is controlled by \ leftmargini,
The last letter I represents the first letter; the second letter column is subject to \ leftmarginii Control
Usage
The first two rows before \ begin {itemize} indicate that the first row contains 7mm and 2nd contains 6mm
\ Leftmargini = 7mm
\ Leftmarginii = 6mm
[Transfer] http://www.cnblogs.com/dearjustine/archive/2010/04/05/1704508.html
-------------------------------
Latex/List
Enumeration, enumeration, and description
\begin{list_type} \item The first item \item The second item \item The third etc \ldots\end{list_type}
The default list_type includes enumerate, itemize, and description. The main difference is that the column item label is different. Enumerate is an ordered list; itemize uses dots; description uses \ item [label] to specify labels. Various list environments can be nested with each other. In this case, the labels of enuemrate automatically change to reflect the hierarchical hierarchy.
Add a \ hfill if you do not want the first row of the column to walk with the label.
\begin{description} \item[First] \hfill \\ The first item \item[Second] \hfill \\ The second item \item[Third] \hfill \\ The third etc \ldots\end{description}
Compact list
The preceding list environment has a large blank space. If you need a more compact list method, you can select the itemize *, enumerate *, and Description * environments provided by the mdwlist macro package, the usage is consistent with that without an asterisk.
Custom list Environment
Distance
Within the list, it is easy to change the distance.
\begin{itemize} \setlength{\itemsep}{1pt} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} \item first item \item second item\end{itemize}
For more detailed parameters, see the following list environment.
Tags and counters
The counter of the enumerated list can be changed. Enumerate provides four counters, enumi, enumii, enumiii, and enumiv, which correspond to different enumeration levels.
\begin{enumerate} \setcounter{enumi}{4} \item fifth element\end{enumerate}
Will generate
5. fifth element
Latex can print the values of these counters in other formats,
Command |
Example |
\ Arabic |
1, 2, 3... |
\ Alph |
A, B, c... |
\ Alph |
A, B, c... |
\ Roman |
I, II, III... |
\ Roman |
I, II, III... |
\ Fnsymbol |
Asterisks, single-sword, and double-sword |
% Redefinition Level 1 Count display \ renewcommand {\ theenumi} {\ Roman {enumi} \ renewcommand {\ labelenumi} {\ theenumi} % redefinition Level 2 Count display \ renewcommand {\ theenumii} {\ Alph {enumii }}\ renewcommand {\ labelenumii} {(\ theenumii )}
This seems a little troublesome. Sometimes writing directly
\renewcommand{\labelenumi}{\Roman{enumi}}
However, there is a drawback: if you reference these counters in the list, they will be printed in the original format.
You do not need to count itemize. The label format can be changed through \ item [label. Or \ labelitemi, \ labelitemii, \ labelitemiii, \ labelitemiv at all levels. So
\item[$\star$]
Equivalent
\renewcommand{\labelitemi}{$\star$}
Enumerate macro package
The enumerate macro package provides more flexible labels for enumerate. You can use a, a, I, I, and 1 as Optional options to generate \ Alph, \ Alph, \ Roman, \ Roman, \ Arabic effects.
usepackage{enumerate}......\begin{enumerate}[(i)] \item The first item \item The second item \item The third etc \ldots\end{enumerate}
In-row list
The paralist macro package provides an inparaenum environment to generate a list without segmentation. You can also format tags similar to the enumerate macro package.
\usepackage{paralist} ......\textbf{\itshape Inline lists}, which are sequential in nature, just like enumerated lists, but are\begin{inparaenum}[\itshape a\upshape)] \item formatted within their paragraph; \item usually labelled with letters; and \item usually have the final item prefixed with `and' or `or',\end{inparaenum} like this example.
List Environment
The most customizable environment is the list environment. The above enumerate, itemize, and description are essentially encapsulated list environments.
\begin{list}{label}{spacing} \item First item \item Second item \end{list}
The label content is placed in a separate box as a label before each item. You can also use \ item [label.
Spacing sets some distance. It is usually null, because the default distance is enough.
- \ Additional blank between the top of the topsep list and the previous content, excluding \ baselineskip
- \ Partopsep
- \ Itemsep additional vertical spaces between items in the list
- \ PARSEP: an item. If it is segmented, the Section is blank.
- The horizontal distance between the \ leftmargin list and the left margin. The value is non-negative.
- The horizontal distance between the \ rightmargin list and the right margin. The value is non-negative.
- \ Itemindent indent of the first line of each item
- \ Listparindent indentation of each row after the first line of each item
- \ Labelsep distance between the label box and the first line of text of each item
- \ Labelwidth: the width of the label box. If the label is too long, the width automatically increases until the first line of text in the list is displayed.
- \ Makelabel {label}: generate the label required by the \ item [label] command
- \ Usecounter {CTR} uses the CTR of the list project counter. The initial value is 0.
Example
% Define counter \ newcounter {lcount} % the tag count is displayed as a Roman number \ begin {list} {item-\ Roman {lcount }%use counter {\ usecounter {lcount} % symmetric \ setlength {\ rightmargin} {\ leftmargin} % start \ item this is the first item \ item and this is the second item \ end {list}
The effect will be
Item-I This is the first itemItem-II And this is the second item
[Transfer] http://blog.chinaunix.net/uid-778728-id-2043822.html