I'm in the final stages of writing a book. I used MS Word, but a week or so ago I did a full install of MiKTeX 2.9 so I can learn Latex and publish the book in a more professional-looking manner. I've been programming computers for decades in various languages, so Latex should be pretty easy to learn. However, I'm having problems with things that I think should be pretty easy to do. For example...
I'm using the fancyhdr package and trying to put the chapter title in the header. So far, I'm having no success. Everything I've read online tells me \leftmark should be the chapter title, but it doesn't return anything. (I've also tried \thechapter.) This is where I'm at at the moment...
Code: Select all
\documentclass[12pt,twoside]{book}
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhead{}
\fancyfoot{}
\fancyhead[CO]{Book Title}
\fancyhead[CE]{\leftmark}
\fancyfoot[CO]{\thepage}
\fancyfoot[CE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\AtBeginDocument{\fancyhfoffset{0pt}}
\begin{document}
\chapter*{First Chapter}
Lorem ipsum dolor sit amet, consectetur ...