Author: pdsanchez
Description:
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.
Version: unspecified
Severity: enhancement
URL: http://es.wikipedia.org/wiki/Usuario:Drini/seno
Attached: