so at the moment i am writing a document in the class article. But i want the header you have when you use documentclass "book". I dont use class the "book" though because my document is not so long that i could use the chapter-command that generates those giant headlines. Is there a way to get the headers from the documentclass "book" or can i use the documentclass book somehow and use the normal \section command for the table of content? Because at the moment it puts an "0" in front of all my sections.

Thank you

1 Answer 1


You can use the headings page style (duckuments is only required for the dummy content):





enter image description here

  • what do you mean with (duckuments is only required for the dummy content). Because it says file duckuments.sty not found
    – chri11
    Feb 23, 2019 at 9:41
  • @chri11 then your LaTeX installation is too old for duckuments (it was published a year ago). You don't need it, just add \pagestyle{headings} to your document. Everything duckuments does is add a few commands to create some dummy content to a document (in this case \duckument is used, which adds section headings and text).
    – Skillmon
    Feb 23, 2019 at 9:46
  • Thank you, that works fine! In my table of content however it still says: 0.1 .... 0.2 ...
    – chri11
    Feb 23, 2019 at 9:49
  • @chri11 if you use article?
    – Skillmon
    Feb 23, 2019 at 10:05
  • yes, it puts a zero infront of the numbers but not in the section itself
    – chri11
    Feb 23, 2019 at 10:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .