是否可以将多个方程式引用组合成一个,就像\ cite命令一样?我想要的是以下内容:
\begin{subequations}
\begin{align}
a & = b \label{eq1} \\
c & = d \label{eq2}
\end{align}
\end{subequations}
Some text referring to the formulas \eqref{eq1,eq2}.
Run Code Online (Sandbox Code Playgroud)
然后将编译为"有些文本引用公式(1a,b)." 显然,这个例子不起作用,但我希望有一个类似的东西.有任何想法吗?
Lui*_* E. 23
这是一个简单的解决方案,不需要额外的包,只需一个额外的标签:
\begin{subequations}
\label{eq1}
\begin{align}
a & = b \label{eq11} \\
c & = d \label{eq12}
\end{align}
\end{subequations}
Run Code Online (Sandbox Code Playgroud)
当你这样做时\eqref{eq1},它将显示为(1).
考虑以下:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
See the equations below:
\begin{subequations}
\label{all1}
\begin{align}
a & = b \label{eq1} \\
c & = d \label{e2}
\end{align}
\end{subequations}
These refer to \ref{all1}, \ref{eq1} and \ref{e2}.
\end{document}
Run Code Online (Sandbox Code Playgroud)
该amsmath软件包介绍了subequations环境.在它之前的第一个标签'all1' \begin{align}为完整的方程组(在这种情况下为1)创建标签.随后的两个标签分别表示1a和1b.
这就是你所问的(子方程环境的存在,并将复合方程与子方程明显编号)或\eqref部分?
小智 5
我知道这是一个有点旧的线程,但我不禁注意到,当一个人必须引用多个总是需要一起引用的方程时,没有人建议使用聚集对齐组合:
\begin{gather}
\begin{aligned}
a&= b\\
c&= d
\end{aligned}\label{eq:eq1}
\end{gather}
some text referring to \eqref{eq:eq1}
Run Code Online (Sandbox Code Playgroud)
这将产生对方程组的引用,并且引用编号将相对于方程居中。
| 归档时间: |
|
| 查看次数: |
84786 次 |
| 最近记录: |