latex插入编号{itemize}和{enumerate}

{itemize}命令

{itemize}命令对文本进行简单的排列,不是采用序号,而是实心圆点符号。这个命令需要和item配合使用。作为演示,输入如下代码;编译后可以看出在每一段前都加上了实心圆点符号进行排列。

如果我们不想使用实心圆点符号进行排列的话可以在item[]的中括号里面指定需要的编号符号。例如我们使用-进行编号,改变代码如下;编译输出后可以看到编号的符号被换成来“-”。当然我们也可以采用其他的符号进行编号:

egin{itemize}
item[*] a
item[*] b
end{itemize}

{enumerate}命令

{enumerate}产生带需要的编号,默认是采用数字1,2,3……进行排列。如果你想用其他排列方式例如(1),(2)…的话需要先加载usepackage{enumerate},然后再使用。分别输入如下代码使用默认和自定义的编号方式进行编号;编译输出后可以看到默认的使用1,2,3等数字进行编号,而使用(1)的依次使用(1),(2),(3)进行编号。

                                           

其余效果同上:

egin{enumerate}[i)]
item a
item b
end{enumerate}
egin{enumerate}[1)]
item a
item b
end{enumerate}

 
可以发现,编号方式改变一下参数格式即可。

egin{description}
item[item a] a
item[item b] b
end{description}

关于给句子加上标序号:

 latex插入编号{itemize}和{enumerate}

documentclass{article}


ewcounter{sentence}


enewcommand	hesentence{	extsuperscript{arabic{sentence}}}

catcode`"=13

ewcommand"{stepcounter{sentence}	hesentence}

egin{document}

"hello."This is a test.

end{document}