I am now switching over to lualatex (hence so many questions), partly in order to be able to use another font, partly to learn lua facilities.
\usepackage{fontspec} %% should come before microtype
\newfontfamily{\andika}
[Ligatures=TeX, % recommended
UprightFont={*},
ItalicFont={* Italic},
BoldFont={* Bold},
BoldItalicFont={* Bold Italic}]{Andika}
\newcommand{\textandikabf}[2][20]{{\andika\bfseries\fontsize{#1}{#1}\selectfont#2}}
Like most people, I have hamstered together style files I have used for years, which include fonts I have used for years, most of which I don't fully understand. I believe fontspec tinkers/overrides some of them. I am trying to figure out what is good practice now.
\usepackage[T1]{fontenc}
--- presumably, I still leave this.
\usepackage{charter}
--- was my main font because it is heavier than modern roman, has good math fonts, and is free whereever latex is installed. alas, fontspec seems to override this one, even though I do not use \setmainfont
. I am also not sure whether the macos (or other computer system) charter fonts are as good as those included with texlive.
\usepackage[mdbch,ttscaled=true]{mathdesign}
--- to match the charter on the math font side.
\usepackage{textcomp}
--- text companion fonts, presumably also still ok. For stuff like the Yen symbol.
\usepackage{microtype}
--- I believe this has to be loaded after package fontspec.
Ergo, my primary question is how to get back my good latex-native charter font now (and still use andika for highlights). My secondary question is how to deal with these other mentioned font-related packages. Advice [as always] highly appreciated.
PS: (If anyone knows of another good universal and free font on all TeX systems with good math support that would be better for a textbook, feel free to drop me a hint, too. The font catalog lists fonts with mathsupport in https://tug.org/FontCatalogue/mathfonts.html .)
unicode-math
package? The manual is very good. Fonts are a deep well.Charis SIL
is a charter clone. AndErewhon
is available: Erewhon tex.stackexchange.com/questions/530983/…fontspec
- it's not totally aneither/or
issue. Depends on what you want to do.ß
would just output the wrong character) It probably works more or less if you don't care about correct hyphenation and don't use non ASCII character in your source file, but it's very easy to introduce hidden errors.