Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In the article class, is there a way to obtain, in each page, the header displaying the name of the section with the number of the page? I need the same visualization like the book class.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Try the following code:

\documentclass{article}
\pagestyle{headings}
\let\MakeUppercase=\relax
\begin{document}
\section{Foo}
Foo
\newpage
\section{Bar}
Bar
\end{document}
share|improve this answer
    
in this way the header is written with capital letters. If I want it in lowercase text? –  Galoisfan Dec 2 '12 at 14:44
1  
@Galoisfan: See my update above. –  Vahid Damanafshan Dec 2 '12 at 14:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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