[XeTeX] Quotation marks
Herbert Schulz
herbs at wideopenwest.com
Wed Jun 8 12:54:27 CEST 2011
On Jun 8, 2011, at 5:31 AM, José Carlos Santos wrote:
> Hi all,
>
> Can someone please explain why is it that if I compile the document:
>
> \documentclass{article}
> \usepackage{fontspec,lmodern}
> \usepackage[T1]{fontenc}
> \begin{document}
> «A»
> \end{document}
>
> what I get is
>
> ńAż
>
> instead of
>
> «A» ?
>
> Best regards,
>
> Jose Carlos Santos
>
Howdy,
Because you are mixing pdflatex and xelatex. Don't use the lmodern package (I believe fontspec defaults to the otf version of latin modern if you don't specify a main/roman font) and certainly don't use the fontenc package.
\documentclass{article}
\usepackage{fontspec}
\begin{document}
«A»
\end{document}
Finally, make sure you are saving the file as UTF-8.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the XeTeX
mailing list