TeX - LaTeX Asked by Elliott Slaughter on September 30, 2021
This is the same basic question as here and here but for LuaLaTeX. I don’t know if I’m missing something but the following does not work for me:
documentclass{article}
usepackage{fontspec}
usepackage{polyglossia}
setdefaultlanguage{english}
setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}
begin{document}
noindent
123456789ABCDEF
noindent
textsc{123456789ABCDEF}
end{document}
The OldStyle numerals come through fine but I cannot get small caps to work no matter what I do. I do not see any warnings or errors in the output when I run lualatex test.tex
, and the output contains:
</usr/local/texlive/2020/texmf-dist/fonts/opentype/public/tex-gyre/texgyrepagel
la-regular.otf>
So I think it’s loading the font correctly.
What gives?
Edit: Note, this isn’t just about TeX Gyre Pagella. I can reproduce the same results with e.g., Minion Pro, which I have been able to use with small caps in other programs. I just included TeX Gyre Pagella here because it makes the reproducer easier to distribute.
I think you're misunderstanding the meaning of “small caps”: it only has effects on lowercase letters.
documentclass{article}
usepackage{fontspec}
usepackage{polyglossia}
setdefaultlanguage{english}
setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}
begin{document}
noindent
123456789ABCDEFabcdef
noindent
textsc{123456789ABCDEFabcdef}
end{document}
Correct answer by egreg on September 30, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP