Text Formattingproblem regarding page numbering and logo

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

problem regarding page numbering and logo

Post by kent »

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 490 times
lforum.tex
(380 Bytes) Downloaded 509 times
logo.JPG
logo.JPG (8.47 KiB) Viewed 5684 times
logo.tex
(176 Bytes) Downloaded 516 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

problem regarding page numbering and logo

Post by Stefan Kottwitz »

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
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

problem regarding page numbering and logo

Post by kent »

How can I assure that both LOGO and pagenumbering will work together?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

problem regarding page numbering and logo

Post by Stefan Kottwitz »

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
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

problem regarding page numbering and logo

Post by kent »

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

problem regarding page numbering and logo

Post by kent »

I managed to fix the problem myself.
Kent
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

problem regarding page numbering and logo

Post by Stefan Kottwitz »

What was the cause? Because it worked for me.

Stefan
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

problem regarding page numbering and logo

Post by kent »

My local set-up was not actually completely identical to what you suggested.
Kent
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

problem regarding page numbering and logo

Post by Stefan Kottwitz »

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
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

problem regarding page numbering and logo

Post by kent »

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