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

learn more… | top users | synonyms

1
vote
1answer
103 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} ...
3
votes
0answers
160 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, ...
2
votes
1answer
2k 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
383 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
207 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
195 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
170 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
286 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 ...
5
votes
2answers
633 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 ...
1
vote
1answer
785 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
371 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. ...
4
votes
1answer
334 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 ...
5
votes
2answers
1k 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
207 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
422 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
243 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: ...
5
votes
3answers
455 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 ...
7
votes
3answers
815 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
315 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
269 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
207 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} ...
2
votes
1answer
1k 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
420 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 ...
2
votes
1answer
158 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 ...
2
votes
2answers
224 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 ...
3
votes
2answers
889 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 ...
4
votes
1answer
212 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
433 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
37 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
340 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 ...
4
votes
1answer
701 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 ...
1
vote
1answer
3k views

How to re-define the chapter-mark without changing the Appendix heading?

The document is book class and the Appendix is added by: ... \backmatter \appendix \chpater{Appendix A} ... \chpater{Appendix B} ... Using fancyhdr: \usepackage[]{fancyhdr} \pagestyle{fancy} ...
3
votes
1answer
438 views

Customizing the header with fancyhdr

I am writing a report using the scrreprt KOMA class. Currently my header looks like this: Introduction is the chapter name. I would like to make two changes to it: I would like to have the ...
0
votes
1answer
293 views

How to write custom footer for some pages

I am using fancyhdr to hide header and footer in some pages but I also want to write custom footers for certain pages. Is there an easy way to do it? Or is there any way to put define text in the ...
4
votes
1answer
303 views

Section and subsection name in headings

I'd like to make the headings of my article look like this: <Section name> <Subsection number> <Subsection name> | <Page number> and I wrote this ...
6
votes
1answer
595 views

How to use short subsection title in header but not in table of contents?

I have a (onesided) document with fancyhdr and pagestyle fancy so it displays the section-title on the right header and the subsection-title on the left header. If section and subsection titles are ...
7
votes
1answer
2k views

\section and \subsection alternating in the header

Right now, I'm trying to finalize the layout of my diploma thesis - unfortunately I cannot figure out how to achieve the heading I want. I'm using the amsart document class and try to achieve the ...
1
vote
2answers
734 views

Setting page number with fancy without lastpage package

I am using the following code to generate footer with fancy to show the page number \documentclass[twoside,a4paper,10pt]{article} \usepackage{lastpage} \usepackage{fancyhdr} \pagestyle{fancy}% ...
2
votes
1answer
248 views

fancyfoot on the last page

On the last page of my document, I need to add Next Review Date: blah blah. If I add the text at the bottom of the document, there is a possibility that the text might appear on a new page on its ...
3
votes
1answer
1k views

Chaptername in header except for Chapter page using fancyhdr

I am trying to achieve a header that displays topic, chapter and page number on every page except on pages where a new chapter begins. In that case the chapter space should be empty. I use fancyhdr ...
3
votes
1answer
1k 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: ...
3
votes
1answer
2k views

Chapter title on even header and section title in odd header

I wanted to put the title of the chapter on even header and the title of the section of the chapter to the odd pages. My headers are now are using this code: \begin{document} \frontmatter % Use ...
4
votes
1answer
285 views

Change header and footer to only a group of pages

I would like to change the header and footer to only a group of pages in my document. I'm using the fancyhdr package with these settings: \usepackage{fancyhdr} \pagestyle{fancy} \makeatletter ...
1
vote
1answer
109 views

Error creating header fancyhead for oneside contents

I created my thesis and used this code to created heading. The document is setted to book class and oneside option. I got a page where both the left and right are number. Instead I would have the page ...
1
vote
0answers
40 views

Problem with fancyhdr [duplicate]

Possible Duplicate: sectionname + number in header with fancyhdr Uncustomised fancy page outputs at right head number and name of section. When I type \rhead{\thesection} it outputs just ...
1
vote
1answer
4k views

fancyhdr package not found

I'm trying to use the fancyhdr package for headers and footnotes for my LaTeX report, but when I compile TeX returns an error saying that fancyhdr.sty file can't be found. Any suggestion on how to ...
5
votes
1answer
457 views

Formatting page number (fancyhdr?)

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

How to make the page number appear on the abbreviation list?

does anybody know how to make the first page of the abbreviation list have the page number? My abbrev. list is made of 3 pages and only the other two have the correct page numbering (roman). The first ...
4
votes
2answers
4k views

Custom header/footer rules (fancyhdr?)

I want to be able to customize my header/footer so far that I can change the rules that separate it from the document. Look for example at http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf ...
1
vote
0answers
82 views

How to make the title centered with respect to the header line? [closed]

I have the following code for some document: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{..} \rhead{..} \begin{document} \begin{center} \Large{..} \newline \newline ...