Page LayoutStrange First Page Generated

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
pofigster
Posts: 2
Joined: Wed Aug 26, 2009 1:32 pm

Strange First Page Generated

Post by pofigster »

I'm a self-taught LaTeX'er (in my undergrad I figured it would help me type up my statistics homework) who was introduced to the fancyhdr package by a friend. Since then I've used it all the time because for what I do it looks fantastic.

I just got a new laptop and I just installed the latest build of MikTex and TeXnicCenter. I also installed it on my wifes laptop because she's a high school math teacher and wanted to use it to type up worksheets. Two nights ago when she tried to build a worksheet she'd typed up there was a random first page. The only text it had on it (in addition to the header and footer defined by fancyhdr) was 0pt0.4pt. I took the exact same .tex file and making no changes built it just fine without the random first page. Now today on my laptop I'm getting the same strange first page with the latest worksheet I typed up for her. I tried building a document I'd typed up and built earlier without a problem and today it's giving the same strange first page.

Now, it's really strange because it's the first page but it shows the header/footer information, then the second page with /maketitle looked like how the first page should followed by a third page formatted with the header/footer (and labeled as page 3). I tried /pagestyle{empty} instead of /pagestyle{fancy} and got the same weird first page.

My initial formating code is:

Code: Select all

\documentclass[12pt]{article}
\usepackage[pdftex]{graphicx}
\usepackage{palatino,url,multicol,multirow,booktabs,setspace,float,fancyhdr,amsmath,amssymb}

\onehalfspacing

\lhead{Pre-Calculus}
\rhead{Mrs. Ewing}
\lfoot{Logarithms}
\setlength{\footrulewidth}{\headrulewidth}

\setlength{\oddsidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{-0.2in}
\setlength{\textheight}{8.65in}

\title{Logarithms}
\date{Name: \makebox[2in]{\hrulefill}}

\begin{document}
\pagestyle{empty}
\maketitle
Any help as to figuring out where this strange 0pt0.4pt first page is coming from?

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

Strange First Page Generated

Post by gmedina »

Hi,

the problem comes from this line:

Code: Select all

\setlength{\footrulewidth}{\headrulewidth}
Replace it with

Code: Select all

\renewcommand{\footrulewidth}{\headrulewidth}
By the way, to change the page layout, I suggest you to use the geometry package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pofigster
Posts: 2
Joined: Wed Aug 26, 2009 1:32 pm

Re: Strange First Page Generated

Post by pofigster »

Thank you so much! That fixed it!
Post Reply