4

I've noticed that monospaced fonts have uppercase Greek letters but no lowercase Greek letters. Is there a mathematical format to resolve this issue with monospaced fonts?

\documentclass{article}

\begin{document}

$\mathtt{\Gamma \Delta \Theta \Lambda \Xi \alpha \beta \gamma \delta}$

\end{document}

enter image description here

2
  • 1
    It is not directly related to the fonts in the standard settings for classic tex (not unicode) \alpha is set up as a symbol like + so would not change font under \mathtt even if the font had an alpha. But you have not shown what fonts you are using Commented 15 hours ago
  • Have you tried with \usepackage{concmath}? Commented 15 hours ago

1 Answer 1

3

You don't get bold Greek lowercase letters with \mathbf{\alpha} either.

I can propose a \mathgreektt command, but you can't mix it with \mathtt.

\documentclass{article}

\DeclareFontFamily{U}{greektt}{}
\DeclareFontShape{U}{greektt}{m}{n}{
  <-6>    gttn0500
  <6-7>   gttn0600
  <7-8>   gttn0700
  <8-9>   gttn0800
  <9-10>  gttn0900
  <10-12> gttn1000
  <12-17> gttn1200
  <17->   gttn1728
}{}
\DeclareMathAlphabet{\greektt}{U}{greektt}{m}{n}
\NewDocumentCommand{\mathgreektt}{m}{\greektt{\changecodes#1}}
\ExplSyntaxOn
\NewDocumentCommand{\changecodes}{}
 {
  \tl_map_function:nN
   {
    {{\Alpha}{A}}{{\Beta}{B}}{{\Gamma}{G}}{{\Delta}{D}}{{\Epsilon}{E}}
    {{\Zeta}{Z}}{{\Eta}{H}}{{\Theta}{J}}{{\Iota}{I}}{{\Kappa}{K}}
    {{\Lambda}{L}}{{\Mu}{M}}{{\Nu}{N}}{{\Xi}{X}}{{\Omicron}{O}}
    {{\Pi}{P}}{{\Rho}{R}}{{\Sigma}{S}}{{\Tau}{T}}{{\Upsilon}{U}}
    {{\Phi}{F}}{{\Chi}{Q}}{{\Psi}{Y}}{{\Omega}{W}}
    {{\alpha}{a}}{{\beta}{b}}{{\gamma}{g}}{{\delta}{d}}{{\epsilon}{e}}
    {{\zeta}{z}}{{\eta}{h}}{{\theta}{j}}{{\iota}{i}}{{\kappa}{k}}
    {{\lambda}{l}}{{\mu}{m}}{{\nu}{n}}{{\xi}{x}}{{\omicron}{o}}
    {{\pi}{p}}{{\rho}{r}}{{\sigma}{s}}{{\tau}{t}}{{\upsilon}{u}}
    {{\phi}{f}}{{\chi}{q}}{{\psi}{y}}{{\omega}{w}}{{\varsigma}{c}}
   }
   \__siri_change:n
 }
\cs_new_protected:Nn \__siri_change:n { \__siri_change:nn #1 }
\cs_new_protected:Nn \__siri_change:nn { \cs_set:Npn #1 {#2} }
\ExplSyntaxOff

\begin{document}

$\mathgreektt{\Alpha\Gamma\Delta\alpha\beta\psi\omega\sigma\varsigma}$

\end{document}

output

2
  • Could you explain a little about where these settings come from, as declaring fonts is always a bit technical? Commented 12 hours ago
  • 1
    @projetmbc I took the skeleton for a fully scalable font from fix-cm.sty and used gttn that's the monospaced font in CBGreek. Then applied the translitteration used with LGR encoded fonts. Commented 11 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.