TeX - LaTeX Asked on March 28, 2021
I would like to display ligatures in a text set with Times New Roman, using LuaLaTeX to compile. I have tried setmainfont[Ligatures=Common]{Times New Roman}
as well as Ligatures=TeX
. Both seem to be ignored. The ligature glyphs are installed on my system.
In an older answer I saw that I can manually map the ligatures (Ligatures for fi, fl, ffl do not work for Times New Roman (XeLaTeX)). However, I was wondering if this has become simpler in 2020.
MWE:
documentclass{scrartcl}
usepackage{fontspec}
setmainfont[Ligatures=TeX]{Times New Roman}
begin{document}
office fit fluent
o{f}{f}ice {f}it {f}luent %to display text without ligatures
end{document}
For some unknown reason times puts these ligatures under dlig
. So use the Rare
option.
Braces don't suppress ligatures, use /
documentclass{scrartcl}
usepackage{fontspec}
setmainfont{Times New Roman}[Ligatures=Rare]
begin{document}
office fit fluent ---
o{f}{f}ice {f}it {f}luent %doesn't work to display text without ligatures
of/fice f/it f/luent %to display text without ligatures
end{document}
Correct answer by Ulrike Fischer on March 28, 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