Last modified: 2011-09-13 21:49:29 UTC
Hello, I hope that's the right place to ask. Currently there is - I'd appreciate if you showed me I'm wrong - no way to insert the "€" symbol inside formulae. This can be a problem - for the case I ran into, see page "Ellsberg paradox", which has lots of dollar signs in formulae (in translating to Italian, I wrote for each "</math>€<math>", but that also wouldn't work for more complex formulae). In normal TeX/LaTeX, importing the package "eurosym" is sufficient... that said, I have no idea what would be the appropriate fix for Wikipedia (and also ignore if this should/could be done on a language-per-language basis, and if every other currency symbol requires a TeX package by itself...). thanks Pietro Battiston
This functionality is now available in r87284. Now the command <math>\euro</math> will now load the eurosym package and generate the LaTeX code \mbox{\euro}. The other variants of the eurosymbol introduced by the eurosym package are similarly defined.
Reapplied with a slight tweak and parser test cases in r97007. I went ahead and changed \euro to let it render straight through to conservative HTML output (so eg <math>\euro 200</math> renders out as €200 in output, nice and clean!) Note that the commit includes tweaks to HTML output of a few other characters, which seem to be legit. These aren't included in the test cases as they don't change what's supported.