I am building my CV using this xeLaTeX template.
When trying to include accents as I usually do in LaTeX, I got wrong symbols like this:
Looking at the template code, it includes the following:
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{fontspec} % Required for specification of custom fonts
\setmainfont[Path = ./fonts/,
Extension = .otf,
BoldFont = Erewhon-Bold,
ItalicFont = Erewhon-Italic,
BoldItalicFont = Erewhon-BoldItalic,
SmallCapsFeatures = {Letters = SmallCaps}
]{Erewhon-Regular}
I also tried to use babel,
\usepackage[spanish, american]{babel}
switching back and forth between American and Spanish with \selectlanguage
command. No success.
Any ideas about how to solve this issue?
Thanks in advance.
inputenc
along withfontspec
\set*font
commands fromfontspec
is now:\setmainfont{<fontname>}[<options>]
.