如何对齐“where”语句后的所有文本?以及如何换行?

如何对齐“where”语句后的所有文本?以及如何换行?

这是我第一次使用 LateX(昨天刚开始)。在此处输入图片描述

有人能告诉我如何对齐“哪里”项后的所有内容吗?我希望描述方程的每个项。

另外,我该如何换行?有没有办法自动将文本换行到等号?我目前正在使用split

这是 tex 代码 -

\begin{align*}
\frac{\partial \rho e}{\partial t} = &\text{ Rate of change of total energy e with respect to time. It contains both internal energy} \\&\text{ and kinetic energy}
\end{align*}
\begin{align*}
\nabla \cdot (\rho e V) = &\text{ Divergence of convective flux of energy. Accounts for the transport of} \\&\text{ energy through the fluid flow.}
\end{align*}

\begin{align*}
-\nabla \cdot(pV) = &\text{ Work done on the fluid by the presure forces. It describes the changes} \\&\text{ in the pressure with in the fluid.}
\end{align*}

\begin{flushleft}
\begin{align*}
\nabla \cdot (k \nabla T) = &\text{ Represents the heat transfer by conduction in the fluid due to temerature gradient} \\&\text{k is thermal conductivity and T is temp. gradient}
\end{align*}
\end{flushleft}

\begin{align*}
\text{Q} = \text{Heat transfer into the fluid per unit volume, accounting for any external heat sources or sinks.}
\end{align*}

\begin{flushleft}
\begin{align*}
\text{W} = \text{ Represents the work done by the viscous forces in the fluid flow}
\end{align*}
\end{flushleft}

有没有更好的方法来实现这个?

答案1

使用\parbox'es:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{align*}
  \frac{\partial \rho e}{\partial t}
  &= \parbox[t]{.7\textwidth}{Rate of change of total energy e with
    respect to time. It contains both internal energy and kinetic energy}\\
  \nabla \cdot (\rho e V)
  &= \parbox[t]{.7\textwidth}{Divergence of convective flux of
    energy. Accounts for the transport of energy through the fluid flow.}\\
  -\nabla \cdot(pV)
  &= \parbox[t]{.7\textwidth}{Work done on the fluid by the presure
    forces. It describes the changes  in the pressure with in the fluid.}\\
  \nabla \cdot (k \nabla T)
  &= \parbox[t]{.7\textwidth}{Represents the heat transfer by
    conduction in the fluid due to temperature gradient $k$ is thermal
    conductivity and $T$ is temp. gradient.}\\
  Q
  &= \parbox[t]{.7\textwidth}{Heat transfer into the fluid per unit
    volume, accounting for any external heat sources or sinks.}\\ 
  W
  &= \parbox[t]{.7\textwidth}{Represents the work done by the viscous
    forces in the fluid flow.}
\end{align*}

\end{document}

在此处输入图片描述

相关内容