https://bugzilla.wikimedia.org/show_bug.cgi?id=18912
Summary: latex and spanish projects (sine function wrongly
displayed)
Product: Wikimedia
Version: unspecified
Platform: All
URL: http://es.wikipedia.org/wiki/Usuario:Drini/seno
OS/Version: All
Status: NEW
Keywords: i18n
Severity: enhancement
Priority: Normal
Component: Language setup
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6152)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6152)
png showing the proper spacing for operatorname
There's a very frequent and recurrent headache on spanish projects relating to
latex: the proper way to typeset "sine funcion" in spanish is "sen", not "sin".
This leads to several inconsistent situations and ugly hacks.
Currently, the common hack is typeset \mathrm{sen} everytime sine function is
needed (if not just typeset it on english)
However, the problem is that it breaks spacing in the formula.
Now, mediawiki's latex loads AMS's classes (amsmath.sty) allowing to use
\operatorname in order to solve the problem.
Typing \operatorname{sen} should give proper spacing, as shown here:
The expected behavior is: http://matmor.unam.mx/~drini/seno.png
-----
Now back to mediawiki: as mentioned, latex's mediawiki allows "\operatorname"
to be used, but although it typesets in roman font, the spacing is bad. See
http://es.wikipedia.org/wiki/Usuario:Drini/seno
The ONLY way to get the proper effect on mediawiki at this moment is to use the
ugliest hack
\operatorname{sen\, }
So, this bugs raises the following issues (any of which would solve the
problem):
* fix \operatorname parsing to give proper spacing
* allow a definition of \sen globally for spanish projects
* modify \sin so it typesets "sen" in spanish projects (like latex babel's
package does)
* fully allow babel package for texvc (so these sorts of problems won't arise
on other languages, and every language gets proper math typesettting)
Now, this is not a bug asking to allow custom latex commands everywhere.
It's a ***very exceptional case*** since \sin is one of the most widely used
commands yet it doesn't get displayed right and poor hacks with wrong spacing
that ruin formulas are commonly used.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l