[XeTeX] Diacritics

José Carlos Santos jcsantos at fc.up.pt
Tue May 4 00:52:42 CEST 2010


On 03-05-2010 22:43, Fr. Michael Gilmary wrote:

>> I repeat: if I compile this file:
>>
>> \documentclass{article}
>> \usepackage{xltxtra}
>> \setmainfont[Mapping=tex-text]{DTLUnicoST}
>> \begin{document}
>> ń
>> \end{document}
>>
>> I get nothing.
>
> Try this:
>
> \documentclass{article}
> \usepackage{xltxtra}
> \setmainfont[Mapping=tex-text]{DTLUnicoST}
> %\setmainfont{Times New Roman}
>
>
>
> \def\overstrike#1#2{\leavevmode
> \setbox0=\hbox{#1}\setbox1=\hbox{#2}\copy0
> \kern -0.5\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0}
>
>
>
> \begin{document}
> ń
>
> \overstrike{n}{\char"00B4}
>
> \end{document}
>
>
>
> The definition of \overstrike can be modified to suit your needs. The
> \char"00B4 is the acute accent as Unicode has it. If your font has it
> differently (i.e., not a Unicode point) I don't think this will work. I
> tried Times New Roman because on this machine, it doesn't have the
> accented n --- and it worked here.
>
> If your font isn't Unicode compliant, maybe try to use another font, if
> you can.

Your suggestion works. Thank you very much.

You were able to get this solution because you knew that "\char"00B4 is 
the acute accent as Unicode has it". Where can I find this information 
for other accents?

Best regards,

José Carlos Santos


More information about the XeTeX mailing list