{itemize}命令对文本进行简单的排列,不是采用序号,而是实心圆点符号。这个命令需要和\item配合使用。作为演示,输入如下代码;编译后可以看出在每一段前都加上了实心圆点符号进行排列。
如果我们不想使用实心圆点符号进行排列的话可以在\item[]的中括号里面指定需要的编号符号。例如我们使用-进行编号,改变代码如下;编译输出后可以看到编号的符号被换成来“-”。当然我们也可以采用其他的符号进行编号效果如下:
\begin{itemize}
\item[*] a
\item[*] b
\end{itemize}
\begin{enumerate}[i)]
\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}
关于给句子加上标序号:
\documentclass{article}
\newcounter{sentence}
\renewcommand\thesentence{\textsuperscript{\arabic{sentence}}}
\catcode`\"=13
\newcommand"{\stepcounter{sentence}\thesentence}
\begin{document}
"hello."This is a test.
\end{document}
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/200710.html原文链接:https://javaforall.cn