1. Use enumerate directly
source code:
\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}
Effect: It can be seen that the default is to use the digital serial number as the label style, that is, 1., 2., 3., etc.
2. Use enumerate with the enumitem package
To cooperate with the enumitem package, you need to import the package in LaTeX. Specifically, add the following line of code to the source code (before \begin{document}):
\usepackage{enumitem}
Style 1: Number serial number + parentheses (the key code is on line 6, also after it)
\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}
Style 1 effect
Style 2: Bold numerical serial number
\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}
Style 2 effect
Style 3: bold number serial number + brackets
\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}
Style 3 effect
Style 4: lowercase letters
\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}
Style 4 Effect
Style 5: Capital letters
\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}
Style 5 effect
Style 6: Roman letters (note, this can also be capitalized)
\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}
Style 6 Effect
Other styles: According to the above examples, I believe you can quickly guess how to get other label styles you need. If you find it useful, please like it, thank you. It is a fate to meet you here, and I wish you all the best in your research.
3. LaTeX compilation environment
1. Editing + compiling environment: Overleaf
2. Package reference: given in the above source code
3. References between files: None, there is only one main.tex file in the project