Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use old-style numerals as the default text font, but that also makes the footnote numbers old-style---which I don't want.

How can change the footnote numbers to lining figures?

I'm using LuaLaTeX and Adobe Garamond Pro.

share|improve this question
    
Alan, the realscripts package isn't working. Two files were installed: realscripts.sty and realscripts.tpm. I then used \usepackage{fontspec,realscripts}. The result: the footnote numbers were set on the baseline, both in the body of the text and at the bottom of the page. And, they were still old-style, instead of the special superscript glyphs that Adobe Garamond has. Any idea what could be wrong? –  Bob Beckett May 30 '11 at 17:22
add comment

1 Answer

up vote 6 down vote accepted

Just load the realscripts package. It defaults to regular numbers.

Here's a minimal test document:

% !TEX TS-program = LuaLaTeX
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle,Ligatures=TeX]{Adobe Garamond Pro}
\usepackage{realscripts}

\begin{document}
This is some text.\footnote{A footnote} Some more text.

{\addfontfeatures{Numbers=Lining}Lining Numbers: 1234567} OldStyle Numbers: 1234567
\end{document}

output of code

share|improve this answer
    
Alan, I can't get this package to work. –  Bob Beckett May 30 '11 at 17:04
    
@Bob I've edited my answer to include a minimal document. Does that produce the same output for you? (I've artificially squished the placement of the actual footnote in the image.) If not, there's something wrong with your installation. If it does, then you'll need to investigate other aspects of your actual document that are the source of the problem. What document class are you using? –  Alan Munn May 30 '11 at 18:10
    
OK, I found the problem. Not too long ago, I discovered that I wasn't getting ligatures, so I added Renderer=Basic in the \setmainfont statement. When I just now removed it, realscripts worked like a charm, and I'm still getting ligatures. (I updated Miktex 2.9 yesterday, so maybe that corrected the problem I had with ligatures.) So now everything's fine. Thanks for your help. –  Bob Beckett May 30 '11 at 23:17
    
I'm glad the answer helped. Since it helped to solve the problem you should accept it by clicking on the check mark beside the answer. –  Alan Munn May 30 '11 at 23:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.