Questions tagged [fancyhdr]

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

Filter by
Sorted by
Tagged with
6
votes
1answer
318 views

Is this a bug with fancyvrb, fancyhdr and fontspec?

Consider the following (hopefully minimal) non-working example and compile with luatex (TeXlive 2016): \documentclass{article} \usepackage{fontspec} \setmainfont{texgyrebonum-regular.otf} \usepackage{...
6
votes
2answers
4k views

Get FancyHDR and geometry to work nicely

In the MWE, geometry is set to leave a top margin of 1cm on the top and on the back of the page. Yet, with FancyHDR on the top of that, occupy some parts of this margin and I have to manually tweak ...
6
votes
3answers
2k views

Header and footer for a book using: part on even page and chapter on odd page

My goal is to realize this layout for a book (possibly using fancyhdr, but I'm open to everything): where the current layout is represented in grey. In other words, I want : to put the page ...
6
votes
1answer
3k views

How can i remove the header on the first page of my sections, but keep the footer?

i need some support with my headers and footers. Actually my expectation was that Latex was good right at these type of things, but i'm very confused that i don't get it sorted out. I have the ...
6
votes
2answers
14k views

\thispagestyle{plain} has no effect [duplicate]

I'm using the default settings of the fancyhdr package and calling \pagestyle{fancy} at the beginning of my document of type report. Since I have some large figures and tables, I would like to ...
6
votes
1answer
4k views

In fancyhdr, ensure every letters in chapter/title names are in lowercase

In designing novels, (Document-class Book KOMA SCRIPT) I prefer to use all-small-caps in the running heads. Please find the first example, where both howards end and chapter 29 were all set in ...
6
votes
1answer
16k views

Problem with header/footer position

I wanted a document with a header/footer on the first page and only a slighlty different footer on every other page. If I do it like suggested in different places: \documentclass[12pt,a4paper,ngerman]...
6
votes
1answer
796 views

graphics in style file

I aim to create a reporting template for other TeX users to use at our work. My objective is creating an .sty file. The specifications are fairly simple but one is causing grief: that is including our ...
6
votes
1answer
2k views

Page header with gray background and without margin

After finishing my thesis in LaTeX (I am an absolute newcomer) I've been asked to format it in a specific design matching a doc-file I received. I've managed to change titles and fonts and margins ...
6
votes
1answer
567 views

Similar header format for my company

I need to reproduce the following header format: Please help; I'm a completely starter at LaTeX or TeX. I work with LyX and this is included in the document's preamble: \usepackage{fancyhdr} \...
6
votes
1answer
660 views

Remove fancyhdr footer when float page too large

I'm working on a book with fancyhdr with some overfull float pages, and want to remove the footer on only those pages, but keep the header. Can I either automatically remove footer if the caption ...
6
votes
1answer
2k views

Chapter Thumbs or Tabs in Book Class

I'm currently finalizing a book, and would like to add chapter thumbs or tabs to the document. While I've found a fair number of packages which are likely capable of doing so, I can't seem to get the ...
6
votes
1answer
2k views

Formatting page number (fancyhdr?)

Could anyone please show me how to get this page number formatting:
6
votes
1answer
3k views

Chapter-specific headers using fancyhdr

I would like to use the fancyhdr package to format the headers for my dissertation, and I'm running into some problems. For the introduction, I would like the even pages to have the page number and ...
6
votes
2answers
2k views

Prevent superposition of titles in header (fancy)

I would like to prevent the issue of having titles superposed in the header of my report. I am using the following code: \usepackage{fancyhdr} \setlength{\headheight}{15.2pt} \pagestyle{fancy}...
6
votes
1answer
2k views

fancyhdr: include footnote only on page 1, but header on all pages

I want to put a footer on page 1 but not on other pages. I also want to put a header on all pages. Could some one tell me how I can do that? The code I am using so far (only relevant lines shown): \...
6
votes
1answer
4k views

rightmark without numbering?

I'd like to include the section name in the header WITHOUT the section number. The only instructions I could find on how to do this said to add this: \renewcommand{\chaptermark}[1]{\markboth{#1}{}}...
5
votes
1answer
3k views

Glossaries and custom section headings broken

I've a document, where I use the glossaries to manage acronyms for me. Sometimes, I use a \gls{} command inside a section heading, and I have defined page headers to have the current section heading. ...
5
votes
1answer
659 views

Question about changing the position of the footnote rule

My question is after I redefine the length of footrule, the footrule doesn't change the position on even or odd page, it's always at the left side. Did I lost something or there's the other way to ...
5
votes
2answers
908 views

How to make this header style?

I want to make this header style: I read some questions about header style here, and then I tried to make the above style. I used the following codes: \usepackage{fancyhdr} \pagestyle{fancy} \...
5
votes
2answers
857 views

LaTeX two different page numbers on the same page

I want to get two different page numbers on the same page in LaTeX. For example, I want to have overall page numbers in the footer and within chapter page numbers in the header. I wonder how to get ...
5
votes
2answers
3k views

Colorbox of page width, INCLUDING margins

I want to make a header like on the picture below: But I don't know how to force colorbox to overflaw in the margin. The best I got is: I try to use \hspace but it only moves the text: \...
5
votes
1answer
12k 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 ...
5
votes
1answer
18k 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
2answers
1k views

Wrap page number in colored box in footer

I a looking for a way to achieve the following outcome for the page numnbers in my footer created using fancyhdr: My current code in a stand-alone example looks like this: \documentclass[12pt,...
5
votes
2answers
1k views

How to remove the horizontal line below the image in the header

To add image in the header , I have written the code, basically the pagestyle modification. Now , just for a trial , I first modified only my plain page style. After the image gets inserted in the ...
5
votes
3answers
2k views

Colored headrule - fancyhdr

Using the provided line of code here changes successfully the header color but creates a gap between the headertext/colorbox(lheadtext, rheadtext) and the header: Is there a way to color the header ...
5
votes
2answers
2k views

Text running into footer area when using amsart and fancyhdr

I'm trying to include a logo in the footer area of an amsart document. I use fancyhdr to achieve that, but the problem I run into is that the body of the text runs into the footer area - as ...
5
votes
1answer
3k views

fancyhdr style problem

I am having some problems with the fancyhdr package. How can I achieve the following in my big thesis file: The header should consists of the chapter name at the left side and the page number at the ...
5
votes
2answers
476 views

Remove chapter name from header just from first page of TOCs

In the first pages of the Table of Contents, List of Figures, etc, I want to remove the chapter name from the header, but I want to to keep the chapter name/title in the header line of the following ...
5
votes
1answer
2k views

Thesis chapter headings, any suggestions?

I've found a thesis with really beautiful chapter headings that I would like to use. What package am I going to need and how would I go about creating a heading that looks like the one below. Also, if ...
5
votes
1answer
1k views

fancyhdr page decorations and page numbering

Hello there are several examples of decorative pages. Most examples work with a single page,when numbering is not necessary. When i try to make for every page. It does not work, or i have problems ...
5
votes
1answer
232 views

\savebox in page header with redefinable commands

I'm making a document class with some redefinable commands for page headers. However, I'm running into the following issue: \documentclass{article} \usepackage{fancyhdr} % In custom document class \...
5
votes
3answers
154 views

Remove footer (page number) in documents that are one page long

When I create a document that has but one page, I see no reason to have a page number in the footer. I would like to remove this. There is, however, apparently no such equivalent to thispagestyle{...
5
votes
1answer
773 views

glossaries \leftmark and \rightmark not translated

I was trying to make an article in french with a glossary (glossaire in our weird tongue), and I noticed that, even if I did manage to set the translation right for the body, the \leftmark (or \...
5
votes
1answer
3k views

The problem of fancyhdr and leftmark /rightmark for the bibliography with biblatex

There is the well know problem of empty marks with latex but fortunately there is a hack for the content to appear only once in the header; but for the bibliography with biblatex, it does not seem to ...
5
votes
2answers
2k 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
3k 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 not ...
5
votes
1answer
1k views

How do I have a second line in my header?

I would like to have a header that looks like <my name> <Class> <page number> <Student number> However, I can't figure out how to insert the second ...
5
votes
1answer
2k views

Can't get \fancyheadoffset to work

I have loaded the fancyhdr package and I want to make the headers and footers wider (clamp them to the margin), so I inserted the following line after the package has loaded: \fancyheadoffset[LE,RO]{\...
5
votes
2answers
4k views

headlines with fancyhdr and documentclass scrreprt

I am using documentclass scrrept and fancyheader headlines. The problem is that on every page where a new chapter starts, here are no headers. Only the page no is shown in the middle of the footer. ...
5
votes
1answer
2k views

Can't make fancyhdr work with pandoc + yaml header

I am trying to convert my document from Markdown to PDF using Pandoc. At the beginning of my Markdown file, I have included an YAML header. Every parameters seems to be processed, except header-...
5
votes
1answer
9k views

Fancyhdr and redefinition of leftmark/rightmark

I am writing a long document and I decided to change the headers, using fancyhdr : \documentclass[12pt,a4paper]{book} \renewcommand*\thesection{\arabic{section}} \usepackage{fancyhdr} % Fancyhdr ...
5
votes
2answers
1k views

Choosing \firstmark and \botmark with \leftmark?

I'm very new to LaTeX, and I'm having a terribly difficult time understanding the marking system. I'm not really grasping what The LaTeX Companion and the fancyhdr manual are saying. I'm creating a ...
5
votes
2answers
4k views

How to reclaim space from removing headers and footers

I'm using the fancyhdr for headers and footers in most of my document, however there are some pages, such as the title page, for which headers and footers aren't wanted, and for these pages I've set ...
5
votes
1answer
428 views

Only show header if section number > 0

The current section name + chapter.section number is shown in the header. This is normal behaviour (what I want). Example: How can I remove the header text, if there is no section on the page. The ...
5
votes
1answer
1k views

Add chapter number in roman numbers using fancyhdr

I am trying to add the chapter number to the footer using fancyhdr. What I would like to do is have the chapter number in roman numbers and the page number in arabic together like so: VI - 8 This ...
5
votes
1answer
4k views

Remove Footer without removing the header

I created a header and footer using fancyhdr. I want to remove the footer from a particular page without touching the header. I tried changing the page styles but nothing worked. any idea?
5
votes
1answer
5k views

How do put a header inside the margins?

I have to create a document that obeys the following guidelines: "Margins must be set at a minimum of ¾" (1.87 cm); Your name must appear outside the set margins of the page, at the top ...

1 2 3 4 5 28