Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fancyhdr]

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

0
votes
0answers
21 views

Header stays the same “table of appendices”

The header in my document stays the same on every page. It shows "List of Appendices". Normally it should show the section's name. It worked a few days ago and I dont know why it doesnt work any more ...
1
vote
2answers
38 views

Header rule doesn't pass over the margins

I am trying to customize the header rule using fancyhdr and tikz packages. I wish the rule could overpass the margins. In order to do so I thought that drawing a line with tikz from (-1,0) to (18,0) ...
1
vote
1answer
23 views

Running header at center after the first page in article class

Can I do this without explicitly putting in \newpage or a page break? Note that I also have sections in my article. \documentclass{article} \usepackage{lipsum} \begin{document} \pagestyle{headings} \...
0
votes
1answer
24 views

How to Change Bottom Margins on Specific Page Style?

I'm using fancyhdr. My fancy page style has no footer (only footnotes). However, on chapter titles, I am using a plain pagestyle, which has the footnote on the bottom. In any case, I would like to ...
1
vote
1answer
31 views

put last modified date on the PDF form generated by markdown + hyperref + javascript + fancyhdr?

This is my pandoc version: pandoc --version pandoc 2.3.1 Compiled with pandoc-types 1.17.5.1, texmath 0.11.1.1, skylighting 0.7.3 Default user data directory: /Users/vle/.pandoc Copyright (C) 2006-...
1
vote
1answer
67 views

Writing chapter-name and section-name in header for report class

I need to write a LaTeX document that should have the following page specification: Text Height: 240 mm & Text Width: 160 mm Header with top Margin: 30 mm & Footer with Bottom margin: 27mm ...
0
votes
1answer
38 views

Fancyhdr - Begin pagination with 2

I am trying to create a document using LaTeX, and the requirements of my university are very strict. The pagination has to be on the top right corner, no number on the titlepage, the second page ...
1
vote
1answer
25 views

Apply fancy page style using fancyhdr package on the first page only

my problem is that I need a fancy style in the first page and an empty style in the rest. Even though I used \thispagestyle{fancy} only in the first page, it didn't work. Here's my code: \...
-1
votes
0answers
26 views

How to have two headers in article with fancyhdr?

How can I have two header templates with fancyhdr, according to the model of the image. The code below causes problem, as you show the images. \documentclass[12pt,a4paper]{article} \usepackage{...
-1
votes
0answers
32 views

How to Make Two Different Headers

I wanted to create such a model, but it misconceived. I want one like that. The different headers because the second has a line that splits the text. In the first one besides the logo, the line, the ...
3
votes
2answers
57 views

How to do alignment between objects in header with fancyhdr?

These two objects are in the header, but I can not align the line so that it is at the bottom of the box. The line and an image, it has this degrade in the left part, is it possible to make a line ...
1
vote
1answer
36 views

Place object in custom position, but differently for odd and even pages

This is an example page, with a custom footer, containing two different text blocks in the bottom right and bottom left, temporarily using package textpos: \documentclass[12pt,twoside]{article} \...
4
votes
2answers
111 views

Overlapping body

I'm trying to keep body text inside its box but it overlaps the header. I tried using \voffset, \headsep and \headheight, but it seems they do not work as I expect \documentclass{article} \usepackage[...
2
votes
1answer
30 views

Issues with doclicense, both with fancyhdr and with background

This is an attempt to insert the doclicense output in each page of a document, using fancyhdr: \documentclass[12pt]{article} \usepackage[ type={CC}, modifier={by-sa}, version={3.0}]{...
1
vote
1answer
50 views

How to create this template for page numbering in latex

How to create in the latex this style of page numbering.
1
vote
0answers
52 views

Coloring chapter and section and relative numbers [closed]

I tried to color che chapter and the section after their restiling. I re-used two code and mixes them, but i had no positive results. How solve this problem?? \documentclass[a4paper,12pt,oneside]{...
1
vote
0answers
53 views

How set the same header / footer fo all pages in LaTeX? [closed]

i want to set the same header in all pages in my LaTeX book. Is it possibile to put draw, tikzpicture or external pictures? Thanks!! I'm using this \usepackage{tikz} \usepackage{verbatim} \...
-1
votes
0answers
20 views

How to customize fancyhdr text (alignment and font)

I'm using fancyhdr to make a header with a line and text above it. Currently, the text is right aligned. How can I change it to left aligned? How can I make the font bigger and bold the text? \...
1
vote
0answers
33 views

Distance rectangle - text chapter using fancy header [closed]

but i'm non able to solve some problems: \documentclass[svgnames,12pt,a4paper,oneside]{book} \usepackage[T1]{fontenc} % lettere accentate \usepackage[utf8]{inputenc} ...
1
vote
2answers
39 views

How can I make a coloured footrule using fancyhdr?

I found this on the Internet: \renewcommand{\footrule}{\hbox to \headwidth{\color{red}\leaders\hrule height \footrulewidth\hfill}} So I was wondering if there are any other solutions, that are more ...
0
votes
0answers
20 views

No Scope of \marks inside longtable?

I do not understand how to use marks inside a longtable. In the following example, the marks inside fancyheads are all as expected, but those inside the longtable are not. \documentclass[12pt,twoside]...
2
votes
0answers
42 views

fancyhdr messing up the document margins

I wish to add header/footer to a document in landscape format. The document is basically a long table with few notes. Consider the following example: \documentclass[11pt]{article} \usepackage[utf8]{...
3
votes
1answer
121 views

Set footer height

My header logo is about 3,5 x 6cm. The footer logo is about 3 x 20cm. The header is shown on the correct place, but the footer is not shown at all. How should I change the geometry so that the footer ...
2
votes
2answers
67 views

How to get the author and chapter names in header; alternatively using fancyhdr?

I want to set a header/footer which shows: Chapter name on odd numbered page; Author name (different authors in different chapters) in even numbered pages; Page number in central footer. Any help ...
2
votes
2answers
56 views

Short title in header but not ToC for document class book

I would like to have a short title of chapters and sections in my headers, but in the ToC there should appear the long title. I am using the book document class, and package fancyhdr. \section[...
2
votes
2answers
30 views

How to stretch horizontal lines in header on left side (as on right side)?

\documentclass[10pt,times,a4paper]{letter} \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{booktabs, tabularx, colortbl, xcolor} \usepackage[left=0.8in,right=0.8in,top=0.8in,bottom=0.7in,...
3
votes
1answer
31 views

page header style

I'm wondering how to achieve this header style using two rules with a thick one on the bottom, and the page number in a shadowed square ?. The version in the image below is the right page version.
1
vote
1answer
43 views

\leaders in redefining \headrule cause “A <box> was supposed to be here”

After stripping away hundreds of line of code to reach this MWE, I found that my "A «box» was supposed to be here" seemed to be caused by a \renewcommand{\headrule} in conjunction with fancyhdr. ...
0
votes
0answers
45 views

Meaning of `to` and `height`

I want to set color of footer line. I've found next: \renewcommand{\footrule}{ \hbox to \headwidth{ \color{DarkRed}\leaders\hrule height \footrulewidth\hfill } } It works, but what ...
0
votes
0answers
21 views

Changing ToC Header mid ToC tied to entry

I have a similar requirement as in this question and the answer provided here gets me most of the way there (I am using fancyhdr instead). However, as @JospehWright mentioned, I need the header to ...
2
votes
1answer
29 views

Show interpret in footer with leadsheets

I'm using leadsheets to create a songbook. Currently the name of the interpret is displayed at the end of the song, but I'd like to move it to the footer opposite of the page number. My problem is ...
1
vote
1answer
32 views

How to keep image header but remove text header

I have a problem with the headers. I want to keep the image header but remove the text header (small word contents). Below is the code: \documentclass[11pt,a4paper,titlepage]{article} \...
0
votes
1answer
44 views

how to have the logo only on the first page

I'm trying to make my personal code for a report template. I would have the logo of the company only in the first page and maintain the header and footer in the rest of the document. \documentclass[...
1
vote
1answer
27 views

Fancy Header applies wrong header to all pages following list of tables

I've been at this for well over an hour, trying to track down WHY every page following my list of tables page gets its header from list of tables. Can anyone help me? %-----------------Einrichten-...
1
vote
1answer
33 views

Remove empty space for the fancy header

MWE: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \geometry{includeheadfoot,verbose,tmargin=1cm,bmargin=0.7cm,lmargin=2cm,...
1
vote
1answer
30 views

Custom Footer Line for fancyhdr (2)

So I need a different line above the footer for every page in the fancyhdr package. It has to look something like This is what I did to create the line \rule{\linewidth}{3pt} \vspace{-0.85\...
1
vote
1answer
29 views

Custom Footer Line for fancyhdr

I'm looking to change the way the footer line looks for fancyhdr to something like this : \usepackage{xcolor} \newcommand\shadowfill{% \leavevmode\leaders\hbox{\ooalign{% \vrule height ...
0
votes
0answers
27 views

Automatically determine the height of header and footer in the presence of the `calc` package

I am trying to automatically correct the \headheight and \footskip using the fancyhdr package. This has already been asked in this question. The accepted answer proposes the following solution \...
1
vote
1answer
58 views

Issue redefining plain style fancyhdr

I am trying to generate a header/footer layout per the following: Frontmatter - roman page numbers in footer, right aligned, no header Mainmatter - arabic page numbers in footer, chapter name and ...
1
vote
3answers
82 views

Change position of page number after frontmatter

My grad school has very specific ideas about the placement of page numbers: Preliminary pages: lowercase Roman numerals, centered 1/2 inch from the bottom of the page. Begin with the number (ii) on ...
2
votes
0answers
29 views

Remove header/footer on odd page

I'm compiling a bilingual document using the \parallel package, with headers and footers using the \fancyhdr package. I would like a couple of pages without header and footer to separate sections of ...
0
votes
1answer
91 views

fancy header and footer

Please can you help me to get the same result as photos. I want in my header the title of chapter and a little box with number of chapter in it, with a specific color and hrule with the same color. In ...
1
vote
1answer
32 views

Problems with the footers in the plain pages with srcbook

\documentclass[12pt, titlepage,twoside]{scrbook} \usepackage[utf8]{inputenc} \usepackage{url} \usepackage{graphicx} \usepackage{imakeidx} \usepackage[a4paper, inner = 37.5 mm, outer = 17.5mm, top = ...
2
votes
2answers
61 views

How to change the style of the header/footer depending on the parity of the page?

My question I am trying to have a precise control on the size and on the content of the header and footer of the pages, with different configurations: if the page the first page on odd pages on even ...
1
vote
1answer
45 views

How do I add a dot after section number in the header with fancyhdr?

I am having a hard time trying to add a dot after section number in the header, the package I am using is fancyhdr. I tried the following which did not work \documentclass[UTF8]{article} \...
1
vote
1answer
128 views

What is the difference between \leftmark and \rightmark in fancyhdr?

I am having a hard time trying to figure out the difference between \leftmark and \rightmark in fancyhdr. At page 8 of the documentation, it says The \leftmark contains the Left argument of the ...
0
votes
0answers
23 views

Remove headers from a float page with a figure but retain it in a float page with a table

I have a peculiar requirement. In a float page containing one big figure, I would like to remove all header information. However, in a float page containing a big table, I'd like to retain the header. ...
1
vote
1answer
30 views

Fancy package and Contents header

I used the following package and commands to change the headers of my thesis, so to remove the default uppercaseness and make them look nice: \documentclass[12pt, a4paper]{book} \usepackage{fancyhdr}...
0
votes
0answers
26 views

Remove headers on a float page containing a single big float with footnotes

I'd like to remove headers (inserted by fancyhdr package) on a float page that contains a single big figure with footnotes. I'd like to retain the same pagination and content flow, i.e. forced use of ...
0
votes
0answers
31 views

handling different headers in report class

I am writing a book with a tweaked report class. At the moment, each chapter has 'Chapter Title' on the left/odd header, and 'Please do not cite' on the right/even header. However, the book's ...