I want to change the text style of header but unfortunately, into the packages file I have used, I didn't find any package related to the header.

I have used the cmr family font style for the normal text and I would like to know, how can I also make the header style tocmr and in italic form? (See the attached figure to see the text style difference between header and the normal text) MWE:



\section{Model Specifications}
Specifications and the reactances of the synchronous generator are tabulated as:

  • You mean you want the header with a sans serif font, not cmr, which has serifs?
    – Bernard
    Oct 30 '16 at 0:53
  • I want the header with same font as that of normal text, which is acmr. @Bernard
    – Yousaf
    Oct 30 '16 at 1:07
  • This picture is not the result of the MWE. Headers with text font in italic shape are default for scrbook. Maybe you load/use a package like fancyhdr?
    – esdd
    Oct 30 '16 at 6:13
  • Yes, the picture is from actual document that is being written in TexStudio. I had fancyhdr but I'm not using it any more. And I got the proper result if I test this with Texworks. But I want it in TexStudio. @esdd
    – Yousaf
    Oct 31 '16 at 13:12
  • Please run your MWE in a new file with TeXStudio and show as the result of the code in your question. TeXworks and TeXstudio are only editors. There should be no difference.
    – esdd
    Oct 31 '16 at 13:30

Something like this should do it:

  • No, it hasn't worked.
    – Yousaf
    Oct 30 '16 at 1:17
  • With the code you posted and nothing else?
    – Bernard
    Oct 30 '16 at 1:18
  • I have tried your suggested code in Texworks and it has worked there. But I am writing in Texstudio and want to make it work here.
    – Yousaf
    Oct 30 '16 at 1:28
  • TeXstudio has nothing to see with this: it's just an editor. It's LaTeX which does the job, and if you have the same versions of the packages, it has to work the same way.
    – Bernard
    Oct 30 '16 at 1:38
  • 1
    Which version of koma-script do you have? Which distribution?
    – Bernard
    Oct 30 '16 at 1:57

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.