我正在尝试重现所附的图片:但我无法以任何方式弄清楚在等式旁边写文字的正确方法是什么。
有这个的包吗?
答案1
对文本的对齐方式略有不同,使用以下alignat
环境:
\documentclass[12pt, a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}%
\usepackage[ textwidth = 15cm, nomarginpar]{geometry}
\usepackage{mathtools}
\usepackage[thin,thinp,thinc]{esdiff}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
\diffp{u}{z} + \frac{1}{r}\diffp{\hphantom{r}}{r}(rv) & = 0 & \qquad & \text{(continuity)}\\%
\rho\left(u\diffp{u}{z} + v\diffp{u}{r}\right) & = -\diffp{p}{z} + \mu\left[\diffp[2]{u}{z} + \frac{1}{r}\diffp{\hphantom{r}}{r}\left(r\diffp{u}{r}\right)\right] & &\text{($ z $ momentum)}\\%
\rho\left(u\diffp{v}{z} + v\diffp{v}{r}\right) & = -\diffp{p}{z} + \mu\left[\diffp[2]{v}{z} + \frac{1}{r}\diffp{\hphantom{r}}{r}\left(r\diffp{v}{r}\right)\right] & &\text{($ z $ momentum)}
\end{alignat}
\end{subequations}
\end{document