[OS X TeX] amsart & fancyhdr question
Lantz Susan
lantzs at tristate.edu
Tue Mar 11 17:25:19 CET 2008
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: Bio-MSdegrees.tex
% Typeset with LaTeX
\documentclass[11pt,oneside]{amsart}
\pdfpageheight 11in
\setlength\topmargin{-0.5in}
\setlength\headheight{15pt}
\setlength\headsep{15pt}
\setlength\footskip{25pt}
\setlength\textheight{9.0in}
\setlength\textwidth{6.5in}
\setlength\oddsidemargin{0in}
\setlength\evensidemargin{0in}
\setlength\parindent{0.25in}
\setlength\parskip{0pt} % was 3pt
\usepackage{amssymb,latexsym,amsmath,amsfonts}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png,.jpg,.pdf,.mps}
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\thispagestyle{fancy}
% redefine sectionmark
\renewcommand\sectionmark[1]{\markleft{\thesection. #1}} % neither \markboth nor \markright work
% clear any old style settings
\fancyhead{}
\fancyfoot{}
% define new headers/footers
\lhead{\scshape\nouppercase\leftmark} % \rightmark doesn't work either
\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}.}
\renewcommand{\labelenumii}{\alph{enumii}.}
\begin{document}
\section{First Section Heading}
Text, text, and more text.
Table~1
More text. Some equations.
\newpage
\section{Second Section Heading}
Lots of words.
Table~2
More words and/or equations.
\newpage
\section{Third Section Heading}
Blither, blather.
Table~3
More scintillating text.
\end{document}
------------------- demo.aux -------
\relax
\@writefile{toc}{\contentsline {section}{\tocsection {}{1}{First Section Heading}}{1}}
\@writefile{toc}{\contentsline {section}{\tocsection {}{2}{Second Section Heading}}{2}}
\newlabel{tocindent-1}{0pt}
\newlabel{tocindent0}{0pt}
\newlabel{tocindent1}{19.4667pt}
\newlabel{tocindent2}{0pt}
\newlabel{tocindent3}{0pt}
\@writefile{toc}{\contentsline {section}{\tocsection {}{3}{Third Section Heading}}{3}}
\newlabel{LastPage}{{}{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 macostex-archives
mailing list