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

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

\documentclass[]{article}

\usepackage{duckuments}


• @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 at 9:46
• @chri11 if you use article? – Skillmon Feb 23 at 10:05