GeneralEuro currency symbol in math environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
moinmoin
Posts: 8
Joined: Wed Oct 01, 2008 4:54 pm

Euro currency symbol in math environment

Post by moinmoin »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Euro currency symbol in math environment

Post by daleif »

wrap it in \textup{...}

presumably it is a textsymbol, those cannot be used inside math
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Euro currency symbol in math environment

Post by Juanjo »

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}$
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Euro currency symbol in math environment

Post by daleif »

\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
moinmoin
Posts: 8
Joined: Wed Oct 01, 2008 4:54 pm

Re: Euro currency symbol in math environment

Post by moinmoin »

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
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Euro currency symbol in math environment

Post by daleif »

well some fonts have an italic \euro...
Post Reply