Latex里分条目、插入序号、编号、描述——itemize、enumerate、description

博客主要介绍了LaTeX里列举的三种样式itemize、enumerate和description的使用技巧,包括定制符号、编号形式等。还提及分条列写,以及每个公式分别编号(numcases)与对齐的相关问题,如分条列写和对齐环境不能同时使用,大括号下对公式自定义编号的注意事项等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 整理自用
  2. itemize和enumerate还有description是LaTeX里列举的三种样式,分别讲一些使用技巧。
  3. itemize(意为分条目):\begin{itemize}\item[]a\item[] b\end{itemize}这样出来的形式为* a* bitem的方括号里的内容是为定制前面的符号,可以不要(连同括号),那么前面的符号就是默认的黑点,也可以换为其他的符。

1. LaTeX中三种列举的形式:itemize和enumerate还有description。

1.1 itemize(意为分条目):

\begin{itemize}
\item[*] a
\item[*] b
\end{itemize}

这样出来的形式为

  • a
  • b

item的方括号里的内容是为定制前面的符号,可以不要(连同括号),那么前面的符号就是默认的黑点,也可以换为其他的符号,如-,+,等

1.2 enumerate(意为编号):

\begin{enumerate}[1)]
\item a
\item b
\end{enumerate}

这样出来的形式为:
1) a
2) b
方括号里的内容是定制前面的编号的形式,可以不加,默认就是简单的数字,也可以换成[step 1],[(i)]等,LaTeX可以自动识别。但是要注意,使用了方括号,必须在前面加\usepackage{enumerate}.

1.3 description(意为描述):

\begin{description}
\item[item a] a
\item[item b] b
\end{description}

出来的形式为:
item a a
item b b
方括号的词会作为一个描述出现在item的前面。

2. 分条列写

\begin{itemize}
  \item [1)] 
  A hierarchical control structure is proposed due to the cascade property between translational and rotational system.       
  \item [2)]
  Compared with the conventional asymptotic stability controller, the proposed finite - time output feedback controllers can provided faster convergence rates, better disturbance rejection property for trajectory tracking control of the quadrotor UAV in the presence of external disturbances and parametric uncertainties. 
  \item [3)]
  Based on finite - time convergent observer, in stead of sensors, such that efficiently decreases the cost and the complexity of the quadrotor UAV system.
\end{itemize}

编译效果:
在这里插入图片描述

3. 每个公式分别编号(numcases)+ 对齐

\begin{subequations}
\begin{numcases}{\sum{1}:}\label{sub1}
\dot{\tilde{\bm{p}}}=\tilde{\bm{v}} \label{1wo1}\\
\dot{\tilde{\bm{v}}}=g\bm{e_3}-\frac{1}{m}\mathcal{T}R_d\bm{e_3}+\bm{d}'_1-\ddot{\bm{p}}_d\label{1wo2}
\end{numcases}
\end{subequations}
2. 
\begin{subequations}
\begin{numcases}{\sum{2}:}
\begin{aligned}
\dot{\tilde{\bm{q}}}=&\frac{1}{2}(\tilde{q}_0I_3+\tilde{\bm{q}}^{\times}){\tilde{\omega}}\\
\dot{\tilde{\bm{\omega}}}=&J_0^{-1}(-(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)^{\times}J_0(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)+\bm{\tau})\\
&+\bm{d}'_2+\tilde{\bm{\omega}}^{\times}\tilde{R}\bm{\omega}_d-\tilde{R}\dot{\bm{\omega}}_d
\end{aligned}
\end{numcases}
\end{subequations}

在这里插入图片描述

\begin{numcases}{\sum{2}:}
\begin{aligned}

3.1 分条列写和对齐环境好像不能同时使用,举例如下:

\begin{subequations}
\begin{numcases}{\sum{2}:}
\begin{aligned}
\dot{\tilde{\bm{q}}}=&\frac{1}{2}(\tilde{q}_0I_3+\tilde{\bm{q}}^{\times}){\tilde{\omega}}  \label{2att1}\\
\dot{\tilde{\bm{\omega}}}=&J_0^{-1}(-(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)^{\times}J_0(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)+\bm{\tau}) \notag \\
&+\bm{d}'_2+\tilde{\bm{\omega}}^{\times}\tilde{R}\bm{\omega}_d-\tilde{R}\dot{\bm{\omega}}_d  \label{2att2}
\end{aligned}
\end{numcases}
\end{subequations}

在这里插入图片描述

虽然每个分公式都添加了label,但是编译后的每个公式并没有相应的效果

3.2 如果不使用对齐环境,则代码+编译效果为

\begin{subequations}
\begin{numcases}{\sum{2}:}
\dot{\tilde{\bm{q}}}=\frac{1}{2}(\tilde{q}_0I_3+\tilde{\bm{q}}^{\times}){\tilde{\omega}}  \label{2att1}\\
\dot{\tilde{\bm{\omega}}}=J_0^{-1}(-(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)^{\times}J_0(\tilde{\bm{\omega}}+\tilde{R}\bm{\omega}_d)+\bm{\tau}) \notag \\
+\bm{d}'_2+\tilde{\bm{\omega}}^{\times}\tilde{R}\bm{\omega}_d-\tilde{R}\dot{\bm{\omega}}_d  \label{2att2}
\end{numcases}
\end{subequations}

在这里插入图片描述

4. 大括号下对每个公式自定义编号

\usepackage{cases}
\begin{numcases}{f(x)= }
  f_1(x) = a + b -3c \label{EQ_1} \\
  f_2(x) = 2a + 5b +c \notag \\
  f_3(x) = 4a + 2b -c \label{EQ_3}
\end{numcases} 

在这里插入图片描述

注: 上面代码中

\notag 指令 会取消对应公式的编号。
\begin{numcases} 之后 有一个大括号 {} , 上面的例子中是 {f(x)= } , 不要漏掉。另外,不要写成 { f ( x ) = f(x)= f(x)= } (错误写法), 因为 numcases 已经将此括号中的内容作数学公式处理。
最后一行公式 “\label{EQ_3}” 之后,不应再加 “\”。 否则,会多出一个空的公式和编号。
用 numcases 环境,要记得加入宏包:\usepackage{cases} , 注意宏包的名字是 cases, 不是 numcases.

reference:华为云联盟

### LaTeX 中自定义编号列表 在 LaTeX 中,`enumerate` 和 `itemize` 是用于创建不同类型的列表环境。对于需要定制序号样式的场景,可以利用特定包来增强默认功能。 #### 使用 enumerate 创建带序号的列表并修改其样式 通过加载 `enumitem` 宏包,能够更加灵活地控制枚举项前缀符号的形式: ```tex \usepackage{enumitem} ... % 修改全局设置 \setlist[enumerate]{label=\alph*)} % 将所有 enumerate 列表改为小写字母加括号标记 ``` 针对单个列表实例应用个性化配置也十简单,在 `\begin{}` 命令内部指定选项即可[^1]: ```tex \documentclass{article} \usepackage{enumitem} \begin{document} \section*{Custom Enumerate Example} \begin{enumerate}[label=(\roman*)] \item First item with roman numeral. \item Second item continues the sequence. \end{enumerate} \end{document} ``` 上述例子展示了如何将列举项目前面加上罗马数字作为标签[^2]。 #### 自定义 itemize 的标志符 虽然 `itemize` 默认不提供自动递增计数器,但是可以通过重新定义项目的 bullet point 来达到近似的效果。同样借助于 `enumitem` 提供的功能,允许更改无序列表中的符号形状或引入其他图形元素作为指示符。 ```tex \documentclass{article} \usepackage{enumitem} \begin{document} \section*{Custom Itemize Symbols} \begin{itemize}[label=$\blacktriangleright$] \item Triangle symbol as marker. \item Another triangle for this list entry. \end{itemize} \end{document} ``` 这选择了黑色三角形 (`$\blacktriangleright$`) 代替标准圆点作为条目起始处的装饰图案。 #### 结合 description 实现更复杂的描述型列表 当希望给定一组术语及其解释时,`description` 环境非常适合用来构建关联紧密的信息对。此环境中可以直接设定每一对键值之间的间距以及字体属性等细节。 ```tex \documentclass{article} \usepackage{enumitem} \begin{document} \section*{Description List Customization} \begin{description}[style=nextline,labelwidth=3cm] \item[Term A:] Definition of term A goes here and can span multiple lines because we used nextline style which puts each label on its own line followed by definition text starting from new paragraph indent level. \item[Longer Term B:] Description associated with longer term that also wraps nicely within specified width limit set via labelwidth parameter above. \end{description} \end{document} ``` 这段代码片段说明了怎样调整 `description` 下各成员间布局关系的同时保持良好的可读性和美观度。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值