Page LayoutChanging Header/Footers Using Afterpage

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Changing Header/Footers Using Afterpage

Post by gmedina »

I am quite busy right now, but as soon as I can I'll take a look at your code. For the moment, regarding this:
niclov wrote:...but would the distribution make any difference? TeTex vs TexLive and so forth?
It depends; as long as you keep a supported distribution (MiKTeX (for Windows), TeX Live (mainly for Linux) and some others) and keep it updated, there should be no difference. However, teTeX has been unsupported for some years now (see this thread: teTeX now obsolete), so if you are still using it, you should consider switching to TeX Live.
1,1,2,3,5,8,13,21,34,55,89,144,233,...

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Changing Header/Footers Using Afterpage

Post by gmedina »

Hi,

I apologise for the obvious double post. I did a test using your previous code (now that it is complete) and I could reproduce the problem that you mentioned. The solution is quite simple: at the end of your document leave a blank line just between the last line of text and the \end{document} command; i.e. instead of

Code: Select all

...
Chemical analysis performed according to ASTM EXXXX-YY, E1XXXX-YY\newline (modified) and EXXXX-YY(YYYY).
\end{document}
use

Code: Select all

...
Chemical analysis performed according to ASTM EXXXX-YY, E1XXXX-YY\newline (modified) and EXXXX-YY(YYYY).

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing Header/Footers Using Afterpage

Post by localghost »

gmedina wrote:[...] I apologise for the obvious double post. [...]
You could edit the former one (just a suggestion).
niclov
Posts: 7
Joined: Mon Feb 01, 2010 11:26 pm

Re: Changing Header/Footers Using Afterpage

Post by niclov »

Thanks for the help, I'd been struggling with that for a little while now. I'm not sure whether to feel glad it's such a simple fix, or foolish that in all my playing with pagebreak locations, paragraph sizing etc I never tried inserting newlines after the text. Both I guess.

There's still a case of there being only one line of text on the second page where inserting the newline character doesn't correct the problem, but I think I can get around that with an ifthenelse statement now that I know how to correct it. Again, much appreciated.
Post Reply