1. What is the best "universal" (i.e. compatible with most classes) up-to-date package to customize the headers and footers in LaTeX ? I'm using
fancyhdr
in the MWE below.2. Is the
fancyhdr
package compatible with all the following classes? (apparently, it's working great with all of them yet, in my experimentations) : article
, book
, memoir
, paper
, report
, revtex4
, scrartcl
, scrbook
, scrreprt
, exam
.Here's a MWE for the
revtex4-1
class (a pesky and difficult to customize class), showing the warnings glitches in the console (I'm getting similar warnings with many other classes as well) :Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[11pt,twoside,aps,pra,nofootinbib,raggedfooter,eqsecnum,tightenlines,notitlepage]{revtex4-1}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage{showframe}
\usepackage[page]{totalcount}
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[LE,RO]{Done with \LaTeX}
\fancyhead[CE,CO]{\textsf{\textbf{Some bold text on top}}}
\fancyhead[RE,LO]{\textsl{Text in corner}}
\fancyfoot[CE,CO]{\textsc{SmallCaps text at bottom}}
\fancyfoot[LE,RO]{page \thepage~of \totalpages}
\fancyfoot[RE,LO]{Useless text}
\setlength{\headheight}{12pt}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\title{Title}
\author{Isaac Newton}
\email[Adresse courrielle : ]{isaac.newton@somewhere.com}
\affiliation{Some place for the lazies.}
\begin{abstract}Some resume.\end{abstract}
\maketitle
\tableofcontents
\section{Introduction} Some introduction for the goofies.
\section{Ssection title} Some section text.
\newpage
\section{A dumb title} Some dumb text.
\subsection{Subsection title} Subsection text.
\newpage
\section{Another title} More text to waste your time.
\subsubsection{A stupid subsubsubsubtitle} More useless text for your pleasure.
\newpage
Hey ! \LaTeX is fun!
\section*{Thanks to myself} Who am I, and who are you ?
\begin{thebibliography}{999}
\bibitem{bibitem1}
\uppercase{Galilei,~G., J.~Kepler}, \par \textit{Title 1}, \par Found.\ Phys.\ \textbf{47}, no. 6, 797 (1642).
\medskip
\bibitem{bibitem2}
\uppercase{Einstein,~A., I.~Newton}, \par \textit{Title 2}, \par Phys.\ Rev.\ D \textbf{65}, 103522 (2058).
\end{thebibliography}
\end{document}
So what's wrong with my code above? How to make it better? How to fix each warning?Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is useless on input line 11.
Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is useless on input line 12.
Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is useless on input line 13.
Package Fancyhdr Warning: \fancyfoot's `E' option without twoside option is useless on input line 14.
Package Fancyhdr Warning: \fancyfoot's `E' option without twoside option is useless on input line 15.
Package Fancyhdr Warning: \fancyfoot's `E' option without twoside option is useless on input line 16.
...snip...
Package nag Warning: Command \it is an old LaTeX 2.09 command.
(nag) Use \itshape or \textit instead on input line 32.
...snip...
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
...snip...
Package nag Warning: 1 complaints in total.
Unrelated questions :
Also, should I use
\
(for a space), \\
, or \par
, or \newline
(or even something else) in the bibliography?