I need to include some tex files as parts of a more global project. Some of this global projects have to be compiled with pdflatex, some others with lualatex, but the parts are the same. All this part files are written with a € as an utf8 character. I would like avoid to replace them by a \texteuro
.
Is there a way to make lualatex understand € as a \texteuro
?
\documentclass[french]{article}
\RequirePackage{ifluatex}
\ifluatex
\RequirePackage{fontspec}
\RequirePackage{luacode}
\else
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\fi
\RequirePackage{fourier}
\begin{document}
36\,\texteuro % works with both pdflatex lualatex
36\,€ % doesn't work with lualatex
\end{document}
36 your euro
and an infinite loop if a remplace your euro by € ;-)\texteuro
or other command which produces the symbol.