Page MenuHomePhabricator

Need a way to enter euro (currencies?) symbol(s?)
Closed, ResolvedPublic

Description

Author: me

Description:
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


Version: unspecified
Severity: minor

Details

Reference
bz27324

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:24 PM
bzimport added a project: Math.
bzimport set Reference to bz27324.
bzimport added a subscriber: Unknown Object (MLST).

nmichalo wrote:

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 &#8364;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.