3

The beamer package uses sans-serif fonts for text and structure. But, if the newtxtext package is used, all contents use serif font.

Here is an MWE:

\documentclass{beamer}
\usepackage{newtxtext}
\begin{document}
\begin{frame}
  \frametitle{Test}
  \begin{itemize}
  \item Item 1
  \end{itemize}
\end{frame}
\end{document}

beamer with newtxtext

As newtxtext is a replacement for txfonts, I compare with the same document but using txfonts:

\documentclass{beamer}
\usepackage{txfonts}
\usepackage{lipsum}
\begin{document}
\begin{frame}
  \frametitle{Test}
  \begin{itemize}
  \item \lipsum[4]
  \end{itemize}
\end{frame}
\end{document}

enter image description here

  • @DavidCarlisle The newtxtext package defines TeXGyre Termes as default serif font and TeXGyreHeros as sans-serif default font. – Paul Gaborit Jan 17 '17 at 12:27
  • Would \renewcommand{\familydefault}{\sfdefault} be an acceptable workaround? – user36296 Jan 17 '17 at 16:14
  • 1
    @samcarter Perfect! I had not noticed the line \renewcommand*{\familydefault}{\rmdefault} in newtxtex.sty! Could you turn your comment into an answer? – Paul Gaborit Jan 17 '17 at 16:21
  • Done. _________ – user36296 Jan 17 '17 at 16:25
4

To have the sans serif font as default, simply add \renewcommand{\familydefault}{\sfdefault}

\documentclass{beamer}
\usepackage{newtxtext}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}
\begin{frame}
  \frametitle{Test}
  \begin{itemize}
  \item Item 1
  \end{itemize}
\end{frame}
\end{document}

enter image description here

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.