3

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.

1
  • Are you sure you need to do this? As a first approximation "things that are difficult to do in LaTeX are difficult for a (typographic) reason".
    – J.J. Green
    Aug 24, 2014 at 11:13

1 Answer 1

4

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

8
  • The font ligature for sigma is quite annoying for math usages. Do you know how it can be suppressed when declaring sigma as a math symbol?
    – FR09
    Feb 11 at 10:49
  • @FR09 What ligature are you referring to?
    – egreg
    Feb 11 at 10:59
  • The font automatically turns the σ into a ς when it is not followed by a letter.
    – FR09
    Feb 11 at 11:06
  • @FR09 Not in my experiments with the provided code. Are you using \upsigma?
    – egreg
    Feb 11 at 11:09
  • Using your setup, $\upsigma$ and $\upsigma \alpha$ give different results for sigma.
    – FR09
    Feb 11 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.