5
\DeclareSymbolFont{numbers}{T1}{EBGaramond}{m}{n}
\SetSymbolFont{numbers}{bold}{T1}{EBGaramond}{bx}{n}
\DeclareMathSymbol{0}\mathalpha{numbers}{"30}...

Can we use these commands to use Eb garamond in math in pdf latex? if possible, what do i have to write instead of EBGaramond in the commands.

1

1 Answer 1

8

Yes, it's possible:

\documentclass{article}
\usepackage{ebgaramond}

\DeclareSymbolFont{numbers}{T1}{EBGaramond-LF}{m}{n}
\SetSymbolFont{numbers}{bold}{T1}{EBGaramond-LF}{bx}{n}
\DeclareMathSymbol{0}\mathalpha{numbers}{"30}
\DeclareMathSymbol{1}\mathalpha{numbers}{"31}
\DeclareMathSymbol{2}\mathalpha{numbers}{"32}
\DeclareMathSymbol{3}\mathalpha{numbers}{"33}
\DeclareMathSymbol{4}\mathalpha{numbers}{"34}
\DeclareMathSymbol{5}\mathalpha{numbers}{"35}
\DeclareMathSymbol{6}\mathalpha{numbers}{"36}
\DeclareMathSymbol{7}\mathalpha{numbers}{"37}
\DeclareMathSymbol{8}\mathalpha{numbers}{"38}
\DeclareMathSymbol{9}\mathalpha{numbers}{"39}

\begin{document}
123 $123$
\end{document}

enter image description here

1
  • I waited for a few days but no reply came. Then I tried to find another ways. This approval is maybe late, sorry, but i notice this now.
    – mert
    Apr 22, 2014 at 6:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .