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)






--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to