GeneralHeader Problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
IHateMayonnaise
Posts: 3
Joined: Mon Jul 28, 2008 7:18 pm

Header Problem

Post by IHateMayonnaise »

Hello!

I am finishing up a paper in Latex that I am writing for my internship and I am having a problem. For some reason, pretty much every other header is left justified one notch. i.e., if I have a header that is right justified, using \rhead{}, then on certain pages it shows up as center justified. The same happens when I center a heading, and when I have a left justified heading, it moves off the screen and I can't see it at all.

At first, this makes me think that it is obeying some sort of even/odd criteria, however the problem exists on 2, 4, and 6, while pages 1, 3, 5, 7 and 8 are normal. I've ripped through my code and I can't find the problem! Can anyone help? Thanks!

IHateMayonnaise

[EDIT] As it turns out, page 8 is the bibliography, which is not exclusively written in the main .tex file...so it would appear that the odd pages are normal, whereas the even numbers are skewed (not including the bibliography)
Last edited by IHateMayonnaise on Mon Jul 28, 2008 8:56 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Problem

Post by localghost »

With this poor information it is very difficult to give any help. Please provide a minimal working example (MWE) that shows this problem clearly. Especially the settings and loaded packages in the preamble are important.


Best regards and welcome to the board
Thorsten¹
IHateMayonnaise
Posts: 3
Joined: Mon Jul 28, 2008 7:18 pm

Header Problem

Post by IHateMayonnaise »

localghost wrote:With this poor information it is very difficult to give any help. Please provide a minimal working example (MWE) that shows this problem clearly. Especially the settings and loaded packages in the preamble are important.


Best regards and welcome to the board
Thorsten¹
Sorry! Thanks for the quick reply. Here is everything that comes before the document:

Code: Select all

\documentclass[twoside]{article} 

%%%%%%%%%%%%%%%%%% Packages%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[left=2.54cm,%
					top=2.54cm,%
					right=2.54cm,%
					bottom=2.54cm]{geometry} %This package lets you tweek with the margins. Here I have it set to 1 inch (2.54 cm) margins)%
\usepackage{color,url,graphicx,fancyhdr,multicol,amsmath,footmisc}
	\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
	\definecolor{Pink}{rgb}{1.0, 0.5, 0.5}
\usepackage[size=scriptsize]{caption} %Resizes the caption text so that it can be distinguished from the article text

\usepackage{hyperref}
	\hypersetup{colorlinks,%
		breaklinks,%
		linkcolor= darkblue,%
		filecolor=darkblue,%
		urlcolor= darkblue,%
		anchorcolor= darkblue,%
		citecolor= darkblue}
\usepackage{natbib}  %This is for Chicago manual of style. The command is \footnote{\citealt*{<bibreference>}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%Special Formats%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%-----Making the section headers look like APA Document Class-------%
\makeatletter
\renewcommand{\thefootnote}{\fnsymbol{footnote}} %Special symbol footnotes as opposed to numbers
\renewcommand{\section}{\@startsection{section}{1}{0mm}{-\baselineskip}{0.0025\baselineskip}{\normalfont\Large\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{1}{0mm}{-\baselineskip}{0.0025\baselineskip}{\normalfont\footnotesize\bfseries}}
%\setcounter{secnumdepth}{-1}
\makeatother
\pagestyle{fancy}
\addtolength{\headheight}{2.5pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%Document Information%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\bibliographystyle{unsrt}
\lhead{\thepage}
\chead{\textit{Title}} %This is the title that shows up in the header
\rhead{}
\cfoot{}
\renewcommand{\headrulewidth}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeatletter
\newenvironment{tablehere}
  {\def\@captype{table}}
  {}

\newenvironment{figurehere}
  {\def\@captype{figure}}
  {}
\makeatother
\begin{document}
I will begin trying to formulate a minimal working example, and I will edit this post when I do. Thanks again!
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Header Problem

Post by Ted »

IHateMayonnaise wrote:At first, this makes me think that it is obeying some sort of even/odd criteria, however the problem exists on 2, 4, and 6, while pages 1, 3, 5, 7 and 8 are normal. I've ripped through my code and I can't find the problem! Can anyone help? Thanks!
You're specifying the twoside option in your \documentclass line. Are you sure you want two-sided "recto-verso" style printing? Perhaps you meant to use oneside there (i.e., the default option (so you can just remove twoside)). Does that fix things?
-- Ted [home/blog]
IHateMayonnaise
Posts: 3
Joined: Mon Jul 28, 2008 7:18 pm

Header Problem

Post by IHateMayonnaise »

Ted wrote:
IHateMayonnaise wrote:At first, this makes me think that it is obeying some sort of even/odd criteria, however the problem exists on 2, 4, and 6, while pages 1, 3, 5, 7 and 8 are normal. I've ripped through my code and I can't find the problem! Can anyone help? Thanks!
You're specifying the twoside option in your \documentclass line. Are you sure you want two-sided "recto-verso" style printing? Perhaps you meant to use oneside there (i.e., the default option (so you can just remove twoside)). Does that fix things?
That fixed it, thanks!!
Post Reply