[XeTeX] Footnote refs

Meho R. meho_r at yahoo.com
Sat Dec 18 19:34:42 CET 2010


> From: Fr. Michael Gilmary <FrMichaelGilmary at maronitemonks.org>
> To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
> Sent: Saturday, December 18, 2010 16:11:53
> Subject: Re: [XeTeX] Footnote refs
> 
> Well, I've got this much working ---
> 
> if I add in the preamble:
> 
> \setmainfont[Numbers={OldStyle,Proportional}]{Latin Modern Roman}
> \newfontfamily\fnmarkfont{Latin Modern Roman}
> 
> \makeatletter
> \renewcommand*{\@makefnmark}{{\fnmarkfont\textsuperscript{\@thefnmark}}}
> \makeatother
> 
> 
> then the footnote superscript numbers /in the text/ are correct AFAICT. But the 
>footnote superscript numbers /in the footer/ are *not* correct, i.e., > they are 
>still OldStyle rather than Lining. See attached image.
> 
> Does anyone know how to control this?
> 
> This never happened in the past ... I only noticed this the other day, but with 
>docs I've prepared before TL10, I can see that /something/ has changed.
> 
> Any ideas?


Hi, Michael.

This worked for me (notice that \fontspec doesn't work, but \setmainfont does):

\documentclass{article}

\usepackage{fontspec}

\setmainfont[Numbers={OldStyle,Proportional}]{Adobe Garamond Pro}

\makeatletter
\renewcommand\@makefntext[1]{%
\setlength\parindent{1em}%
\noindent
\makebox[1.8em][r]{%
\setmainfont[Scale=0.9]{Adobe Garamond Pro}%
\@makefnmark}#1}
\makeatother

\begin{document}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
Test\footnote{Some text.}
\end{document}

usoPreviewPopup

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20101218/18180bd8/attachment.html>


More information about the XeTeX mailing list