Page LayoutHeadings, bibliography and incomplete /iffalse

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ajf
Posts: 2
Joined: Sat Jan 02, 2010 5:49 pm

Headings, bibliography and incomplete /iffalse

Post by ajf »

Hi all,

I'm getting a strange result when trying to add headers to my document. It compiles fine up to the moment I try to add them in, either with fancyhdr or just \pagestyle{headings}. Then it produces this error:

Code: Select all

! Incomplete \iffalse; all text was ignored after line 1.
<inserted text> 
                \fi 
l.489 \bibliography{bib}
It doesn't like my bibliography, seemingly. When I remove my bib lines it works fine. At the end of the document I have

Code: Select all

\bibliographystyle{ametsoc}
\bibliography{bib}
I suppose my preamble might be relevant as well so here it is:

Code: Select all

\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{custom}
\usepackage{natbib}
\usepackage{subfig}
\usepackage{fancyhdr}
\oddsidemargin 0.0in
\textwidth 6.5in 
\topmargin -0.5in
\textheight 8.5in 
\linespread{1.3}
%\pagestyle{fancy}
Does anyone have any suggestions on how to have both a bibliography and headers? Cheers.

Recommended reading 2024:

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

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

ajf
Posts: 2
Joined: Sat Jan 02, 2010 5:49 pm

Re: Headings, bibliography and incomplete /iffalse

Post by ajf »

Managed to solve it!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Headings, bibliography and incomplete /iffalse

Post by localghost »

Then please post your solution here. Otherwise this thread becomes completely useless.


Best regards and welcome to the board
Thorsten
Post Reply