2

To be more specific i need Arev font in math mode using only the family fav or favm, but the way I did not work.

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}

% family
\newcommand{\fonte}[2]{
  {\fontfamily{#1}\selectfont #2}
}

\parindent=0pt
\pagestyle{empty}
\begin{document}

\subsection*{Arev}

Math mode

\fonte{favm}{$f(t) = \frac{T}{2\pi} \int{\frac{1}{\sin\frac{\omega}{t}}}dt$}

\end{document}
  • Do you want that all math is in the Arev font? – egreg Jul 26 '12 at 21:47
  • Only in selected mathmode. – Regis da Silva Jul 26 '12 at 21:57
4

This should be sufficient for the commonest formulas

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}

\DeclareMathVersion{arev}

% These are the predefined symbol alphabets.
\SetSymbolFont{operators}    {arev}{OT1}{zavm}{m}{n}
\SetSymbolFont{letters}      {arev}{OML}{zavm}{m}{it}
\SetSymbolFont{symbols}      {arev}{OMS}{zavm}{m}{n}
\SetSymbolFont{largesymbols} {arev}{OMX}{mdbch}{m}{n}

% These are the predefined math alphabets.
\SetMathAlphabet{\mathnormal}{arev}{OML}{zavm}{m}{it}
\SetMathAlphabet{\mathit}    {arev}{OML}{zavm}{m}{it}
\SetMathAlphabet{\mathrm}    {arev}{OT1}{zavm}{m}{n}
\SetMathAlphabet{\mathsf}    {arev}{OML}{zavm}{m}{it}
\SetMathAlphabet{\mathbf}    {arev}{OT1}{zavm}{b}{n}
\SetMathAlphabet{\mathtt}    {arev}{T1} {fvm} {m}{n}

\pagestyle{empty}
\begin{document}

$f(t) = \frac{T}{2\pi} \int{\frac{1}{\sin\frac{\omega}{t}}}dt$

\mathversion{arev}
$f(t) = \frac{T}{2\pi} \int{\frac{1}{\sin\frac{\omega}{t}}}dt$

\end{document}

To go back to the normal setting issue \mathversion{normal} or put the Arev math in a group. Note that \mathversion{arev} must go outside the formula.

enter image description here

0

You can use:

  \usepackage{arev}
  \usepackage{mathastext}

See your MWE with this options:

  \documentclass[a4paper]{article}
  \usepackage[T1]{fontenc}

  \usepackage{arev}
  \usepackage{mathastext}

  \parindent=0pt
  \pagestyle{empty}

  \begin{document}

  \subsection*{Arev}

  Math mode

  $f(t) = \frac{T}{2\pi} \int{\frac{1}{\sin\frac{\omega}{t}}}dt$

  \end{document}

You can also explore mathastext package for more options.

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.