Latex-条目、编号、描述

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

itemize(意为分条目):
\begin{itemize}
\item[*] a
\item[*] b
\end{itemize}
这样出来的形式为
  * a
  * b

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

2)enumerate(意为编号):
\begin{enumerate}[1)]
\item a
\item b
\end{enumerate}
这样出来的形式为:
  1a
  2) b

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

3)description(意为描述):
\begin{description}
\item[item a] a
\item[item b] b
\end{description}
出来的形式为:
item a a
item b b

方括号的词会作为一个描述出现在item的前面。

分条列写

代码:

as follow:
\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}

编译效果:

这里写图片描述

 每个公式分别编号(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}

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

\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,但是编译后的每个公式并没有相应的效果; 如果不使用对齐环境,则代码+编译效果为
代码:

\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}

这里写图片描述

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

\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)=$ } (错误写法), 因为 numcases 已经将此括号中的内容作数学公式处理。
  • 最后一行公式 “\label{EQ_3}” 之后,不应再加 “\”。 否则,会多出一个空的公式和编号。
  • 用 numcases 环境,要记得加入宏包:\usepackage{cases} , 注意宏包的名字是 cases, 不是 numcases.
### 解决LaTeX中Reference未编号的问题 在LaTeX文档中,`reference not numbered` 的问题通常是由于配置错误或者缺少必要的包引起的。以下是可能的原因以及解决方案: #### 可能原因及解决方法 1. **未加载 `hyperref` 包** 如果希望参考文献能够自动编号并链接到对应的条目,则需要加载 `hyperref` 包。此包可以增强交叉引用的功能[^1]。 ```latex \usepackage[hidelinks]{hyperref} ``` 2. **未正确设置 bibliography 风格** 使用 `\bibliographystyle{}` 命令来指定参考文献的样式。如果没有定义该命令,默认情况下可能会导致参考文献不显示编号。 ```latex \bibliographystyle{plain} % 或者其他风格如 alpha, unsrt 等 ``` 3. **BibTeX 数据库路径错误** 确保 `.bib` 文件的位置正确无误,并通过以下方式引入它: ```latex \bibliography{references} % references.bib 是你的数据库文件名 ``` 4. **算法伪代码环境干扰** 若文档中有大量算法描述且使用了 `algorithmicx` 或其子包(例如 `algpseudocode`),则需确认这些宏不会影响全局编号机制。可以通过单独测试章节排除冲突[^3]。 5. **编译顺序不当** 正确处理参考文献需要多次运行 pdflatex 和 bibtex/biber 工具链。具体流程如下: - 运行一次 PDFLaTeX- 执行 BibTeX/Biber 处理器; - 再次运行两次 PDFLaTeX 更新索引和标签。 6. **缺失必要字段** 某些期刊模板要求每篇引用都具备完整的元数据(如 DOI)。如果某项记录缺乏关键属性也可能引发异常行为[^2]。 7. **自定义类或宏覆盖默认功能** 当采用特定主题定制版时,请仔细阅读官方指南说明是否存在特殊约定限制条件。 --- ### 示例修正后的最小工作示例 (MWE) 下面提供了一个简单的例子展示如何正确实现带编号的参考列表: ```latex \documentclass[utf8]{article} % 加载所需扩展 \usepackage[numbers]{natbib} % 支持数字型引用模式 \usepackage[colorlinks=true]{hyperref}% 创建超链接效果 \begin{filecontents*}{refs.bib} @book{lamport94, author = "Leslie Lamport", title = "{\LaTeX}: A Document Preparation System", year = 1994, publisher = "Addison-Wesley" } \end{filecontents*} \begin{document} 这是关于 {\LaTeX} 编程的一本书~\cite{lamport94}. \bibliographystyle{unsrt} % 设置排序规则 \bibliography{refs} % 引入外部 bib 库 \end{document} ``` 上述代码片段展示了基本框架结构及其依赖关系管理策略。 --- ### 注意事项 - 对于复杂项目建议优先选用现代工具链比如 Biber 替代传统 BibTeX 来解析多语言支持场景下的书目信息。 - 如果仍然遇到困难可以从日志文件排查潜在线索;重点关注警告提示部分是否有遗漏声明等问题存在。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值