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.
Asked
Active
Viewed 1,397 times
3
-
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 '14 at 11:13
1 Answers
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.

egreg
- 1,121,712
-
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 '22 at 10:49
-
-
The font automatically turns the σ into a ς when it is not followed by a letter. – FR09 Feb 11 '22 at 11:06
-
@FR09 Not in my experiments with the provided code. Are you using
\upsigma? – egreg Feb 11 '22 at 11:09 -
Using your setup, $\upsigma$ and $\upsigma \alpha$ give different results for sigma. – FR09 Feb 11 '22 at 11:15
-
@FR09 Sorry, I cannot reproduce: picture (click) Please, open a new question with the details needed to reproduce the issue. – egreg Feb 11 '22 at 11:19
-
Sorry, I was using
LuaLaTeXpreviously and forgot to switch back topdfLaTeX. Your setup works perfectly fine inpdfLaTeX. – FR09 Feb 11 '22 at 11:42 -
@FR09 Not really a good idea of the LuaTeX developers to enable ligatures in math fonts… – egreg Feb 11 '22 at 13:26