首页 > 代码库 > LaTex 入门3

LaTex 入门3

LaTex的列表环境有itemize和enumerate两种:

itemize就是那种无序的列表,enumerate就是计数的列表。

\documentclass{book}

\usepackage{amsmath}
\usepackage{enumerate}%用于更改标号

\begin{document}
\begin{itemize}
\item this is item 1
  \begin{itemize}%增加子列表
  \item this is sub-item 1
  \item this is sub-item 2
  \end{itemize}
\item this is item 2
\item this is item 3
\end{itemize}


\begin{enumerate}[\bfseries A.]%自定义编号并加粗A.
  \setcounter{enumi}{4}%从E开始 使用这个之前得usepackage{enumerate}
\item this is item 1
  \begin{enumerate}[\sffamily a)]%无衬线字体
  \item this is sub-item 1
  \item this is sub-item 2
  \end{enumerate}
\item this is item 2
\item this is item 3
\end{enumerate}

\end{document}

效果如下:



LaTex 入门3