[texhax] amsart & fancyhdr

Lantz Susan lantzs at tristate.edu
Thu Mar 13 22:24:30 CET 2008

I have read the fancyhdr documentation. I have read the section on LaTeX marks and the section on the fancyhdr package in The LaTeX Companion. According to both sources, the code below should work . . . if I were using the article documentclass. (It does, indeed, work with the article documentclass, but not with amsart.)

I'd would greatly appreciate it if someone could tell me why the tex file below does not put the section number and title as the left side of the header. The left header is blank, no matter whether I use \markboth, \markright, or \markleft when re-defining the sectionmark. (I've tried using \rightmark in \lhead{ . . . } when sectionmark is re-defined with either \markboth or \markright, but no matter what I do, the left header is blank.)

Is this a peculiarity of the amsart documentclass? (I've never had this kind of trouble with the book class or amsbook class.)

-------------- demo.tex -----------------

% File: BME-MS.tex
% Typeset with LaTeX
\pdfpageheight 11in

\setlength\parskip{0pt} % was 3pt

% redefine sectionmark
\renewcommand\sectionmark[1]{\markboth{\thesection. #1}} 
    %% neither \markright nor \markleft work

% clear any old style settings

% define new headers/footers
   %% \rightmark doesn't work even if \markright is used for sectionmark
\rhead{Page \thepage\ of \pageref{LastPage}} 
\rfoot{SAL, 20--29 February  \& 03--11 March 2008}

% redefine list styles for enumerated lists \renewcommand{\labelenumi}{\arabic{enumi}.}

\section{First Section Heading}

Text, text, and more text.


More text. Some equations.

\section{Second Section Heading}

Lots of words. 


More words and/or equations.

\section{Third Section Heading}

Blither, blather.


More scintillating text.

------------------- demo.aux -------
\@writefile{toc}{\contentsline {section}{\tocsection {}{1}{First Section Heading}}{1}}
\@writefile{toc}{\contentsline {section}{\tocsection {}{2}{Second Section Heading}}{2}}
\@writefile{toc}{\contentsline {section}{\tocsection {}{3}{Third Section Heading}}{3}}

There's nothing the least bit unusual in the log file.

Susan Lantz

Susan A. Lantz, Ph.D.
Associate Professor of Mechanical Engineering
Tri-State University 
lantzs at tristate.edu

More information about the texhax mailing list