扫描时使用 \frac 且无空行时文件结束

扫描时使用 \frac 且无空行时文件结束

下面是造成问题的代码段:

\begin{equation*}
Pressure Ratio = \frac{p_{03}}{p_{01}},  Mass Flow Rate = \frac{\dot m \sqrt{R T_{01}}{p_{01} d^2}, Specific Heat Capacity = \frac{C_p}{R}, True Air Velocity = \frac{Nd}{\sqrt{R T_{01}},  Reynolds Number = \frac{\dot m}{d \mu_0}
\end{equation*}

答案1

欢迎来到 TeX.SE!您在第二个方程中漏掉了一个}分母,在第四个方程中漏掉了另一个分母。我已经修复了它们,但它们太长了,无法全部放在同一页上。所以我使用环境来分隔它们并对齐它们。提示,您应该按照我的方式编写/对齐/分离您的代码,这样调试和修复会容易得多。\fracalign

输出

\documentclass{article} 
\usepackage{amsmath}

\begin{document}
\begin{equation*}
    Pressure Ratio          = \frac{p_{03}}{p_{01}},
    Mass Flow Rate          = \frac{\dot m \sqrt{R T_{01}}}{p_{01} d^2},
    Specific Heat Capacity  = \frac{C_p}{R},
    True Air Velocity       = \frac{Nd}{\sqrt{R T_{01}}},  
    Reynolds Number         = \frac{\dot m}{d \mu_0},
\end{equation*}
\\[2ex]
\begin{equation*}
    \begin{aligned}
        \text{Pressure Ratio}           &= \frac{p_{03}}{p_{01}}\\
        \text{Mass Flow Rate}           &= \frac{\dot m \sqrt{R T_{01}}}{p_{01} d^2}\\
        \text{Specific Heat Capacity}   &= \frac{C_p}{R}\\
        \text{True Air Velocity}        &= \frac{Nd}{\sqrt{R T_{01}}}\\
        \text{Reynolds Number}          &= \frac{\dot m}{d \mu_0}
    \end{aligned}
\end{equation*}
\end{document}

相关内容