Opened 13 years ago

Closed 10 years ago

#1182 closed defect (fixed)

0.95RC2 Equation plugin problem

Reported by: guest Owned by:
Priority: normal Milestone: 0.97
Component: Plugins Version: trunk
Severity: major Keywords: equation


When inserting a math expression changes the previous math expression into mathml like expression. ex.

<p> <span class="AM"><math title="lim_(x-&gt;oo)"><mstyle fontfamily="serif" displaystyle="true" mathcolor="black"><munder><mo>lim</mo><mrow><mi>x</mi><mo>→</mo><mo>∞</mo></mrow></munder></mstyle></math></span> </p>

<p> <span class="AM">dy/dx</span> </p>

the first <p> *</p> supposed to look
<p> <span class="AM">lim_(x-&gt;oo)</span> </p>
But it changed as above when I inserted the second expression `dy/dx'

Change History (3)

comment:1 Changed 12 years ago by nicholasbs

  • Milestone changed from 0.96 to 0.97

comment:2 Changed 11 years ago by guest

Here's the fix for this issue. So far I've only tested it with Firefox 3.5.5 and with my patch for #1209 applied but it should work universally.

in xinha\plugins\Equation\equation.js replace line 176:

// var formula = node.getAttribute("title");

with this:

var formula = '`' + node.getElementsByTagName('math')[0].getAttribute('title') + '`';

Niraj Bhawnani
Research Assistant
University of New South Wales

comment:3 Changed 10 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

Thank you for your submission, this is committed in changeset:1254

Note: See TracTickets for help on using tickets.