Last modified: 2014-08-08 15:41:26 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 10438 - texhtml needs nowrap
texhtml needs nowrap
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-02 15:54 UTC by Christopher Yeleighton
Modified: 2014-08-08 15:41 UTC (History)
3 users (show)

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


Attachments

Description Christopher Yeleighton 2007-07-02 15:54:39 UTC
Please add this definition:
span.texhtml { white-space: nowrap }
It is needed because PNG formulae do not wrap, so neither should they in HTML.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-02 16:19:36 UTC
Fixed in r23649.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-08-09 00:57:26 UTC
On consideration, reverted in r24692.  Isn't the correct behavior for inline LaTeX to wrap normally?  I'm almost certain that's the case.
Comment 3 Christopher Yeleighton 2008-06-13 19:24:24 UTC
1. MediaWiki need not obey LaTeX conventions to the point.  LaTeX is for typesetting high-quality articles; MediaWiki is for looking up knowledge.  The browser space is not as limited as the paper space is (especially in scientific periodicals).

2. TeX normally wraps inline mathematics but only inside blocks.  If you insist, you can follow this convention exactly by means of the following rule:

  span.html span { white-space:nowrap }

Please reconsider.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-06-13 19:52:15 UTC
What do you mean by "only inside blocks"?  What elements is that selector meant to select?  (Did you mean span.texhtml?)
Comment 5 Christopher Yeleighton 2008-08-29 15:20:23 UTC
My latest comment contains two mistakes, of course.
TeX wraps only *outside* of any TeX block in math mode.
The rule 
span.texhtml span { white-space:nowrap }
inhibits breaking lines within spans inside formulas, to match the TeX behaviour to the point.
The rule
span.texhtml { white-space:nowrap }
inhibits breaking formulas anywhere.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-08-29 15:58:49 UTC
What's an example of where this would make a difference again?
Comment 7 Christopher Yeleighton 2008-08-29 20:41:43 UTC
<?xml version="1.0" 
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" [
<!ENTITY sample 
"<br />Consider the following equation: 
<span class='texhtml' 
>0 = <span >0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0</span ></span >" >
]><html xmlns="http://www.w3.org/1999/xhtml" 
><head 
><title >Illustration to MediaWiki Bug 10438</title 
><style type="text/css" >
.texhtml { background: yellow; }
.nowrap .texhtml { white-space: nowrap }
.outerwrap .texhtml span { white-space: nowrap }
</style ></head 
><body 
><p 
>The following list shows the effect of various style declarations 
on how inline formulae are rendered.  
Play with the window width to make the equations wrap.</p
><p >default: &sample;</p ><p class="nowrap" >texvc: &sample;</p 
><p class="outerwrap" >TeX: &sample;</p ></body ></html >
Comment 8 Christopher Yeleighton 2008-08-29 20:49:07 UTC
Of course the outermost classes are artificial to put all formula presentation modes into the same document.
I am also asking for the rule
span.texhtml span.composite { word-spacing: -.1ex }
for typesetting things like "arc sin <var >x</var >".
See <http://en.wikipedia.org/wiki/Template:Macomp>.
Comment 9 Christopher Yeleighton 2008-08-29 21:00:37 UTC
And Microsoft Internet Explorer needs
span.texhtml { font-family: Cambria, serif }
because "serif" resolves to Times New Roman which does not have combining diacritical marks (only precomposed characters).
Comment 10 Christopher Yeleighton 2008-09-01 22:34:16 UTC
Actually Microsoft Internet Explorer needs
span.texhtml { font-family: "Cambria Math", serif } 
/* otherwise it cannot display &lang; and &rang; */
span.texhtml var, span.texhtml i { font-family: Cambria, serif } 
/* 
because Cambria Math does not have an italic version 
and Times New Roman does not have combining diacritical marks */

Comment 11 physikerwelt 2014-08-08 15:41:26 UTC
seems to be fixed

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


Navigation
Links