I was trying to answer this question on another stackexchange forum, to say that they could use Latex instead, only to find I can't figure how to do this in Latex myself.
Is it possible to have 2 equations one in the numerator and one in denominator, be aligned at =
in each? Here is MWE
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
$\frac{\text{test} = 0.01}{\text{testing} = 0.01}$
\end{document}
Gives
I'd like these two to be aligned at =
. Just like when one uses align*
environment, except inside a fraction now.
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\text{test} &= 0.01 \\
\text{testing} &= 0.01
\end{align*}
\end{document}
TL 2022
Update
Thanks for all the answers. Wish I can accept them all. I picked
\[
\begin{aligned}
\text{test}&=0.01 \\
\hline
\text{testing}&=0.01
\end{aligned}
\]
Because it was easiest for me to understand how it works. But all answers are really great.
Best Answer
This is, of course, not a fraction. But it's easy to emulate one.
The spacing is not exactly the same, though.
Just for fun.