{fancyhdr} is a package which allows the creation of custom page headers and footers.

learn more… | top users | synonyms

3
votes
1answer
141 views

What is the proper way of moving my content but not my header/footer?

My header and footer are all set. Size and position are good. However, I want to push the actual content to the right and down (creating big margins at the top and left of the document). See this ...
5
votes
2answers
1k views

How to put the text at the top in fancyhdr

I made a document with 2 pages and headers: Can I put "Page 2 of 2" at the top of the 2-nd page, so it was vertically aligned with "Commercial invoice"? How can I manage the padding between the ...
2
votes
1answer
223 views

Empty page on the Part page

I'm using this on my document (scrartcl documentclass): \usepackage{etoolbox} \pretocmd{\section}{\cleardoubleevenemptypage}{}{} \pretocmd{\part}{\cleardoubleevenemptypage}{}{} This makes me get ...
6
votes
1answer
965 views

Want to get 'book name, and 'chapter name, in header

I asked a question to get 'chapter name' and 'section' in the header in the following link : \markboth is not working when using \chapter and \section. Now I have decided to replace the section name ...
0
votes
1answer
678 views

Gantt diagram and pdflscape

I'm trying to put a gantt diagram (using pgfgantt package) into landscape mode (using pdflscape package), but I have encountered a problem: It seems that, either because of pgfgantt, pdflscape or ...
1
vote
1answer
402 views

Expand page to use full page height with fancyhdr

I use fancyhdr package and would like to print a large float that exceeds the textheight. Hence I would like to remove the headers and footers. And have the float verticaly centered. I tried ...
7
votes
1answer
9k views

fancyhdr - Only show sections, not subsections

Is there a way for the header to only print the title of the parent section? So in the example below, the subsection{LOL} page will have "1.1 LOL" written in the header. I just want it to say ...
4
votes
1answer
7k views

How to print the section name without the section number in a fancyhdr header?

I've copied a code to have a header that prints the section name on the left and my name on the right: \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markright{\thesection\ ...
2
votes
1answer
1k views

\markboth is not working when using \chapter and \section

I am having a problem when adding \chapter and \section in the document. \markboth is not working when I compile it. I have got a link Why is \markboth not working?. But there is no solution about my ...
3
votes
1answer
860 views

topline of fancyhdr disappears when I use tocloft

I have the problem that when I use package tocloft the line under the fancyheader disappears. It only disappears on pages with lists, like table of contents or list of figures. I would like to have ...
4
votes
1answer
4k views

Placing page numbers with Fancyhdr

I have looked through many of the posts on this website, but I am still having trouble placing my page numbers in latex the way I want it. Essentially, I want to mimic the way MS Word formats page ...
8
votes
1answer
5k views

Inconsistent margins using fancyhdr and geometry

For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
5
votes
1answer
347 views

can't find issues identified by nag

I am somewhat new to LaTeX, but am currently working on a project (trying to use pdflatex for automated .pdf report rendering). I just learned about \RequirePackage[l2tabu, orthodox]{nag} today, ...
8
votes
1answer
9k views

How to set custom headers?

Having some experience with Latex, I'm now using LyX seriously for the first time. Since I need to set custom headers, I have enabled the Custom Header/Footerlines module and set the page layout to ...
3
votes
1answer
97 views

How to put a text, shifted to the right into the customized \section

I have the following code: \documentclass[11pt]{article} \usepackage[a4paper]{geometry} \usepackage[cm]{fullpage} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{lipsum} ...
2
votes
1answer
10k views

Same header and footer for every page

I have a problem with my header and my footer. If I do that: \pagestyle{fancy} \fancyhf{} \fancyhead[R]{\includegraphics[width=8cm]{img/header.png}} \fancyfoot[L]{ Name Firstname - v1.0 \\ Date}} ...
2
votes
1answer
1k views

Page numbering different side of heading for odd and even page

Hello I am using a fancyhdr package and I want that the page number appear in the right side of the heading for odd pages and in the left side of the heading for the left side. I alredy used the ...
1
vote
3answers
89 views

Problem with headlines

I have a problem with headlines. My kode is: \documentclass[a4paper,11pt.,leqno]{article} \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyhead[LO, LE]{\thepage} \renewcommand{\headrulewidth}{0pt} ...
3
votes
1answer
200 views

Trouble using fancyhdr

I'm still relatively with using LaTeX but I've done a lot of searching to try and fix my problem (may have not been enough). My issue is that I am after the page number in the top right of the header ...
4
votes
2answers
359 views

Text does not fit foot line space

For my next essay, I got some requriements from my teacher. The layout concerning headlines and footlines should be like this (as there is no adequate Times New Roman I chose Arial): ...
1
vote
1answer
195 views

Legend of picture, caption

I would like to assign one caption to a picture in my report, without this caption begin in the listing of figure. I use the following: \begin{figure}[htbp] \begin{minipage}[l]{.645\linewidth} ...
4
votes
0answers
239 views

Use fancy page numbering using Metapost graphic

ConTeXt is a great TeX format specially since Metapost is tightly integrated into it that producing page numbering style like is easily implemented if you know Metapost (which I admit I don't, ...
4
votes
1answer
7k views

Remove section name from header in LaTeX

I am trying to remove section names in headers. I am using fancyhdr package. When I try to specify new text in \lhead{}, text is just overlayed on section name. P.S. 3 hours of googling did not help. ...
5
votes
1answer
757 views

Decorative lines above and left of text

I would like to recreate this decoration, which is being placed at the top of every page: So a thin line above the text, and a thicker line left of the text. I've been trying to do this using the ...
3
votes
2answers
730 views

Alternating header titles

I'm trying to figure out how to get the odd and pages to display the current section name and the odd pages to display the title of the paper. How do I accomplish this? I'm using article and I have ...
2
votes
1answer
2k views

Remove line from Header

I am using \usepackage{fancyhdr} \pagestyle{fancy} ........ \lhead{My Name} This setup creates header with a horizontal line. How can I remove line appearing in header? When I convert this ...
4
votes
2answers
531 views

No page number on the first page of an Index (not ToC)

The publishing house I am going to publish a book with demands no page number on the first page of each chapter. I used \thispagestyle{empty} in most cases and had to use ...
1
vote
1answer
920 views

How to enlarge the header of a fancy page style? [closed]

I am using a fancy page style for my report. I am using the following code to set the width of the body: \usepackage[left=3cm, right=2.5cm, top=2.65cm, bottom=2.65cm]{geometry} However, the bar in ...
6
votes
2answers
3k views

Logo in footer with aligned text

I want to create a latex class to create documents for my company. There is an example style for a word document but it looks more complex as most headers/footers I have found till now to re-create in ...
2
votes
1answer
1k views

fancyfoot different on first page of new chapter

I copied my fanyfoot setting of a former work of mine but in my current file it behaves completely different. On the first page of each chapter the pagenumber if not centered but aligned left. Also no ...
1
vote
3answers
1k views

Change linewidth for the whole document, while keeping fancyhdr wide?

Somebody noticed that \abstract changes the linewidth for the whole document (here). The problem was the syntax: with correct syntax as below this is avoided. \begin{abstract} This is an abstract. ...
10
votes
1answer
1k views

Hyperref marks lastpage as a reference

I am using the hyperref package, lastpage package and fancyhdr package. My problem is, that the number showing the amount of total pages (in the footer) is red and works like a link to the front ...
6
votes
2answers
4k views

latex fancyhdr: is possible to use leftmark and rightmark alternatively?

I'm using this code to customize the header layout: \pagestyle{fancy} \fancyhead{} \fancyfoot{} \lhead{\nouppercase{\rightmark}} \rhead{\thepage} I would like to have the section name in the top ...
8
votes
2answers
329 views

Page number in the margin and separator

I want to produce this kind of header. My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
4
votes
1answer
874 views

First page bottom margin problems — fancyhdr / geometry

Can anyone please help me understand why the bottom margin on the first page spills over if I only use the geometry definitions inside the square brackets of \usepackage[]{geometry}; however, placing ...
0
votes
1answer
692 views

Bad margins while printing

I'm using geometry package like this: \usepackage[landscape]{geometry} \newgeometry{twocolumn, left=0.25cm, right=0.25cm, top=0.8cm, bottom=0.4cm} and fancyhdr package like this: ...
7
votes
4answers
1k views

Use of shaded box for section numbering only?

I have been wondering "how to get shaded box for section numbers only"? Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square. I ...
8
votes
3answers
2k views

My footer disappears when I increase headheight

I have created a custom simple layout with the fancyhdr package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight to at least a minimum value. The problem ...
2
votes
0answers
643 views

alternating chapter and section on header [closed]

I use the code trying to have the header to display chapter and section alternately \pagestyle{fancy} \renewcommand{\chaptermark}[1]% {\markboth{\MakeUppercase{\thechapter.\ #1}}{}} ...
1
vote
2answers
476 views

Custom geometry for a first chapter page?

On normal pages I have header and no footer. On first chapter page -- I have footer (with page number) and no header. Hence I need: \newgeometry{top=2cm, bottom=1.2cm, left=1.5cm, right=1.7cm} for ...
5
votes
1answer
698 views

Page number appears twice in the page

I don't know why I am getting two page numbers on the same page, one in the center and one on the right: \documentclass[a4paper,12pt]{report} \voffset=-1in %setting the header \usepackage{fancyhdr} ...
3
votes
1answer
5k views

Missing chapter name when using fancyhdr

I want to get the following header: Left page: \thepage\hfill\chaptername{}\thechapter Right page: \chaptername\hfill\thepage So I write: \documentclass{book} \usepackage{fontspec} % enagles ...
1
vote
1answer
763 views

Automatic header for LaTeX

I am writing my thesis using the template obtained from http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/ with a bit of modification to suit my needs. I would like to have the left ...
3
votes
1answer
265 views

How to prevent “CONTENTS” from appearing as a header in ToC

In the documentclass report, how do I prevent "CONTENTS" from appearing in the header of the Table of contents? In the preface I have no header, only page numbers, and in the main part I want ...
3
votes
2answers
800 views

How to tweak the font of page number in the whole document?

First fancyhdr is loaded to change the font of page number. The following commands are used to change the font to sans serif: \fancyhead[LO]{ \sffamily \thepage } \fancyhead[RE]{ \sffamily \thepage ...
4
votes
2answers
2k views

How to make leftmark/rightmark next to Page number?

The desired header style is like: page number is sans serif even in the first page of the chapter, because Using \fancyhead[LE]{\sffamily \thepage } \fancyhead[RO]{\sffamily \thepage } could ...
5
votes
1answer
496 views

Two sections on one page make fancyhdr takes the second one as page header

I have two sections on one page. Unfortunately fancyhdr takes the second one as the page header, which will result in something like seen in the image below. I want to have the first section as the ...
2
votes
1answer
907 views

custom header using fancyhdr

I am looking to create a layout as follows in LaTeX. I tried using fancyhdr but I am unable to get it right. \lhead{\includegraphics[height=0.75in]{translogo}} \chead{\parbox{5cm}{INTEROFFICE ...
3
votes
0answers
39 views

Is there any package that supports multiple last pages [duplicate]

Possible Duplicate: How do I have two sets of page numbers in a document? I am trying to make one single file that contains several small components. Each small parts need its own last ...
7
votes
1answer
419 views

lost formating on one page

Formating on one page is broken, namely in header part there is missing one parameter (word) and the columns looks differently as shows the picture bellow. How can I correct the formating? The script ...