I'd go directly to unicode-math:
\documentclass[a4paper]{article}
\usepackage{mathtools} % loads amsmath that should go before unicode-math
\usepackage{unicode-math}
\setmainfont[Numbers=OldStyle]{Palatino Linotype}
\setsansfont{Optima}
\setmonofont{Consolas}
\setmathfont{Asana Math}
Asana Math is based on the MathPaZo fonts.
If you really need brackets and parentheses from the MathPaZo fonts, it's doable:
\DeclareSymbolFont{brackets} {OT1}{zplm}{m}{n}
\SetSymbolFont{brackets}{bold} {OT1}{zplm}{b}{n}
\DeclareSymbolFont{largebrackets} {OMX}{zplm}{m}{n}
\SetSymbolFont{largebrackets}{bold}{OMX}{zplm}{m}{n}
\DeclareMathDelimiter{(}{\mathopen} {brackets}{"28}{largebrackets}{"00}
\DeclareMathDelimiter{)}{\mathclose}{brackets}{"29}{largebrackets}{"01}
\DeclareMathDelimiter{[}{\mathopen} {brackets}{"5B}{largebrackets}{"02}
\DeclareMathDelimiter{]}{\mathclose}{brackets}{"5D}{largebrackets}{"03}
For the Knuth calligraphic font, add
\setmathfont[range={\mathcal,\mathbfcal},StylisticSet=1]{XITS Math}
For a "better" \vDash
symbol, add
\setmathfont[range=\vDash]{XITS Math}
The "not belonging to" symbol should always be specified with \notin
rather than with \not\in
.
Finally, for the AMS blackboard bold:
\DeclareSymbolFont{AMSb}{U}{msb}{m}{n}
\protected\def\mathbb#1{{\mathchar\numexpr256*\symAMSb+`#1\relax}}
From page 5 of the siunitx manual:
By default, all text is typeset in the current upright, serif math font. This can be changed by setting the appropriate options: \sisetup{detect-all}
will use the current font for typesetting.
Thus, just replace the options detect-family
and detect-weight
in the preamble's \sisetup{...}
instruction with detect-all
, and your students will be all set.
Incidentally, if you run \addto\extrasngerman{\sisetup{locale=DE}}
after loading the babel
package with the option ngerman
, you don't have to specify the options output-decimal-marker={\text{,}}
exponent-product = \cdot
, and number-unit-separator=\text{\,}
explicitly while loading the siunitx
package.
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\addto\extrasngerman{\sisetup{locale=DE}}
\usepackage{siunitx}
\sisetup{detect-all} % note: just one option still needs to be specified
\begin{document}
\sffamily
\SI{1.23}{\%}
1,23\,\%
\end{document}
Best Answer
For commercial fonts, many sites make you beg for information, even though one would expect salesmen to exhibit the opposite behavior. MyFonts supplies more information than most, allowing you to do an advanced search for fonts with Greek language support tagged “polytonic.” Both criteria are necessary, because searching for Greek in the “language support” field returns the many fonts supporting only modern Greek. Unfortunately, the tags reflect the discernment or lack thereof in the site’s users, which means that many polytonic fonts are not listed among the results.
For example, the search returns Figgins Sans and Pragmatica, but not Hypatia, which is an interesting sans serif with polytonic Greek and everything needed for proper transliteration of Semitic languages (very few fonts support that). P22 Underground Pro is another that should be listed but isn’t; it supports an extraordinary range of languages and comes in many weights but has no italic.
Be sure to examine the table of glyphs for the fonts listed when you search that site, because I have not found searches perfectly accurate. That’s true also for another kind of search you can perform on MyFonts: choose the field “available characters” in the advanced search form, and type or paste some uncommon character into the search box.
Among free fonts, Ralph Hancock’s Hyle is very attractive; it has no ligatures and you need to write a feature file to use its ligatures, but that’s easy in
luatex
. Aroania, like the Greek Font Society’s Neohellenic, is a revival of Scholderer’s New Hellenic, but based on Verdana. Source Sans Pro also supports polytonic Greek, as long as you get it in TeX Live or directly from Adobe, not as optimized for the web by Google. Also in TeX Live are DejaVu Sans, Fira Sans, Carlito, FreeSans, and Biolinum. The Ubuntu fonts and Lato (not the Lato in TeX Live, but the full version from the designer’s site) have broad support for languages. And the Noto fonts aim to support all scripts encoded by Unicode.You may have other sans serif fonts that support Greek already on your system. At least on GNU/Linux, you can find them from the command line by typing
fc-list :lang=el
. You will then have to inspect them to see whether they support polytonic or only monotonic Greek.