I'd like to create a document containing "fractions" with three or more stories instead of just two, separated by fraction bars of equal length. (These aren't real fractions, but I want to use fraction bars for the notation.)
Two things I've tried are the matrix
environment with \hline
s, and simply nesting \frac
s. Neither one produces a satisfactory result:
The matrix
option, on the left, looks pretty decent, but the \hline
s are far too wide; they should be barely wider than each story of the fraction. With the nested \frac
option, however, the two bars are of slightly different widths, the entire fraction has incorrect vertical positioning (it's centered on the lower bar, instead of the center story), and the vertical spacing is dubious.
\begin{matrix}
N I \\ \hline
I N \\ \hline
a I
\end{matrix}
= \frac{\dfrac{I a}{\N I}}{I N}
Is there a nice way to get multi-story fractions?