# OpenSans package doesn't affect title (scrartcl)

I intend to set Open Sans as the entire document's font.

However, if I use the opensans package with the default option it doesn't affect the title and headings of the scrartcl class.

MWE:

\documentclass[10pt,a4paper]{scrartcl}
\usepackage[english]{babel}

\usepackage[default]{opensans}

\title{Title}
\subtitle{Subtitle}
\author{Author}

\begin{document}
\maketitle
\end{document}


Output:

Title and subtitle are still in Computer Modern. How can I change them to also appear in OpenSans?

Add the option defaultsans when loading the package:
\usepackage[defaultsans,default]{opensans}

• Or pass the option egregdoesnotlikesansseriftitles to scrartcl. – egreg Mar 27 at 10:52
• In case someone reading this wants more explanation for what’s going on: LaTeX sets a default font family and a default sans-serif font family. \usepackage[default]{opensans} sets \familydefault, and the defaultsans option sets \sfdefault as well. The Koma classes, by default, use the sans-serif font for titles. – Davislor Mar 27 at 13:51