Greetings,
as the subject indicates: How to get an Euro currency symbol into a math environment (equation etc.)
I use the eurosym package, but it does not seem to work when I put \euro or \EUR in a math environment. Any ideas?
thanks - as always - in advance
cheers
General ⇒ Euro currency symbol in math environment
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Euro currency symbol in math environment
wrap it in \textup{...}
presumably it is a textsymbol, those cannot be used inside math
presumably it is a textsymbol, those cannot be used inside math
Re: Euro currency symbol in math environment
In math mode you can put anything you want, either directly or inside a box. In this case, $\mbox{\euro}$.
If you load amsmath, it is preferable $\text{\euro}$
If you load amsmath, it is preferable $\text{\euro}$
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Re: Euro currency symbol in math environment
\text{\euro} might not be a good idea
I assume that \euro is used here as a unit, those should always be typeset upright, but \text uses the surrounding text, \textit{blah $blah \text{blah} blah$ blah}
use \textup instead
I assume that \euro is used here as a unit, those should always be typeset upright, but \text uses the surrounding text, \textit{blah $blah \text{blah} blah$ blah}
use \textup instead
Re: Euro currency symbol in math environment
I use it as a unit for economic calculations, thats correct.
as far as I can see, \textup and \text produce similar output - both of them suit my needs.
Thank you daleif and Juanjo for your replies!
cheers
as far as I can see, \textup and \text produce similar output - both of them suit my needs.
Thank you daleif and Juanjo for your replies!
cheers
Re: Euro currency symbol in math environment
well some fonts have an italic \euro...