我正在尝试更改字体以便在方程式(数学环境)中以不同的格式书写一些字母,但是无法正确地做到这一点。
我正在考虑为我将使用的每个特定字母创建一个新命令,或者创建一个具有不同格式的本地环境。具体来说,我对使用希腊字母的不同格式感兴趣,比如图 8(第 9 页)中出现的“Antykwa Torunska 文本和数学 (\usepackage[math]{anttor})”文件。
我看到的例子并没有解决这类问题。
答案1
您可以为 Antikwa Toruńska 数学希腊字母和特定命令定义新的符号字体。
然而,字体可能应该缩小以匹配标准字体。
\documentclass{article}
% relevant lines from omsantt.fd
\DeclareFontFamily{OML}{antt}{}
\DeclareFontShape{OML}{antt}{m}{it}{<-> s*[0.9] mi-anttri}{}
\DeclareFontShape{OML}{antt}{b}{it}{<-> s*[0.9] mi-anttbi}{}
% declare a symbol font
\DeclareSymbolFont{anttletters}{OML}{antt}{m}{it}
\SetSymbolFont{anttletters}{bold}{OML}{antt}{b}{it}
% copied (with obvious changes) from fontmath.ltx
\DeclareMathSymbol{\atalpha}{\mathord}{anttletters}{"0B}
\DeclareMathSymbol{\atbeta}{\mathord}{anttletters}{"0C}
\DeclareMathSymbol{\atgamma}{\mathord}{anttletters}{"0D}
\DeclareMathSymbol{\atdelta}{\mathord}{anttletters}{"0E}
\DeclareMathSymbol{\atepsilon}{\mathord}{anttletters}{"0F}
\DeclareMathSymbol{\atzeta}{\mathord}{anttletters}{"10}
\DeclareMathSymbol{\ateta}{\mathord}{anttletters}{"11}
\DeclareMathSymbol{\attheta}{\mathord}{anttletters}{"12}
\DeclareMathSymbol{\atiota}{\mathord}{anttletters}{"13}
\DeclareMathSymbol{\atkappa}{\mathord}{anttletters}{"14}
\DeclareMathSymbol{\atlambda}{\mathord}{anttletters}{"15}
\DeclareMathSymbol{\atmu}{\mathord}{anttletters}{"16}
\DeclareMathSymbol{\atnu}{\mathord}{anttletters}{"17}
\DeclareMathSymbol{\atxi}{\mathord}{anttletters}{"18}
\DeclareMathSymbol{\atpi}{\mathord}{anttletters}{"19}
\DeclareMathSymbol{\atrho}{\mathord}{anttletters}{"1A}
\DeclareMathSymbol{\atsigma}{\mathord}{anttletters}{"1B}
\DeclareMathSymbol{\attau}{\mathord}{anttletters}{"1C}
\DeclareMathSymbol{\atupsilon}{\mathord}{anttletters}{"1D}
\DeclareMathSymbol{\atphi}{\mathord}{anttletters}{"1E}
\DeclareMathSymbol{\atchi}{\mathord}{anttletters}{"1F}
\DeclareMathSymbol{\atpsi}{\mathord}{anttletters}{"20}
\DeclareMathSymbol{\atomega}{\mathord}{anttletters}{"21}
\DeclareMathSymbol{\atvarepsilon}{\mathord}{anttletters}{"22}
\DeclareMathSymbol{\atvartheta}{\mathord}{anttletters}{"23}
\DeclareMathSymbol{\atvarpi}{\mathord}{anttletters}{"24}
\DeclareMathSymbol{\atvarrho}{\mathord}{anttletters}{"25}
\DeclareMathSymbol{\atvarsigma}{\mathord}{anttletters}{"26}
\DeclareMathSymbol{\atvarphi}{\mathord}{anttletters}{"27}
\begin{document}
$\atalpha+\atbeta+\atgamma+\atdelta+\atepsilon+\atzeta+\ateta+\attheta+\atkappa+\atlambda+\atmu$
$\atnu+\atxi+\atpi+\atrho+\atsigma+\attau+\atupsilon+\atphi+\atchi+\atpsi+\atomega$
$\atvarepsilon+\atvartheta+\atvarphi+\atvarrho+\atvarsigma+\atvarphi$
$\alpha+\atalpha$
\end{document}