我正在尝试制作一个完全实现 ISO 80000-2 符号建议的软件包,用于我计划编写的一本物理书籍。这些建议要求使用无衬线字母来表示张量,当使用无坐标符号时,粗体是完美的选择。Unicode 可以轻松适应这一点。然而,在物理学中,许多张量(特别是在电磁理论中)都用希腊字母表示。非粗体(我认为称为中等重量......如果我错了请纠正我)字符通常用于张量索引符号,而 Unicode 并未正式提供它们。这在物理学中是有问题的,因为电磁理论中的许多张量(例如 Levi-Civita、介电常数、磁导率、磁化率、极化率)都用希腊字母表示,因此不能符合 ISO 80000-2 建议。我不会争论 ISO 80000-2 是否正确,甚至是否必要,主要是因为我的论点没有什么分量。我想在我的工作中尽可能轻松地实现内部一致的符号,因此我提出了这个问题。
感谢 David Carlisle,我最近了解到 STIX Two Math 字体包含私人使用区中原本缺失的字符。mwe 显示了我目前访问必要字形的笨拙方式。我的问题是是否有其他方法可以很好地与“unicode-math”配合使用。
妇女权利委员会:
% !TEX program = lualatexmk
% !TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{geometry}
\usepackage{mathtools}
\usepackage{unicode-math}
\unimathsetup{math-style=ISO}
\unimathsetup{warnings-off={mathtools-colon,mathtools-overbracket}}
\setmathfont[Scale=MatchLowercase]
{Latin Modern Math} % default math font; better J
\setmathfont[Scale=MatchLowercase,range={"E17C-"E1F6}]{STIX Two Math}
\newfontfamily{\symsfgreek}{STIX Two Math}
% I don't understand why \text{...} is necessary.
\newcommand{\symsfupalpha} {\text{\symsfgreek{^^^^e196}}}
\newcommand{\symsfupbeta} {\text{\symsfgreek{^^^^e197}}}
\newcommand{\symsfupgamma} {\text{\symsfgreek{^^^^e198}}}
\newcommand{\symsfupdelta} {\text{\symsfgreek{^^^^e199}}}
\newcommand{\symsfupepsilon} {\text{\symsfgreek{^^^^e1af}}}
\newcommand{\symsfupvarepsilon} {\text{\symsfgreek{^^^^e19a}}}
\newcommand{\symsfupzeta} {\text{\symsfgreek{^^^^e19b}}}
\newcommand{\symsfupeta} {\text{\symsfgreek{^^^^e19c}}}
\newcommand{\symsfuptheta} {\text{\symsfgreek{^^^^e19d}}}
\newcommand{\symsfupvartheta} {\text{\symsfgreek{^^^^e1b0}}}
\newcommand{\symsfupiota} {\text{\symsfgreek{^^^^e19e}}}
\newcommand{\symsfupkappa} {\text{\symsfgreek{^^^^e19f}}}
\newcommand{\symsfuplambda} {\text{\symsfgreek{^^^^e1a0}}}
\newcommand{\symsfupmu} {\text{\symsfgreek{^^^^e1a1}}}
\newcommand{\symsfupnu} {\text{\symsfgreek{^^^^e1a2}}}
\newcommand{\symsfupxi} {\text{\symsfgreek{^^^^e1a3}}}
\newcommand{\symsfupomicron} {\text{\symsfgreek{^^^^e1a4}}}
\newcommand{\symsfuppi} {\text{\symsfgreek{^^^^e1a5}}}
\newcommand{\symsfupvarpi} {\text{\symsfgreek{^^^^e1b3}}}
\newcommand{\symsfuprho} {\text{\symsfgreek{^^^^e1a6}}}
\newcommand{\symsfupvarrho} {\text{\symsfgreek{^^^^e1b2}}}
\newcommand{\symsfupsigma} {\text{\symsfgreek{^^^^e1a8}}}
\newcommand{\symsfupvarsigma} {\text{\symsfgreek{^^^^e1a7}}}
\newcommand{\symsfuptau} {\text{\symsfgreek{^^^^e1a9}}}
\newcommand{\symsfupupsilon} {\text{\symsfgreek{^^^^e1aa}}}
\newcommand{\symsfupphi} {\text{\symsfgreek{^^^^e1b1}}}
\newcommand{\symsfupvarphi} {\text{\symsfgreek{^^^^e1ab}}}
\newcommand{\symsfupchi} {\text{\symsfgreek{^^^^e1ac}}}
\newcommand{\symsfuppsi} {\text{\symsfgreek{^^^^e1ad}}}
\newcommand{\symsfupomega} {\text{\symsfgreek{^^^^e1ae}}}
\newcommand{\symsfupDelta} {\text{\symsfgreek{^^^^e180}}}
\newcommand{\symsfupGamma} {\text{\symsfgreek{^^^^e17f}}}
\newcommand{\symsfupTheta} {\text{\symsfgreek{^^^^e18e}}}
\newcommand{\symsfupLambda} {\text{\symsfgreek{^^^^e187}}}
\newcommand{\symsfupXi} {\text{\symsfgreek{^^^^e18a}}}
\newcommand{\symsfupPi} {\text{\symsfgreek{^^^^e18c}}}
\newcommand{\symsfupSigma} {\text{\symsfgreek{^^^^e18f}}}
\newcommand{\symsfupUpsilon} {\text{\symsfgreek{^^^^e191}}}
\newcommand{\symsfupPhi} {\text{\symsfgreek{^^^^e192}}}
\newcommand{\symsfupPsi} {\text{\symsfgreek{^^^^e194}}}
\newcommand{\symsfupOmega} {\text{\symsfgreek{^^^^e195}}}
\newcommand{\symsfitalpha} {\text{\symsfgreek{^^^^e1d8}}}
\newcommand{\symsfitbeta} {\text{\symsfgreek{^^^^e1d9}}}
\newcommand{\symsfitgamma} {\text{\symsfgreek{^^^^e1da}}}
\newcommand{\symsfitdelta} {\text{\symsfgreek{^^^^e1db}}}
\newcommand{\symsfitepsilon} {\text{\symsfgreek{^^^^e1f1}}}
\newcommand{\symsfitvarepsilon} {\text{\symsfgreek{^^^^e1dc}}}
\newcommand{\symsfitzeta} {\text{\symsfgreek{^^^^e1dd}}}
\newcommand{\symsfiteta} {\text{\symsfgreek{^^^^e1de}}}
\newcommand{\symsfittheta} {\text{\symsfgreek{^^^^e1df}}}
\newcommand{\symsfitvartheta} {\text{\symsfgreek{^^^^e1f2}}}
\newcommand{\symsfitiota} {\text{\symsfgreek{^^^^e1e0}}}
\newcommand{\symsfitkappa} {\text{\symsfgreek{^^^^e1e1}}}
\newcommand{\symsfitlambda} {\text{\symsfgreek{^^^^e1e2}}}
\newcommand{\symsfitmu} {\text{\symsfgreek{^^^^e1e3}}}
\newcommand{\symsfitnu} {\text{\symsfgreek{^^^^e1e4}}}
\newcommand{\symsfitxi} {\text{\symsfgreek{^^^^e1e5}}}
\newcommand{\symsfitomicron} {\text{\symsfgreek{^^^^e1e6}}}
\newcommand{\symsfitpi} {\text{\symsfgreek{^^^^e1e7}}}
\newcommand{\symsfitvarpi} {\text{\symsfgreek{^^^^e1f5}}}
\newcommand{\symsfitrho} {\text{\symsfgreek{^^^^e1e8}}}
\newcommand{\symsfitvarrho} {\text{\symsfgreek{^^^^e1f4}}}
\newcommand{\symsfitsigma} {\text{\symsfgreek{^^^^e1ea}}}
\newcommand{\symsfitvarsigma} {\text{\symsfgreek{^^^^e1e9}}}
\newcommand{\symsfittau} {\text{\symsfgreek{^^^^e1eb}}}
\newcommand{\symsfitupsilon} {\text{\symsfgreek{^^^^e1ec}}}
\newcommand{\symsfitphi} {\text{\symsfgreek{^^^^e1f3}}}
\newcommand{\symsfitvarphi} {\text{\symsfgreek{^^^^e1ed}}}
\newcommand{\symsfitchi} {\text{\symsfgreek{^^^^e1ee}}}
\newcommand{\symsfitpsi} {\text{\symsfgreek{^^^^e1ef}}}
\newcommand{\symsfitomega} {\text{\symsfgreek{^^^^e1f0}}}
\newcommand{\symsfitDelta} {\text{\symsfgreek{^^^^e1c2}}}
\newcommand{\symsfitGamma} {\text{\symsfgreek{^^^^e1c1}}}
\newcommand{\symsfitTheta} {\text{\symsfgreek{^^^^e1d0}}}
\newcommand{\symsfitLambda} {\text{\symsfgreek{^^^^e1c9}}}
\newcommand{\symsfitXi} {\text{\symsfgreek{^^^^e1cc}}}
\newcommand{\symsfitPi} {\text{\symsfgreek{^^^^e1ce}}}
\newcommand{\symsfitSigma} {\text{\symsfgreek{^^^^e1d1}}}
\newcommand{\symsfitUpsilon} {\text{\symsfgreek{^^^^e1d3}}}
\newcommand{\symsfitPhi} {\text{\symsfgreek{^^^^e1d4}}}
\newcommand{\symsfitPsi} {\text{\symsfgreek{^^^^e1d6}}}
\newcommand{\symsfitOmega} {\text{\symsfgreek{^^^^e1d7}}}
\begin{document}
\( \symsfupalpha\symsfupbeta\symsfupgamma\symsfupdelta\symsfupepsilon\symsfupvarepsilon\symsfupzeta
\symsfupeta\symsfuptheta\symsfupvartheta\symsfupiota\symsfupkappa\symsfuplambda\symsfupmu\symsfupnu
\symsfupxi\symsfupomicron\symsfuppi\symsfupvarpi\symsfuprho\symsfupvarrho\symsfupsigma
\symsfupvarsigma\symsfuptau\symsfupupsilon\symsfupphi\symsfupvarphi\symsfupchi\symsfuppsi
\symsfupomega\symsfupDelta\symsfupGamma\symsfupTheta\symsfupLambda\symsfupXi\symsfupPi\symsfupSigma
\symsfupUpsilon\symsfupPhi\symsfupPsi\symsfupOmega \)
\( \symsfitalpha\symsfitbeta\symsfitgamma\symsfitdelta\symsfitepsilon\symsfitvarepsilon\symsfitzeta
\symsfiteta\symsfittheta\symsfitvartheta\symsfitiota\symsfitkappa\symsfitlambda\symsfitmu\symsfitnu
\symsfitxi\symsfitomicron\symsfitpi\symsfitvarpi\symsfitrho\symsfitvarrho\symsfitsigma
\symsfitvarsigma\symsfittau\symsfitupsilon\symsfitphi\symsfitvarphi\symsfitchi\symsfitpsi
\symsfitomega\symsfitDelta\symsfitGamma\symsfitTheta\symsfitLambda\symsfitXi\symsfitPi\symsfitSigma
\symsfitUpsilon\symsfitPhi\symsfitPsi\symsfitOmega \)
\end{document}