好吧,它似乎很简单,但我找不到方法为方程添加标题。 标题是需要解释方程中使用的变量,所以某种类似桌子的结构,以保持它的所有对齐和漂亮会很好。在LaTeX中为方程添加标题
38
A
回答
38
的\caption
命令只限于花车:你需要的地方数字或表格环境中的等式(或新的浮动环境)。例如:
\begin{figure}
\[ e = m c^2 \]
\caption{A famous equation}
\end{figure}
浮点的问题是你让LaTeX决定它们的位置。如果你想方程出现在一个固定的位置,不要使用浮动。 caption package的\captionof
命令可用于在浮动环境之外放置标题。它是这样使用:
\[ e = m c^2 \]
\captionof{figure}{A famous equation}
这也将产生的\listoffigures
项时,如果您的文档有一个。
要对齐的方程部分,看一看的eqnarray
environment,或一些amsmath包的环境:对齐,收集,多行...
8
你可能想看看http://tug.ctan.org/tex-archive/macros/latex/contrib/float/,它允许您使用
定义新的花车我这样说是因为字幕通常适用于浮动。
直线前进方程(用$ ... $
,$$ ... $$
,begin{equation}...
编写的方程)是不支持\caption
的内嵌对象。
这是可以做到用以下snippet之前\begin{document}
\usepackage{float}
\usepackage{aliascnt}
\newaliascnt{eqfloat}{equation}
\newfloat{eqfloat}{h}{eqflts}
\floatname{eqfloat}{Equation}
\newcommand*{\ORGeqfloat}{}
\let\ORGeqfloat\eqfloat
\def\eqfloat{%
\let\ORIGINALcaption\caption
\def\caption{%
\addtocounter{equation}{-1}%
\ORIGINALcaption
}%
\ORGeqfloat
}
,并添加公式时使用类似
\begin{eqfloat}
\begin{equation}
f(x) = ax + b
\label{eq:linear}
\end{equation}
\caption{Caption goes here}
\end{eqfloat}
0
在本forum post by Gonzalo Medina,第三条路可是:
\documentclass{article}
\usepackage{caption}
\DeclareCaptionType{equ}[][]
%\captionsetup[equ]{labelformat=empty}
\begin{document}
Some text
\begin{equ}[!ht]
\begin{equation}
a=b+c
\end{equation}
\caption{Caption of the equation}
\end{equ}
Some other text
\end{document}
相关问题
- 1. 在LaTeX中添加数字标题的前缀?
- 2. 在没有浮点(表格)的LaTex中添加标题?
- 3. 在LaTeX标题页上添加SVN分支名称
- 4. 在wordpress中为图片标题标签添加标题
- 5. 编程添加UITextView作为UITableView标题
- 6. LaTeX在MATLAB多行标题
- 7. 在asp.net中以编程方式添加“类别”标题
- 8. 在webview中添加标题
- 9. 在godoc中添加标题
- 10. 在LaTeX中定位表格标题
- 11. LaTeX:在标题中引用[]参数
- 12. 为WPF标题添加EventHandler
- 13. 如何在Latex中添加jpg图像
- 14. 如何在ggplot2图例标签中添加Latex代码?
- 15. 您可以在LaTeX中为页面边角的徽标添加边距吗?
- 16. 在网站标题中添加徽标
- 17. 在ListActivity中向ListView添加标题的标准方法
- 18. 以编程方式将UIControl添加到Navbar标题中 - Swift
- 19. 如何在LaTeX中为此部分标题着色?
- 20. 在UICollectionViewController标题上添加UISearchBar标题
- 21. UITableView为图像图标添加标题
- 22. PHP为标题添加标识属性
- 23. 为每个新标记添加标题
- 24. 在Vim中,LaTeX内联方程完成
- 25. 如何在LaTeX方程中敲出?
- 26. 在LaTeX Beamer中增加LaTeX Beamer
- 27. 更改LaTeX标题语言
- 28. 如何编写LaTeX标题
- 29. 如何在WordPress中为标题标签添加分类术语?
- 30. 为表格中的每个部分添加标题标题
通过等式,你的意思是一个定理吗? – dmckee 2008-09-29 16:36:30