[Tex/LaTex] Upright, boldface, lowercase, greek math symbols with cbgreek glyphs

fontsgreekmath-mode

The standard math fonts in LaTeX do not include upright and upright boldface glyphs for lowercase greek symbols. Unfortunately, I need them in my document, so in some way I'll have to import the glyphs from another set of fonts. After looking through various sets of fonts in various packages, I have found that the Didot style set of fonts in the cbgreek sets of fonts will best fit my document. The problem is: I don't know how I can import the fonts I need and define selected glyphs as math symbols. I tried experimenting with this answer, but I wasn't able to load the correct font. An explanation on how to import cbgreek fonts and define selected glyphs as math symbols would be much appreciated.

Best Answer

Here's a way with a new math symbol font:

\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}

Maybe you don't need the uppercase letters, but it was easy to add them.

enter image description here

Related Question