This is my minimal working example:








[I realize this is not a real MWE but I got some errors after deleting most of the commands, so I just kept them here now.]

Which produces the chapter title:

enter image description here.

Upon using this code (from a question on Stack Exchange, can't find the thread anymore)


the Chapter title becomes:

enter image description here.

I have two questions:

1) How can I change the comment such that the second image has the same font as the first?

2) Is it possible to make the Chapter Number and the bar bigger? I naively tried commands like `\bigg' but it did not work.

  1. Remove \setkomafont{disposition}{\normalcolor\bfseries} from your preamble to use a sansserif font for the chapters.
  2. You could add a fontsize command to the redefinition of \chapterformat.


\usepackage{tikz}% loads also graphicx,xcolor, etc.




Update (because of a comment below this answer)

To change the size of the chapter title too, use \addtokomafont{chapter}{<fontsize command>}.

The height of the gray rule can be changed in its third (=second mandantory) argument. If you want to change the horizontal position of the rule, adjust the first (optional) argument.





| improve this answer | |
  • But tikz might slow down compilation much more than graphicx and xcolor. – Keks Dose May 17 '19 at 14:45
  • @KeksDose Yes: "etc." means the other packages ;-) and the OP already loads tikz in his/her example code. – esdd May 17 '19 at 14:48
  • @esdd I played a bit with your suggestion. Is it also possible to change the standard font size of the chapter title within the same \renewcommand? Because now I have a chapter number which is quite big so I would like the chapter title to be a bit bigger as well. – Funzies May 17 '19 at 14:50
  • Should both the number and the title use the same fontsize? – esdd May 17 '19 at 14:53
  • @esdd No, I would rather change them separately... Related: how can I make the gray bar higher? – Funzies May 17 '19 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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