错位对齐制表符问题

错位对齐制表符问题

我不知道为什么代码会返回警告错误。我想对齐命名法,但等号没有在同一列下对齐

\begin{equation}\label{key}
\frac{\partial u}{\partial t}=-v\circ \nabla u-u \left(v \left(\mu _a+\mu _s\right)\right)+\int _{4 \pi }\text{v$\mu $}_sp_s \left(\Omega '\rightarrow \Omega \right)u\left(r,\Omega ',t\right)d\Omega '+q(r,\Omega ,t)
\end{equation}

Where,\\
$u(r,\Omega,\textit{E},t)$      &=  &   angular photon density\\
$t$             &       =   &   time(s)\\
$\mathbit{\Omega}$  &=  &   direction vector of solid angle in steradian\\
$\mathbit{r}$       &=  &position vector\\
$\textbf{v}$        &=  &   speed vector of photon in the medium\\
$\textit{E}$        &=  &   Energy of the photon\\
$\mu_a$             &=  &   absorption coefficients mm^{-1}\\
$\mu_s$             &=  &   scattering coefficients mm^{-1}\\
$p_s\left(\mathrm{\Omega}^\prime\rightarrow\mathrm{\Omega}\right)$  = is the normalized probability of inscattering events of photons from \mathrm{\Omega}^\prime\ to\ \mathrm{\Omega}\\
$q\left(\mathbit{r},\mathbit{\Omega},t\right)$  &= &photon source term including emission events\\

在此处输入图片描述

答案1

在这么小的范围内,存在着相当多的差异,包括第一个定义带有 E没有出现在当前等式中。?

我擅自将其重构为对齐环境,我的一些查找和替换快捷方式可能匆忙中被弄​​脏了。重新查看后,我注意到在第一个 E 之前仍有一个 \textit,不清楚 V 是否需要那个 \textbf

使用 {align} 需要 \usepackage{amsmath},但我可能已将其加载到您的序言中。回顾一下,我还注意到 \text 是 \texttt,如果您希望使用find and replacettt,那么最好在添加到您自己的主文件之前在测试副本中执行此操作。

如果您不喜欢,请提出评论,其他更有技能的人可以帮忙。

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\label{key}
\frac{\partial u}{\partial t} = -v\circ \nabla u-u \left(v \left(\mu _a+\mu _s\right)\right)+\int _{4 \pi }\text{v$\mu $}_sp_s \left(\Omega '\rightarrow \Omega \right)u\left(r,\Omega ',t\right)d\Omega '+q(r,\Omega ,t)
\end{equation}

Where,

\begin{align*}
u(r,\Omega,\textit{E},t) &= \texttt{angular photon density}\\
t &= \texttt{time(s)}\\
\Omega &= \texttt{direction vector of solid angle in steradian}\\
r &= \texttt{position vector}\\
\textbf{v} &= \texttt{speed vector of photon in the medium}\\
E &= \texttt{Energy of the photon}\\
\mu_a &= \texttt{absorption coefficients mm}^{-1}\\
\mu_s &= \texttt{scattering coefficients mm}^{-1}\\
p_s \left( \Omega^\prime \rightarrow \Omega \right) &= \texttt{is the normalized probability of inscattering}\\ 
 &~~~~\texttt{events of photons from } \Omega^\prime\ to\ \Omega\\
q\left(r,\Omega,t\right) &= \texttt{photon source term including emission events}\\
\end{align*}

\end{document}

相关内容