3
  • I use the beautiful metropolis beamer theme with the dark background option.
  • AFAIK, the theme uses Fira Sans as the main font and I like it so far.
  • The problem is that when I have a \textbf (bold) font then the bold letters look too similar to the normalfont letters.
  • Question: Can I still use the same font but make the difference between normal and bold more visible for small font sizes? Ideally, I can use the solution on Overleaf.

% Compile with LuaLaTeX

\documentclass{beamer}
\usetheme[background = dark]{metropolis}

\begin{document}

\begin{frame}{Frame Title}
normaltext\textbf{textbf} 
\par
{\tiny normalfont\textbf{textbf}}
\end{frame}

\end{document}

enter image description here

5
  • Try something like \setsansfont[BoldFont={Fira Sans Black}]{Fira Sans Book}. You can mix and match the usual styles (Thin, Light, Regular, Medium, SemiBold, Bold, ExtraBold, Black)
    – Ingmar
    May 30, 2022 at 20:31
  • @Ingmar Thanks for the comment! I added the tag overleaf because it seems that your suggestion does not work on Overleaf (my bad for not mentioning that from the beginning). May 30, 2022 at 20:37
  • 1
    @Ingmar See the answer (provided by samcarter), thx for your interest! May 30, 2022 at 20:45
  • 1
    If you ever want to experiment with variable fonts, this article discusses how they can be used to make fonts look equally bold whether against a light or a dark background.
    – Thérèse
    May 30, 2022 at 23:45
  • @Thérèse Thanks, much appreciated! May 30, 2022 at 23:46

1 Answer 1

4
  • This is a community answer based on user samcarter's answer on a different platform (it started as a chat).
  • It is important to know that when you use Overleaf, that you can rely on a bunch of installed fonts (also teached to me by user samcater, see here.

enter image description here


\documentclass{beamer}
\usetheme[background = dark]{metropolis}

% The magic happens here
\setsansfont[ItalicFont={Fira Sans Light Italic},%
                 BoldFont={Fira Sans SemiBold},%
                 BoldItalicFont={Fira Sans Italic}]%
                {Fira Sans Light}%
                                    
\begin{document}

\begin{frame}{Frame Title}
normaltext\textbf{textbf} 
\par
{\tiny normalfont\textbf{textbf}}
\end{frame}

\end{document}

Improved Version

enter image description here

Original Version

enter image description here

enter image description here

You must log in to answer this question.

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