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.

7

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

| improve this answer | |
  • 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 '14 at 6:16

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.