我正在尝试在环境中创建多个引用align
。引用应位于标志之上=
。
我想过使用stackrel{}{}
,但输出似乎不太吸引人!
我的代码如下
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{align*}
P =\; & p_0(0) \times p_1(0) \times p_2(0) \times \cdots p_m(0) \times p_t\left(N=1\right)\\
\stackrel{(\ref{eq:Poison0}), (\ref{eq:Poison1}), (\ref{eq:PoisonLeast1})}{=}\; & e^{-R(t_0)\delta t} \times e^{-R(t_1)\delta t} \times e^{-R(t_2)\delta t} \times \cdots\\
\; &e^{-R(t_m)\delta t} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
=\, & exp\left\{{-\sum_{i=0}^m\left(R(t_i)\,\delta t\right)}\right\} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
\end{align*}
\end{document}
下面是一个示例输出
关于如何使其看起来更美观,您有什么想法吗?
答案1
- 这是基于观点的问题...
- 我会以非常不同的方式写出这个等式:
(红线表示文本边框)
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{align*}
P & = p_0(0) \times p_1(0) \times p_2(0) \times \cdots p_m(0) \times p_t\left(N=1\right)
\intertext{considering \eqref{eq:Poison0}, \eqref{eq:Poison1}
and \eqref{eq:PoisonLeast1} yields}% or any beter english phrase
& = e^{-R(t_0)\delta t} \times e^{-R(t_1)\delta t} \times e^{-R(t_2)\delta t}
\times \dotsm \times e^{-R(t_m)\delta t} \times R(t) \Delta t\; e^{-R\,\Delta t} \\
& = \exp\left\{{-\sum_{i=0}^m\left(R(t_i)\,\delta t\right)}\right\} \times R(t)\Delta t\,e^{-R\,\Delta t}
\end{align*}
\end{document}
答案2
另一种可能性是添加参考后长行,右对齐,并采用脚注大小,如下所示:
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{mathtools, nccmath}
\usepackage{amssymb}
\usepackage{cleveref}
\begin{document}
\begin{align*}
P & = p_0(0) \times p_1(0) \times p_2(0) \times \cdots p_m(0) \times p_t\left(N=1\right)\\
& = e^{-R(t_0)\delta t} \times e^{-R(t_1)\delta t} \times e^{-R(t_2)\delta t} \times \cdots\times e^{-R(t_m)\delta t} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
\intertext[-1.25ex]{\raggedleft\footnotesize by \cref{eq:Poison0,eq:Poison1,eq:PoisonLeast1}}
&= \exp\biggl\{{-\sum_{i=0}^m\bigl(R(t_i)\,\delta t\bigr)}\biggr\} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
\end{align*}
\end{document}
答案3
我会使用边注\marginnote
和压缩参考\Cref
等,即不将其打印在某些=
字符上方
\documentclass{article}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{marginnote}
\usepackage{cleveref}
\begin{document}
\begin{align}
\label{eq:Poison0} \\
\label{eq:Poison1} \\
\label{eq:PoisonLeast1}
\end{align}
\begin{align*}
P =\; & p_0(0) \times p_1(0) \times p_2(0) \times \cdots p_m(0) \times p_t\left(N=1\right)\\
\marginnote{\Cref{eq:Poison0,eq:Poison1,eq:PoisonLeast1}}=\; & e^{-R(t_0)\delta t} \times e^{-R(t_1)\delta t} \times e^{-R(t_2)\delta t} \times \cdots\\
\; &e^{-R(t_m)\delta t} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
=\, & exp\left\{{-\sum_{i=0}^m\left(R(t_i)\,\delta t\right)}\right\} \times R(t)\,\Delta t\,e^{-R\,\Delta t}\\
\end{align*}
\end{document}