7

in beamer I can do this

\documentclass{beamer}
\usepackage{quattrocento}

\begin{document}
\begin{frame}
Quattrocento ${30\cdot40}$
\end{frame}
\end{document}

and both the text and the math font will be printed in the Quattrocento font.

How do I achieve the same in the article class? If I do:

\documentclass{article}
\usepackage[sfdefault]{quattrocento}

\begin{document}

Quattrocento ${30\cdot40}$

\end{document}

only the text font is changed and not the math

Pics:

beamer

http://imgur.com/svyPgVM

article

http://imgur.com/t1zeC7w

4
  • 1
    There is no math font accompanying Quattrocento.
    – egreg
    Nov 12, 2013 at 20:24
  • @egreg so why in beamer the font does change? The changed font is not Quattrocento?
    – Gargoyle
    Nov 12, 2013 at 20:38
  • The beamer class tries to be smart and uses the italic font in the main document family for the letters in math mode.
    – egreg
    Nov 12, 2013 at 20:54
  • 2
    @egreg ok, so the question is: how do I achieve the same smart behavior in the article class?
    – Gargoyle
    Nov 12, 2013 at 20:59

1 Answer 1

7

It's as easy as loading a package:

\documentclass{article}
\usepackage[sfdefault]{quattrocento}
\usepackage[italic]{mathastext}

\begin{document}

Quattrocento $30\cdot40+ab-c$

\end{document}

enter image description here

You must log in to answer this question.

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