0

I'm having trouble changing the font of (sub)section titles in my document, I'd like it to be the same as the font used for the main text but as of now, a sans serif font is used for titles and a serif font for the text. I have found some answers here regarding title fonts but they did not work on my document (I suppose because I am using the scrreprt class?). Any help would be much appreciated, especially a solution which a beginner like me can use because I don't have much experience and had difficulties implementing some solutions I read about. Thank you!

So far, my document looks like this:

\documentclass[a4paper,11pt]{scrreprt}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\graphicspath{{img/}}
\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{caption}
 \usepackage{textcomp}

\addtokomafont{section}{\small}
\addtokomafont{subsection}{\small}
\addtokomafont{subsubsection}{\small}

%\usepackage{fontspec}
%\setmainfont{Avenir Light}  %tried this to use sans serif font in text but it only worked in Luatex and that caused some other formatting issues
RBG
  • 21

0 Answers0