Last modified: 2014-02-10 12:06:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40722, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38722 - \acute not working inside \mbox in MathJax
\acute not working inside \mbox in MathJax
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 61091
  Show dependency treegraph
 
Reported: 2012-07-26 18:37 UTC by Platonides
Modified: 2014-02-10 12:06 UTC (History)
4 users (show)

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


Attachments

Description Platonides 2012-07-26 18:37:19 UTC
\mbox{\acute{i}} doesn't produce an í, but renders \acute{i} literally.
(the glyph for \acute{i} is still wrong, but that's bug 38721)

Test case: https://es.wikipedia.org/w/index.php?title=Usuario:Matanya/test&oldid=58272475
Comment 1 Derk-Jan Hartman 2012-07-27 12:48:24 UTC
This is a latex mathmode 'issue', not texvc nor mathjax really. It is supposed to render it literally, because that is how the mathmode of latex is defined to behave.

What you want is \text{í} (for textual) or \acute{\imath} (for mathematical) I think ?
Comment 2 Platonides 2012-07-29 23:37:41 UTC
Could be. It's strange it wasn't mentioned in bug 2458.

When using MathJaX however, <math>\acute{imath}</math> renders aproximately to imˊath
Comment 3 Derk-Jan Hartman 2012-08-05 11:50:17 UTC
\acute is a 'mathmode' operator, not a textual element. \mbox renders text in the font that surrounds the mathmode part, but has lots of issues apparently (looks a bit as if it's just mathmode, but with a different font). \text (part of AMS) is the best way to render text inside mathmode apparently.

bug 2458 basically discusses the issue that there are named operators in latex \lim for instance, that some users would expect to be rendered as lím in certain countries. In the discussion of the bug, multiple workarounds to create lím in other ways are being discussed, however none of those methods are ideal.

With AMS and MathJax you can actually do it the proper way, which is:

\DeclareMathOperator*{\lim}{lím}
Comment 4 Peter Krautzberger 2014-02-10 12:04:01 UTC
Just to check but this does not seem like a bug (or perhaps this has been fixed).

From what I can see, (on Wikipedia' sandbox) the math extension rejects <math> \mbox{\actute{i}}</math> and <math> \mbox{\text{í}}</math> as malformed (as Derk-Jan pointed out, that's correct behavior), and renders <math> \actute{i}</math> and <math> \text{í}</math> as expected -- in both PNG and MathJax output.

The only "problem" I can come up with is that MathJax would render something like <math>\mbox{$\acute{i}\text{í}$}</math> whereas MediaWiki considers it malformed. But that seems intentional.

Peter.
Comment 5 physikerwelt 2014-02-10 12:06:59 UTC
(In reply to comment #4)
> Just to check but this does not seem like a bug (or perhaps this has been
> fixed).
> 
> From what I can see, (on Wikipedia' sandbox) the math extension rejects
> <math>
> \mbox{\actute{i}}</math> and <math> \mbox{\text{í}}</math> as malformed (as
> Derk-Jan pointed out, that's correct behavior), and renders <math>
> \actute{i}</math> and <math> \text{í}</math> as expected -- in both PNG and
> MathJax output.
> 
> The only "problem" I can come up with is that MathJax would render something
> like <math>\mbox{$\acute{i}\text{í}$}</math> whereas MediaWiki considers it
> malformed. But that seems intentional.
> 
> Peter.

Yes that's intended. texvc does not allow to switch the rendering mode via $.

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


Navigation
Links