diff options
author | Andrew Dunning <adunning@users.noreply.github.com> | 2019-01-12 20:39:47 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-12 17:39:47 -0800 |
commit | 96892ea8d7dd024de36c135845e2981c7f957bc6 (patch) | |
tree | a49d9cd9086756cce694bbf0ff397d369b79e3dd /data/templates/default.slidy | |
parent | fd222b811b584df31651b3b4657941fc8a44eb62 (diff) | |
download | pandoc-96892ea8d7dd024de36c135845e2981c7f957bc6.tar.gz |
LaTeX template: Simplify fontspec usage (#5218)
Simplify the approach of #5212, ensuring that `mainfont` is used as the base font for scaling and that LuaLaTeX does not display the mono font with TeX ligatures (as it does not use the `Mapping=tex-ansi` option).
With a modified version of `\defaultfontfeatures`, fontspec will continue to report scaling against the old default font in the log, but it nonetheless displays main font at the specified size. Using this rather than setting `Scale=MatchLowercase` for each family individually means that users will not lose scaling when upgrading to the new template if they were using other font options. Scaling can be disabled for an individual family by adding the option `Scale=1` to `sansfontoptions`, `monofontoptions`, etc.
Remove the `\setromanfont` command added in #4665, as this is not documented in the fontspec manual and appears to be a deprecated alias for `\setmainfont`.
For the release notes, I should also add that one can imitate the previous appearance with `-V mainfontoptions="Scale=MatchLowercase"`.
Diffstat (limited to 'data/templates/default.slidy')
0 files changed, 0 insertions, 0 deletions