-
Notifications
You must be signed in to change notification settings - Fork 11
Description
None of the metadata within equations is being spaced properly by the file math_function.py. It seems that during one of the version updates on Github, the code from the function formatting in the file math_function.py that properly spaced metadata within equations was removed. New code (such as an if statement) that checks whether the program is looking at a metadata line and adds spaces after the % character accordingly needs to be added inside the for loop in the formatting function.
Also, the unit test in test_math_function.py is not catching this issue and needs to be fixed so that it will. At the moment, test_math_function.py isn't testing the effects of the file math_function.py on an equation that has metadata in it, so it's not testing for this particular issue. I recommend changing the sample equation in that file that is being tested for the equation with this label: AS.IRV.P1 in AS.tex. The aforementioned equation has a lot of comments and is a good indicator of how the program is spacing metadata.
AS.IRV.P1 in AS.1.tex
\begin{equation}\label{eq:AS.IRV.P1}
%\note{This follows from \eqref{eq:AL.xx}--\eqref{eq:AL.xx} by setting $f(t) = p(t), g(t) =
%\frac{q(t)}{p'(t) (p(t) - p(a))^{(\lambda/\mu)-1}}$, using Cauchy's integral
%formula for the residue, and integrating by parts. See also
%\citet{Cicuta:1975:RFA}.}
b_s
= \frac{1}{\mu}
\Residue_{t=a}\left[\frac{q(t)}{(p(t) - p(a))^{(\lambda+s)/\mu}}\right]
% \constraint{$s = 0,1,2,\dots$.}
\end{equation}