0

This question already has an answer here:

I've noticed something very strange.

I switched to using

\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}
%this below also works. Do not know what is the difference.
%\usepackage[garamond]{mathdesign} 

Which looks like a nice font. The problem is that, when using Koma-Script's classes, such as scrbook or scrartcl, the title, and all chapter and section heading, use completely different font (which I do not know what it is ) than the rest of the document, which makes final result look ugly due to having 2 different fonts next to each others.

This only happens when using Koma. When switching to standard article and standard book classes, then the title and section text font now matches the rest of the text.

Here is a MWE using standard article class

%\documentclass[11pt]{scrartcl}
\documentclass[11pt]{article}
%\documentclass[11pt]{scrbook}
%\documentclass[11pt]{book}

\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}
%\usepackage[garamond]{mathdesign}  %this also works, without urw
\begin{document}

\title{HW 1, Hard class.\\       
       Fall 2018\\
       University Of Somewhere
}
\author{John Doe}
\date{\today}
\maketitle

%\chapter{This is chapter one}
%test

\section{This is section one}
This is some equation $x^2=y$.    
\end{document}

Mathematica graphics

Now, notice what happens when using koma (change the code above to use \documentclass[11pt]{scrartcl}). This is the output

Mathematica graphics

Which looks bad. The titles and chapter and section all look like they are using different font and not using garamond.

Question is: How to make koma use the same font everywhere, including titles like the standard classes do?

TL 2018. Compiled using lualatex foo.tex. This is list of files when using \documentclass[11pt]{scrartcl} for the above example

*File List*
scrartcl.cls    2018/03/30 v3.25 KOMA-Script document class (article)
scrkbase.sty    2018/03/30 v3.25 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2018/03/30 v3.25 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2018/03/30 v3.25 KOMA-Script package (loading files)
tocbasic.sty    2018/03/30 v3.25 KOMA-Script package (handling toc-files)
scrsize11pt.clo    2018/03/30 v3.25 KOMA-Script font size class option (11pt)
typearea.sty    2018/03/30 v3.25 KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2017/04/05 v2.0i Standard LaTeX file
   t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
mathdesign.sty    2013/08/29 v2.31 Math Design Project
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
   mdugm.cfg
   mdugm.sty    2013/08/29 v2.31 urw garamondno8 + mdugm (Math Design Project)
  mdfont.def    2013/08/29 v2.31 (Math Design Project)
mdsffont.def    2013/08/29 v2.31 (Math Design Project)
mdttfont.def    2013/08/29 v2.31 (Math Design Project)
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
 t1mdugm.fd    2013/08/29 Fontinst v1.933 font definitions for T1/mdugm.
 fontenc.sty
   t1enc.def    2017/04/05 v2.0i Standard LaTeX file
  mdacmr.fd
  mdbcmr.fd
  t1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern
ot1mdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OT1/mdugm.
omlmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OML/mdugm.
omsmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OMS/mdugm.
omxmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OMX/mdugm.
mdamdugm.fd    2013/08/29 Fontinst v1.933 font definitions for MDA/mdugm.
mdbmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for MDB/mdugm.

marked as duplicate by Schweinebacke, Johannes_B, Bobyandbob, Stefan Pinnow, Andrew Swann Sep 21 '18 at 6:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.