{itemize}命令
{itemize}命令对文本进行简单的排列,不是采用序号,而是实心圆点符号。这个命令需要和item配合使用。作为演示,输入如下代码;编译后可以看出在每一段前都加上了实心圆点符号进行排列。
如果我们不想使用实心圆点符号进行排列的话可以在item[]的中括号里面指定需要的编号符号。例如我们使用-进行编号,改变代码如下;编译输出后可以看到编号的符号被换成来“-”。当然我们也可以采用其他的符号进行编号效果如下:
begin{itemize}item[*] aitem[*] bend{itemize}
{enumerate}命令
{enumerate}产生带需要的编号,默认是采用数字1,2,3……进行排列。如果你想用其他排列方式例如(1),(2)…的话需要先加载usepackage{enumerate},然后再使用。分别输入如下代码使用默认和自定义的编号方式进行编号;编译输出后可以看到默认的使用1,2,3等数字进行编号,而使用(1)的依次使用(1),(2),(3)进行编号。
其余效果同上:
begin{enumerate}[i)]item aitem bend{enumerate}begin{enumerate}[1)]item aitem bend{enumerate} 可以发现,编号方式改变一下参数格式即可。begin{description}item[item a] aitem[item b] bend{description}关于给句子加上标序号:
documentclass{article}newcounter{sentence}renewcommandthesentence{textsuperscript{arabic{sentence}}}catcode`"=13newcommand"{stepcounter{sentence}thesentence}begin{document}"hello."This is a test.end{document}