Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
7 votes
Accepted

How to center lines of text using fancyhdr

Use a tabular in the head. \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{\begin{tabular}[b]{@{}c@{}} Short Name \\ Really long Name \end{tabular}} \chead{Title} \rhead{Date} \...
user avatar
  • 35.7k
2 votes
Accepted

Conflict between \pagestyle{fancy} and xcolor package

This is not caused by fancyhdr but by the standard LaTeX classes. These define the headers in such a way that \MakeUppercase is applied to them. This uppercases everything in the header, including the ...
user avatar
2 votes
Accepted

\@abspage@last fails to typeset number in header

You need \makeatletter around \rhead{...}, not inside it, but you can do better. There is no “official” interface for using \@abspage@last in the document, mainly because it's not meant to save the ...
user avatar
  • 986k
1 vote
Accepted

Remove dot from custom defined section title

I have this idea to achieve that. But it end up with shifting the star version section heading down as well (As I labeled in figure with red rectangle). You can always add local titleformat to avoid ...
user avatar
  • 2,045
1 vote

Set page numbering on specific pages

You can define another pagestyle, or redefine plain, with \fancypagestyle, and then use \thispagestyle{otherpagestyle}. For example (not tested): \fancypagestyle{plain}{ \renewcommand{\headrulewidth}...
user avatar
1 vote
Accepted

Get beginning and ending counter of environment in page

You need to use marks to solve this. Here is a simple solution. It uses the extramarks package. It doesn't print a header before the first theorem. With the old (version 4 or earlier) version of ...
user avatar
1 vote
Accepted

Why changing page footer content draws a line to the top of the page

Add \renewcommand{\headrulewidth}{0pt} to the preamble of your document.
user avatar
1 vote
Accepted

Page numbering disappear when using together (1) fancyhdr and (2) geometry packages

Thanks for the clarification and the example. The two roots of the problem are the following: (1) You have given the instruction \fancyfoot{} on l. 30. This "clears all footer fields", as ...
user avatar
  • 1,221

Only top scored, non community-wiki answers of a minimum length are eligible