Inconsistent spacing before and after fractions in CHTML

20 views
Skip to first unread message

Audrey Krawec

unread,
May 20, 2016, 2:18:41 PM5/20/16
to MathJax Users
Hello, MathJax team.

I am advising that I have noted an inconsistency with the spacing before and after inline and within displayed MathJax fractions using the following configuration, so am including the MathML code and a screen capture of the equation for your viewing reference.

My MathJax configuration:

<script type="text/javascript" async
 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

My HTML5/MathML code:

<p><math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <munder>
   <mrow>
    <mi>lim</mi></mrow>
   <mrow>
    <mi>x</mi><mo>&#x2192;</mo><mi>c</mi></mrow>
  </munder>
  <mstyle displaystyle='true'>
  <mfrac>
   <mrow>
    <mi>f</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></mrow>
   <mrow>
    <mi>g</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></mrow>
  </mfrac>
  </mstyle>
  <mo>=</mo><mstyle displaystyle='true'>
  <mfrac>
   <mrow>
    <munder>
     <mrow>
      <mi>lim</mi></mrow>
     <mrow>
      <mi>x</mi><mo>&#x2192;</mo><mi>c</mi></mrow>
    </munder>
    <mi>f</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></mrow>
   <mrow>
    <munder>
     <mrow>
      <mi>lim</mi></mrow>
     <mrow>
      <mi>x</mi><mo>&#x2192;</mo><mi>c</mi></mrow>
    </munder>
    <mi>g</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></mrow>
  </mfrac>
  </mstyle>
  <mo>=</mo><mstyle displaystyle='true'>
  <mfrac>
   <mrow>
    <mi>f</mi><mo stretchy='false'>(</mo><mi>c</mi><mo stretchy='false'>)</mo></mrow>
   <mrow>
    <mi>g</mi><mo stretchy='false'>(</mo><mi>c</mi><mo stretchy='false'>)</mo></mrow>
  </mfrac>
  </mstyle>
  <mi>g</mi><mo stretchy='false'>(</mo><mi>c</mi><mo stretchy='false'>)</mo><mo>&#x2260;</mo><mn>0</mn></mrow>
</math>;<br>

thus, the function <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mstyle displaystyle='true'>
  <mfrac>
   <mi>f</mi>
   <mi>g</mi>
  </mfrac>
  </mstyle>
  </mrow>
</math> is continuous on its domain.</p>

Looking forward to your update on this bug.

Thanks,
Audrey


mathjax-fraction.PNG

Davide P. Cervone

unread,
May 20, 2016, 2:26:02 PM5/20/16
to mathja...@googlegroups.com
Are you using Boostrap on your website?  It turns out that some of it CSS interferes with the CommonHTML fractions.  See


Your examples render properly for me.  If you aren't using bootstrap, can you back a codebin or jsfiddle example that illustrates your situation?  And indicate which browser and OS you are using?  Thanks.

Davide


--
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.
<mathjax-fraction.PNG>

Audrey Krawec

unread,
May 20, 2016, 4:04:37 PM5/20/16
to MathJax Users, dp...@union.edu
Yes, I am using Bootstrap.
Reply all
Reply to author
Forward
0 new messages