Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the font EB Garamond but I don't succeed to get the chapter and section titles to be set right. The package ebgaramond does not have all the features I want, and when looking for the font with fontspec, the true type version seems to be taken. That's why I have to define the path to the fonts explicitly.

At the moment, I use the following MWE:

% arara: lualatex: { shell: yes, options: -synctex=-1 }

\documentclass{scrreprt}
\usepackage{luatextra}
\usepackage{fontspec}
\defaultfontfeatures{%
    ,RawFeature={+dlig, +calt, +cv11, +ss05}
    ,Ligatures={TeX}
}
\setmainfont[%
    ,Path = C:/WINDOWS/Fonts/
    ,Extension = .otf
    ,UprightFont = *12-Regular
    ,ItalicFont  = *12-Italic
    ,BoldFont = *08-Regular
]{EB Garamond}

\begin{document}

\chapter{Test}
Test
\section{Test}
%\textin{T}est % This does not work eather.

\end{document}

I don't know, what is happening and would like to use the font in all places.

share|improve this question
2  
scrreport is responsible for determining what font is used in section and chapter headings, not fontsepc. It is explained in the manual; something like \setkomafont{chapter}{<commands>}, if I remember... –  jon Feb 21 at 16:36
    
Thanks, will look at that. Actually, the headings work correctly. And the page numbers also. Weird. Only the titles are misbehaving. –  LaRiFaRi Feb 21 at 16:38
    
What is a 'title' in the above example? –  jon Feb 21 at 16:40
    
\chapter{Test}. Egregs answer seems to work. Thanks for your time. –  LaRiFaRi Feb 21 at 16:42

1 Answer 1

up vote 9 down vote accepted

The standard for the Koma-Script classes is to print sectional titles in the sans serif font. Adding

\addtokomafont{disposition}{\rmfamily}

to your preamble should suffice.

Please, don't use Bold Garamond: it's like actors wearing a wristwatch in a movie about ancient Romans.

share|improve this answer
    
Thank you, it works. But the titles are set bold now. Should I turn that off? And how? Could you please make the initial working? Don't want to open a new question for that cosmetic. Thank you. –  LaRiFaRi Feb 21 at 16:43
    
@LaRiFaRi Just don't load a bold font. Or add also \mdseries after \rmfamily –  egreg Feb 21 at 16:44
    
Good point. Done. Thanks. –  LaRiFaRi Feb 21 at 16:46
    
@egreg: Nice comparison! –  Speravir Feb 21 at 21:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.