itemize 与enumerate 对某段文字加特别关注的标点

{itemize}命令

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



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

\begin{itemize}

\item[*] a

\item[*] b

\end{itemize}

\begin{itemize}

\item[*] a

\item[*] b

\end{itemize}





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


其余效果同上:

\begin{enumerate}[i)]

\item a

\item b

\end{enumerate}

\begin{enumerate}[i)]

\item a

\item b

\end{enumerate}





\begin{enumerate}[1)]

\item a

\item b

\end{enumerate}

\begin{enumerate}[1)]

\item a

\item b

\end{enumerate}




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



\begin{description}

\item[item a] a

\item[item b] b

\end{description}

\begin{description}

\item[item a] a

\item[item b] b

\end{description}




关于给句子加上标序号:

\documentclass{article}

ewcounter{sentence}

\renewcommand hesentence{ extsuperscript{\arabic{sentence}}}

\catcode`\"=13
ewcommand"{\stepcounter{sentence} hesentence}

\begin{document} "hello."This is a test.

\end{document}

\begin{document} "hello."This is a test.

\end{document}





发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章