LaTeX forum ⇒ Text Formattingproblem 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: 51
Joined: Thu Oct 20, 2016 3:41 pm

problem regarding page numbering and logo

Postby kent » Sat Aug 11, 2018 1:59 pm

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
(462 Bytes) Downloaded 16 times
lforum.tex
(380 Bytes) Downloaded 16 times
logo.JPG
logo.JPG (8.47 KiB) Viewed 214 times
logo.tex
(176 Bytes) Downloaded 17 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Aug 12, 2018 3:28 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
Site admin

kent
Posts: 51
Joined: Thu Oct 20, 2016 3:41 pm

Postby kent » Sun Aug 12, 2018 8:26 pm

How can I assure that both LOGO and pagenumbering will work together?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Aug 12, 2018 8:35 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
Site admin

kent
Posts: 51
Joined: Thu Oct 20, 2016 3:41 pm

Postby kent » Tue Aug 14, 2018 9:04 am

It worked with one exception. It does not give the page numbering for the very first page.
Any reason for that.
Kent

kent
Posts: 51
Joined: Thu Oct 20, 2016 3:41 pm

Postby kent » Tue Aug 14, 2018 11:40 am

I managed to fix the problem myself.
Kent

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 14, 2018 11:45 am

What was the cause? Because it worked for me.

Stefan
Site admin

kent
Posts: 51
Joined: Thu Oct 20, 2016 3:41 pm

Postby kent » Tue Aug 14, 2018 12:09 pm

My local set-up was not actually completely identical to what you suggested.
Kent

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 14, 2018 12:18 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
Site admin

kent
Posts: 51
Joined: Thu Oct 20, 2016 3:41 pm

Postby kent » Tue Aug 14, 2018 1:02 pm

Thanks again for all support.
I will check out this package.
Kent


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 6 guests