直立、粗体、小写、带有 cbgreek 字形的希腊数学符号

直立、粗体、小写、带有 cbgreek 字形的希腊数学符号

LaTeX 中的标准数学字体不包括小写希腊字母符号的直立和直立粗体字形。不幸的是,我需要它们出现在我的文档中,因此我必须以某种方式从另一组字体中导入字形。在查看了各种软件包中的各种字体集后,我发现字体集中的 Didot 样式字体集cbgreek最适合我的文档。问题是:我不知道如何导入我需要的字体并将选定的字形定义为数学符号。我尝试使用这个答案,但我无法加载正确的字体。如果能解释一下如何导入cbgreek字体并将选定的字形定义为数学符号,我将不胜感激。

答案1

以下是使用新数学符号字体​​的方法:

\documentclass{article}
\usepackage[LGR,T1]{fontenc}
\usepackage{bm}

\DeclareSymbolFont{upgreek}{LGR}{cmr}{m}{n}
\SetSymbolFont{upgreek}{bold}{LGR}{cmr}{bx}{n}
\DeclareMathSymbol{\upalpha}{\mathord}{upgreek}{`a}
\DeclareMathSymbol{\upbeta}{\mathord}{upgreek}{`b}
\DeclareMathSymbol{\upgamma}{\mathord}{upgreek}{`g}
\DeclareMathSymbol{\updelta}{\mathord}{upgreek}{`d}
\DeclareMathSymbol{\upepsilon}{\mathord}{upgreek}{`e}
\DeclareMathSymbol{\upzeta}{\mathord}{upgreek}{`z}
\DeclareMathSymbol{\upeta}{\mathord}{upgreek}{`h}
\DeclareMathSymbol{\uptheta}{\mathord}{upgreek}{`j}
\DeclareMathSymbol{\upiota}{\mathord}{upgreek}{`i}
\DeclareMathSymbol{\upkappa}{\mathord}{upgreek}{`k}
\DeclareMathSymbol{\uplambda}{\mathord}{upgreek}{`l}
\DeclareMathSymbol{\upmu}{\mathord}{upgreek}{`m}
\DeclareMathSymbol{\upnu}{\mathord}{upgreek}{`n}
\DeclareMathSymbol{\upxi}{\mathord}{upgreek}{`x}
\DeclareMathSymbol{\upomicron}{\mathord}{upgreek}{`o}
\DeclareMathSymbol{\uppi}{\mathord}{upgreek}{`p}
\DeclareMathSymbol{\uprho}{\mathord}{upgreek}{`r}
\DeclareMathSymbol{\upsigma}{\mathord}{upgreek}{`s}
\DeclareMathSymbol{\uptau}{\mathord}{upgreek}{`t}
\DeclareMathSymbol{\upupsilon}{\mathord}{upgreek}{`u}
\DeclareMathSymbol{\upphi}{\mathord}{upgreek}{`f}
\DeclareMathSymbol{\upchi}{\mathord}{upgreek}{`q}
\DeclareMathSymbol{\uppsi}{\mathord}{upgreek}{`y}
\DeclareMathSymbol{\upomega}{\mathord}{upgreek}{`w}

\DeclareMathSymbol{\Upalpha}{\mathord}{upgreek}{`A}
\DeclareMathSymbol{\Upbeta}{\mathord}{upgreek}{`B}
\DeclareMathSymbol{\Upgamma}{\mathord}{upgreek}{`G}
\DeclareMathSymbol{\Updelta}{\mathord}{upgreek}{`D}
\DeclareMathSymbol{\Upepsilon}{\mathord}{upgreek}{`E}
\DeclareMathSymbol{\Upzeta}{\mathord}{upgreek}{`Z}
\DeclareMathSymbol{\Upeta}{\mathord}{upgreek}{`H}
\DeclareMathSymbol{\Uptheta}{\mathord}{upgreek}{`J}
\DeclareMathSymbol{\Upiota}{\mathord}{upgreek}{`I}
\DeclareMathSymbol{\Upkappa}{\mathord}{upgreek}{`K}
\DeclareMathSymbol{\Uplambda}{\mathord}{upgreek}{`L}
\DeclareMathSymbol{\Upmu}{\mathord}{upgreek}{`M}
\DeclareMathSymbol{\Upnu}{\mathord}{upgreek}{`N}
\DeclareMathSymbol{\Upxi}{\mathord}{upgreek}{`X}
\DeclareMathSymbol{\Upomicron}{\mathord}{upgreek}{`O}
\DeclareMathSymbol{\Uppi}{\mathord}{upgreek}{`P}
\DeclareMathSymbol{\Uprho}{\mathord}{upgreek}{`R}
\DeclareMathSymbol{\Upsigma}{\mathord}{upgreek}{`S}
\DeclareMathSymbol{\Uptau}{\mathord}{upgreek}{`T}
\DeclareMathSymbol{\Upupsilon}{\mathord}{upgreek}{`U}
\DeclareMathSymbol{\Upphi}{\mathord}{upgreek}{`F}
\DeclareMathSymbol{\Upchi}{\mathord}{upgreek}{`Q}
\DeclareMathSymbol{\Uppsi}{\mathord}{upgreek}{`Y}
\DeclareMathSymbol{\Upomega}{\mathord}{upgreek}{`W}

\begin{document}
$\upalpha\upbeta\upgamma\updelta\upepsilon\upzeta\upeta
\uptheta\upiota\upkappa\uplambda\upmu\upnu\upxi\upomicron\uppi
\uprho\upsigma\uptau\upupsilon\upphi\upchi\uppsi\upomega$

$\alpha\ne\upalpha\ne\bm{\upalpha}$

$\Gamma\ne\Upgamma\ne\bm{\Upgamma}$
\end{document}

也许您不需要大写字母,但添加它们很容易。

在此处输入图片描述

相关内容