The unicode symbol € does work, if you use a modern font that contains that symbol. :-)
The best practice is to use right symbol for right font. For Computer Modern fonts, eurosym
is OK, or textcomp
(using fonts provided by CM-super). See this FAQ for more packages:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=euro
I suggest Latin Modern fonts (using lmodern
together with textcomp
package), which is similar to Computer Modern. So you can use:
\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern,textcomp}
\begin{document}
€100
\end{document}
There are still some other font packages with euro symbol. If you use such font themes, use the euro symbol provided by the font package. For example, libertine
, fourier
and mathdesign
package. Thus you can also use:
\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage{libertine} % or \usepackage{fourier} or \usepackage[utopia]{mathdesign}
\begin{document}
€100 % or \texteuro100
\end{document}
Using XeLaTeX, most modern OpenType/TrueType fonts have euro symbols, including default Latin Modern fonts. You can use them directly:
% xelatex
\documentclass{article}
\usepackage{fontspec}% Latin Modern by default
% or \setmainfont{Whatever you want}
\begin{document}
€100
\end{document}
Best Answer
Even though Swiss francs are not an SI unit, the
siunitx
package is really convenient to typeset numbers with units. You simply declare CHF a new unit withIf you now want to change the representation from CHF to, say, Fr. throughout the whole document, all you have to do is adjust the definition to
Here a full example: