Page Layouthow to get a header to appear after a pagebreak

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
azr124
Posts: 8
Joined: Tue Oct 21, 2008 2:52 pm

how to get a header to appear after a pagebreak

Post by azr124 »

Hello everyone...,

I have the following problem: I'm creating a bibliography that is separated in several fields. So I have the field name as a title, then come a list of articles, a new field, list of articles, and so on.

Field Name 1
1. article # 1
2. article # 2
...
n. article # n

Field Name 2
1. article # 1
2. article # 2
...
n. article # n

Now, my problem is that when the list of articles for a given field is too long, I want the Field Name to appear on the top of the new page as well, like this:

Field Name 1
1. article # 1
2. article # 2
...
10. article # 10
<page break>
Field Name 1
11. article # 11
12. article # 12
...
Field Name 2

Any ideas on how to do this?

Thank you very much!

Alejandro

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: how to get a header to appear after a pagebreak

Post by kaiserkarl13 »

You might check out the afterpage package, which implements \afterpage{Stuff to do at beginning of next page}.

I think it resets after the current page, so you'll need some mechanism to redefine its argument for each page. I might do it as part of a redefinition of \bibitem (that way it sets it to print the header after the page is printed every time it prints a new bibliography item).
Post Reply