[Tugindia] Heading

CV Radhakrishnan cvr at river-valley.com
Mon Jul 11 18:48:46 CEST 2005


On Mon, July 11, 2005 6:00 pm, Abhilash G. said:

[...]

> Using the \markright command along with the \pagestyle{myheadings}, I
> am able to create the heading in all pages except the first page. I need
> the heading to appear on the first page also.
>
> Leslie Lamport's book says that: "The right head information is always
> null for the first page of a document. If this is a problem, generate a
> blank first page with the titlepage environment."
>
> Accordingly, I created a blank title page also. Still, the first page of
> the article that contains the title and some text does not contain the
> required heading. The rest of the pages do carry this heading.

That is because the \maketitle command makes the pagestyle plain for the
title page.  You might add the following command:

 \thispagestyle{<whatever>}

just below the \maketitle command.

> Will you please help me to sort out this problem?
>
> 1) How can I get the heading appear on the first page of the article also?

See above.

> 2) Is it possible to restrict the heading only on the first page and not
>    on the subsequent pages?

\thispagestyle{<style>} will restrict the pagestyle to that page alone.

Best

-- 
Radhakrishnan




More information about the tugindia mailing list