Page LayoutHeader in all Pages except the first Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Karthik1
Posts: 1
Joined: Mon Jul 25, 2011 8:25 am

Header in all Pages except the first Page

Post by Karthik1 »

Can any one tell me the tag to produce the output like

Code: Select all

@page {
    @top-left {
        content: string(guideword, first);
   }
    @top-center {
        content: counter(page);
    }
    @top-right {
        content: string(guideword, last);
    }
}
@page :first {
    @top-left { content: ''; }
    @top-center { content: ''; }
    @top-right { content: ''; }
    @bottom-left { content: ''; }
    @bottom-center { content: counter(page); }
    @bottom-right { content: ''; }
}
Scenario:
If you run the above code, The first page shows only page number at the bottom and the all the remaining page are show header with guidewords.

Here we don't know where the first page content ends.

How this case possible in Latex?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header in all Pages except the first Page

Post by localghost »

What kind of code is this? Possibly Lout? What is the resulting output? I can partly imagine what this code does. But for a full translation to LaTeX it would be helpful to have a visual example. At least unless somebody comes along who can comprehend what this piece of code does.


Thorsten
Post Reply