## LaTeX forum ⇒ Text Formatting ⇒ problem regarding page numbering and logo Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

### problem regarding page numbering and logo

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
Attachments
pagenumbering.tex
lforum.tex
logo.JPG (8.47 KiB) Viewed 1129 times
logo.tex

Stefan Kottwitz
Posts: 9419
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, `\fancyhf` clears the header and footer so previously made settings (page numbering) are lost there.

Stefan

kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm
How can I assure that both LOGO and pagenumbering will work together?

Stefan Kottwitz
Posts: 9419
Joined: Mon Mar 10, 2008 9:44 pm
Just a quick note while traveling,

• 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

kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm
It worked with one exception. It does not give the page numbering for the very first page.
Any reason for that.
Kent

kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm
I managed to fix the problem myself.
Kent

Stefan Kottwitz
Posts: 9419
Joined: Mon Mar 10, 2008 9:44 pm
What was the cause? Because it worked for me.

Stefan

kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm
My local set-up was not actually completely identical to what you suggested.
Kent

Stefan Kottwitz
Posts: 9419
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

kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm
Thanks again for all support.
I will check out this package.
Kent