我想在公式旁边写文字,使其看起来像附图一样。但是,我一直收到一条错误消息:
! 对齐制表符放错位置 &. l.153 cj
(\gamma_T;X,T)\delequal &
\text{the number of firing times of reac.
\begin{document}
\usepackage{amsmath}
\begin{equation}
\begin{align}
cj (\gamma_T;X,T)\delequal & \text{the number of firing times of reaction R_j}
\text{ in the time interval [T,T_\gamma ] , given X(x)=T }.\\
\end{align}
\end{equation}
\end{document}
答案1
您的文本与建议的文本不同,无法编译。特别是,请注意您的大T
是小的\tau
,并且T_\gamma
是\delta\tau
。以下是从您的图片到方程编号和文本部分的公式的文本代码:
\documentclass{article}
\usepackage{amsmath}
\def\delequal{\stackrel{\triangle}{=}} % ?
\begin{document}
\begin{equation}
%\begin{align}
\begin{gathered}
n_j (\delta\tau;\mathbf{x},\tau)\delequal \text{the number of firing times of reaction}\\
R_j\text{ in the time interval $[\tau,\tau+\delta\tau ]$, given $\mathbf{X}(\tau)=\mathbf{x}$}.
\end{gathered}
%\end{align}
\end{equation}
\end{document}
答案2
像这样?
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation}
\begin{aligned}
cj (\gamma_T;X,T)\triangleq
& \text{ the number of firing times of reaction $R_j$} \\
& \text{ in the time interval $[T,T_\gamma ]$ , given $X(x)=T$ }.
\end{aligned}
\end{equation}
\end{document}