2

I am using overleaf.com for creating a beamer document. I want to change default font to helvetica. I addede following lines from answer posted for Working with arial or helvetica fonts but it didnt work online editor.

\documentclass[x11names]{beamer} \usetheme{default} \usecolortheme{default}   
\usefonttheme{professionalfonts} % using non standard fonts for beamer 
\usefonttheme{serif} % default family is serif \usepackage{fontspec} 
\setmainfont{helvet}

Any idea?

4

For pdflatex you could just use the helvet package:

\documentclass{beamer}

\usepackage{helvet}

\begin{document}

\begin{frame}
    abc
\end{frame} 

\end{document}
2

In LuaLaTex or XeLaTeX, change the line

\setmainfont{helvet}

to

\defaultfontfeatures{Scale = MatchLowercase}
\setmainfont{TeX Gyre Heros}[Scale = 1.0]

You can also use Helvetica if you have a TrueType or OpenType version of that font installed, but TeX Gyre Heros is a free clone included with every TeX installation.

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.