Last modified: 2006-03-19 12:08:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 108 - TeX to HTML misplaces <sup> tag
TeX to HTML misplaces <sup> tag
Status: RESOLVED DUPLICATE of bug 599
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 140 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-16 06:02 UTC by Timwi
Modified: 2006-03-19 12:08 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Simplified test case (315 bytes, image/png)
2004-08-17 20:46 UTC, Brion Vibber
Details

Description Timwi 2004-08-16 06:02:34 UTC
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=969549&group_id=34373&atid=411192
Originally submitted by Nobody/Anonymous - nobody  2004-06-09 14:16


See
http://meta.wikipedia.org/wiki/MediaWiki_feature_requests_and_bug_reports#TeX_Markup_Bug
about
http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Mathematics#Typesetting_of_mathematical_formulas.

Now `e' and `-x' are placed properly, but `2' is placed
erroneously. The HTML produced is:

<tbody><tr align="center" valign="bottom">
<td></td>
<td></td>
</tr>
<tr align="center">
<td><font size="+2"></font></td>
<td><i>e</i> <sup>-
<i>x</i></sup>2&nbsp;<i>d</i><i>x</i></td>

</tr>
<tr align="center" valign="top">
<td>0</td>
<td></td>
</tr>
</tbody>

where instead of <sup>, a </sup> is produced before the
`2.'

------------------------- Additional comments ------------------------
Date: 2004-06-09 14:17
Sender: nobody
Logged In: NO 

Oops, forgot to include:

bug submitted by Paddu
(http://en.wikipedia.org/wiki/User_talk:Paddu).
-------------------------------------------------
Date: 2004-08-07 04:08
Sender: SF user vibber

Put easier to reach sample at:
http://meta.wikimedia.org/wiki/Sandbox/TeX_bits
Comment 1 Rowan Collins [IMSoP] 2004-08-16 23:48:46 UTC
*** Bug 140 has been marked as a duplicate of this bug. ***
Comment 2 Timwi 2004-08-17 17:08:02 UTC
It would be really nice if someone could provide a sample TeX input string that
produces the bug. Please don't link to wiki pages because they tend to change.
Comment 3 Brion Vibber 2004-08-17 20:46:00 UTC
Created attachment 11 [details]
Simplified test case

Here's the TeX bit:
<math>a^{b^c}</math>

As you can see the PNG shows both exponents nicely. But the HTML output is
this:

<span class="texhtml"><i>a</i><sup><i>b</i></sup><i>c</i></span>

The inner exponent isn't <sup>'d. (Rendering tested on meta.wikimedia.org)
Comment 4 Jitse Niesen 2005-07-26 20:02:59 UTC
This seems to be the same as bug 599: texmf transforms
   <math>a^{b^c}</math> 
to
   <i>a</i><sup><i>b</i><sup><i>c</i></sup></sup>
and tidy messes up the nested sup tags, transforming it to
   <i>a</i><sup><i>b</i></sup><i>c</i>

If this analysis is correct, then the same fix as in 599 (upgrading tidy) applies.
Comment 5 Jitse Niesen 2006-03-19 12:08:13 UTC

*** This bug has been marked as a duplicate of 599 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links