我对mtpro2
LaTeX 中的软件包还有另一个问题。他们声称他们有斜体和直立的下黑板希腊文。但是,在 LaTeX 中无法访问直立版本,在纯 TeX 中,你只能使用\mhbi\upmu
示例,它可以工作,但\mathbb{\upmu}
在 LaTeX 中却不行。
有什么解决方法吗?
答案1
这是因为在 中mtpro2.sty
,直立的数学希腊字母被声明为\mathord
,但不是\mathalpha
。因此它们不能通过 更改字体\mathbb
。
您可以按如下方式重新定义这些字母:
\documentclass{article}
\usepackage[mtphbi]{mtpro2}
\DeclareMathSymbol{\upGamma}{\mathalpha}{letters}{"80}
\DeclareMathSymbol{\upDelta}{\mathalpha}{letters}{"81}
\DeclareMathSymbol{\upTheta}{\mathalpha}{letters}{"82}
\DeclareMathSymbol{\upLambda}{\mathalpha}{letters}{"83}
\DeclareMathSymbol{\upXi}{\mathalpha}{letters}{"84}
\DeclareMathSymbol{\upPi}{\mathalpha}{letters}{"85}
\DeclareMathSymbol{\upSigma}{\mathalpha}{letters}{"86}
\DeclareMathSymbol{\upUpsilon}{\mathalpha}{letters}{"87}
\DeclareMathSymbol{\upPhi}{\mathalpha}{letters}{"88}
\DeclareMathSymbol{\upPsi}{\mathalpha}{letters}{"89}
\DeclareMathSymbol{\upOmega}{\mathalpha}{letters}{"7F}
\DeclareMathSymbol{\upalpha}{\mathalpha}{letters}{"92}
\DeclareMathSymbol{\upbeta}{\mathalpha}{letters}{"93}
\DeclareMathSymbol{\upgamma}{\mathalpha}{letters}{"94}
\DeclareMathSymbol{\updelta}{\mathalpha}{letters}{"95}
\DeclareMathSymbol{\upepsilon}{\mathalpha}{letters}{"96}
\DeclareMathSymbol{\upzeta}{\mathalpha}{letters}{"97}
\DeclareMathSymbol{\upeta}{\mathalpha}{letters}{"98}
\DeclareMathSymbol{\uptheta}{\mathalpha}{letters}{"99}
\DeclareMathSymbol{\upiota}{\mathalpha}{letters}{"9A}
\DeclareMathSymbol{\upkappa}{\mathalpha}{letters}{"9B}
\DeclareMathSymbol{\uplambda}{\mathalpha}{letters}{"9C}
\DeclareMathSymbol{\upmu}{\mathalpha}{letters}{"9D}
\DeclareMathSymbol{\upnu}{\mathalpha}{letters}{"9E}
\DeclareMathSymbol{\upxi}{\mathalpha}{letters}{"9F}
\DeclareMathSymbol{\uppi}{\mathalpha}{letters}{160}
\DeclareMathSymbol{\uprho}{\mathalpha}{letters}{161}
\DeclareMathSymbol{\upsigma}{\mathalpha}{letters}{162}
\DeclareMathSymbol{\uptau}{\mathalpha}{letters}{163}
\DeclareMathSymbol{\upupsilon}{\mathalpha}{letters}{164}
\DeclareMathSymbol{\upphi}{\mathalpha}{letters}{165}
\DeclareMathSymbol{\upchi}{\mathalpha}{letters}{166}
\DeclareMathSymbol{\uppsi}{\mathalpha}{letters}{167}
\DeclareMathSymbol{\upomega}{\mathalpha}{letters}{168}
\DeclareMathSymbol{\upvarepsilon}{\mathalpha}{letters}{169}
\DeclareMathSymbol{\upvartheta}{\mathalpha}{letters}{170}
\DeclareMathSymbol{\upvarpi}{\mathalpha}{letters}{171}
\DeclareMathSymbol{\upvarrho}{\mathalpha}{letters}{172}
\DeclareMathSymbol{\upvarsigma}{\mathalpha}{letters}{173}
\DeclareMathSymbol{\upvarphi}{\mathalpha}{letters}{174}
\DeclareMathSymbol{\upvarkappa}{\mathalpha}{letters}{175}
\DeclareMathSymbol{\upvarbeta}{\mathalpha}{letters}{177}
\DeclareMathSymbol{\upvardelta}{\mathalpha}{letters}{179}
\begin{document}
$\mathbb{\pi\uppi}$
$\pi\uppi$
\end{document}
我没有仔细检查代码。还有其他副作用吗?