Splitting long lines of text in denominator

31 views
Skip to first unread message

stuartm...@gmail.com

unread,
Jun 27, 2016, 9:37:51 AM6/27/16
to MathJax Users
Hi,

I'm struggling to find the best way to handle long lines of text which form part of a \frac term.  I've looked around and tried \splitfrac to break terms up, but this doesn't appear to work in MathJax.  For example, the following 

relative molar quantity of limiting starting material

...would be betters as:

relative molar quantity of
limiting starting material

...within the following equation.

$$\begin{align*} conversion \ &= \ \frac{\small{relative\ molar\ quantity\ of\ product}}{\small{relative\ molar\ quantity\ of\ limiting\ starting\ material}} \ x \ 100\ \% \\ 
&= \ \frac{3.00}{3.00\ +\ 0.26} \ x \ 100\ \% \\ 
&= \ 92\ \%
\end{align*}$$ 

All and any help appreciated.  Does MathJax provide a mechanism to help me with such formatting?

Best wishes,

Stuart.

Peter Krautzberger

unread,
Jun 29, 2016, 3:47:45 AM6/29/16
to mathja...@googlegroups.com
Hi Stuart,

I don't know how splitfrac works exactly, but if it's the one from mathtools, then it looks like an array with l/r alignments seems a decent fit.

\begin{align*} 
  \textit{conversion} \ &= \ \frac{\small\textit{relative molar quantity of product} }{ \begin{array}{lr}  \small\textit{relative molar quantity of} \\ \small\textit{limiting starting material} \end{array}} \ x \ 100\ \% \\ 
                                 &= \ \frac{3.00}{3.00\ +\ 0.26} \ x \ 100\ \% \\ 
                                 &= \ 92\ \%
\end{align*}

(I've taken the liberty of fixing up the text content.)

If you only care about MathJax the quickest way would be to (ab)use a non-standard behavior of MathJax -- linebreaks actually work more often, e.g.,  $\frac{ a \\ b}{c}$ works (but see this bug that you just helped identify).

Best regards,
Peter.

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages