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

  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:华为云联盟

  • 19
    点赞
  • 113
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值