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}
LaTex use ligatures in the text and the PDF-readers treat that as one, unknown character. As far as I remember, I solved the same problem by adding the following two lines in the preamble:
\input{glyphtounicode}
\pdfgentounicode=1
I found this solution in the MinionPro manual, page 7.
I use utf8 encoding in my document, i.e.
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
Also have a look at Ulrike Fischer’s answer to a similar question regarding Linux Libertine.
glyphtounicode
was included in the MiKTeX-distribution I use, but if it is not included in yours, you can find it at Sarovar.
Best Answer
As requested, an example using package
accsupp
that works forpdfTeX
, thedvipdfm
family (dvipdfm
,dvipdfmx
,XeTeX
). In principle it could work fordvips
, but from the documentation ofaccsupp
:Nevertheless, the example file:
Remarks:
I have modified the first example of egreg's answer. In case of pdfTeX I would rather use the second example with the embedded font encoding to Unicode mapping.
A font with
/Euro
as glyph name instead of/e
would be much better.AFAIK the best strategy for copy/paste or searching would be: