[XeTeX] Diacritics
Fr. Michael Gilmary
FrMichaelGilmary at MaroniteMonks.org
Mon May 3 23:43:18 CEST 2010
José Carlos Santos wrote:
> I repeat: if I compile this file:
>
> \documentclass{article}
> \usepackage{xltxtra}
> \setmainfont[Mapping=tex-text]{DTLUnicoST}
> \begin{document}
> ń
> \end{document}
>
> I get nothing.
Hi José:
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.
HTH.
--
United in adoration of Jesus,
fr. michael gilmary, mma
Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725
www.MaroniteMonks.org
More information about the XeTeX
mailing list