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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.