im trying to set my work with the headers like the picture. In one page left header would like to see the section and in the just next page a right header with the subsection. How can i do it? Im workin with a document class "article"enter image description here

  • 1
    Hi and welcome to TeX.SE! You could look at the fancyhdr package. But the picture you show have a chapter and not a section, so it is a bit unclear what you want. (If chapters, then you should use some other class like report or book or memoir instead of article.)
    – mickep
    Mar 10, 2022 at 19:48

1 Answer 1


Tailor this code to your's needs:

\usepackage[paperwidth=17cm,paperheight=24cm, inner=2cm,outer=1.5cm,top=2cm,bottom=1.5cm,headsep=3pt]{geometry}




\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}


    \chapter{Si comincia}
    \section{Sezione 1}
    \section{Sezione 2}
    \chapter{Si continua...}
    \section{Sezione 3}

    \section{Sezione 4}
    \section{Sezione 5}

    \chapter{Appendix Something}
    \chapter{Appendix di controllo}


enter image description here

You must log in to answer this question.

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