一、直接使用enumerate
源码:
\documentclass{article}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
效果:可看到,默认的是以数字序号作为标签样式,即1. 、2.、3.等
二、配合enumitem包使用enumerate
配合enumitem包需要在LaTeX之中导入该包,具体就是在源码之中加入下面一行代码(\begin{document}之前):
\usepackage{enumitem}
样式1:数字序号+括号 (关键代码在第6行,后面也是)
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=(\arabic*)]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式1效果
样式2:粗体数字序号
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=$\mathbf{\arabic*}.$]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式2效果
样式3:粗体数字序号+括号
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=$(\mathbf{\arabic*})$]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式3效果
样式4:小写字母
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=\alph*.]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式4效果
样式5:大写字母
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=\Alph*.]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式5效果
样式6:罗马字母(注意,这个也可以大写)
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{LaTeX Style Sample}
There is nothing to show, thank you for reading.
\begin{enumerate}[label=\roman*.]
\item Apple is a kind of fruit.
\item Cat is a kind of animal.
\item Butterfly is a kind of insect.
\end{enumerate}
\end{document}
样式6效果
其他样式:根据上述的示例,相信聪明的你可以快速猜到如何得到其他你所需要的标签样式,觉得有用请点个赞,感谢。有缘在此相见,祝各位科研顺利。
三、LaTeX编译环境
1. 编辑+编译环境:Overleaf
2. 包的引用:已在上述源码给出
3. 文件之间的引用:无,项目中仅有一个main.tex文件
四、参考
1. LaTeX使用enumitem包