See the attached Latex files.
Using the input files logo and pagenumbering separately works fine. (It generates the LOGO and it gives correct page numbering independently.)
Including the two input files simultainously does not work properly.
Anybody who can see what's wrong?
Kent
LaTeX forum ⇒ Text Formatting ⇒ problem regarding page numbering and logo Topic is solved
problem regarding page numbering and logo
- Attachments
-
- pagenumbering.tex
- (462 Bytes) Downloaded 40 times
-
- lforum.tex
- (380 Bytes) Downloaded 37 times
-
- logo.JPG (8.47 KiB) Viewed 783 times
-
- logo.tex
- (176 Bytes) Downloaded 51 times
- Stefan Kottwitz
- Site Admin
- Posts: 9281
- Joined: Mon Mar 10, 2008 9:44 pm
Hi Kent!
The package fancyhdr is loaded two times, in each included file. In the second file,
Stefan
The package fancyhdr is loaded two times, in each included file. In the second file,
\fancyhf
clears the header and footer so previously made settings (page numbering) are lost there.Stefan
Site admin
How can I assure that both LOGO and pagenumbering will work together?
- Stefan Kottwitz
- Site Admin
- Posts: 9281
- Joined: Mon Mar 10, 2008 9:44 pm
Just a quick note while traveling,
Stefan
- Remove the
\fancyhf
line - In the main file, change this line:
\setlength{\textheight}{8.5in}
. That's too much, with the logo. The page number is pushed down so it is not visible any more. Use a lower value.
Stefan
Site admin
It worked with one exception. It does not give the page numbering for the very first page.
Any reason for that.
Kent
Any reason for that.
Kent
I managed to fix the problem myself.
Kent
Kent
- Stefan Kottwitz
- Site Admin
- Posts: 9281
- Joined: Mon Mar 10, 2008 9:44 pm
What was the cause? Because it worked for me.
Stefan
Stefan
Site admin
My local set-up was not actually completely identical to what you suggested.
Kent
Kent
- Stefan Kottwitz
- Site Admin
- Posts: 9281
- Joined: Mon Mar 10, 2008 9:44 pm
Ok, I marked as solved (the green checkmark).
By the way, I would use the
geometry package for setting those page layout lengths. That's because the geometry package auto calculates missing lengths (symmetry etc.) so it's less likely that they layout has an issue, such as when margins and text height or width are larger or smaller than the actual paper size.
Stefan
By the way, I would use the

Stefan
Site admin
Thanks again for all support.
I will check out this package.
Kent
I will check out this package.
Kent
Who is online
Users browsing this forum: No registered users and 6 guests