Stack Exchange Network

Stack Exchange network consists of 175 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
27 views

Wrong orientation of body box

I am using the fancyhdr package to create a specific headline and footline. My code: \begin{document} \renewcommand\headrule{\textcolor{gray!60}{\rule{\textwidth}{.5pt}}}% \renewcommand{\...
0
votes
1answer
27 views

how to make different header & footer setup for first page & rest of the pages in same document

I need to bring different header & footer contents in first page. what package can i use for this process. \documentclass[twocolumn, 9pt, a4paper]{extarticle} \usepackage{titlesec} \titlelabel{\...
2
votes
1answer
37 views

After \cfoot command every page is getting the same footer despite of specifying \thispagestyle

I am using fancyhdr package, I want some pages of my document to have a specific footer which I managed to do with the help of \cfoot. I'm using font Marathi. But after that page every page has got ...
3
votes
2answers
20 views

Bibliography as chapter (in ToC, fancyhdr) in book document class

I want my bibliography to be treated as a chapter with class book, but right now it's being treated as a section of the previous chapter (the LE header is of the previous chapter, and it's not bolded /...
1
vote
1answer
48 views

Centering Fancyhdr leftmark and right mark

I would like to know how it was possible to center the chapters and sections marks (I don't know if they call it that) with this (MWE) code \documentclass[10pt,twoside]{book} \usepackage{lipsum} ...
4
votes
1answer
40 views

Change the color of the header line

The answer to the question fancyhdr - Change horizontal line color on top of footer is not completely satisfactory, because it changes the position of the header line, for example with this example. \...
1
vote
1answer
19 views

Capitalization of acronym in header

I'm using the short form of an acronym defined using the glossaries package in a section title. To properly capitalize the title, I'm using the \Acs macro. This works fine for the actual section name. ...
0
votes
0answers
20 views

titlesec makes fancyhdr mistreating the document class

MWE is pretty simple: \documentclass[twoside]{article} %\usepackage{titlesec} \usepackage{fancyhdr} \begin{document} \pagestyle{fancy} \section{tist1} \subsection{a} \newpage \subsection{b} \end{...
3
votes
2answers
44 views

Is there a way to make fancyhdr with pagestyle fancy to be compatible with Chinese language?

I successfully can compile with Chinese characters in my documents using CJKutf8. However it makes all my files, that use fancyhdr with pagestyle fanc to throw encoding related errors during ...
0
votes
0answers
22 views

\headrulewidth{0pt} not working on the first page of a chapter!

I'm trying to customize the headers/footers of my document so that I can have three diferent versions: fancy, index and plain. For the fancy ones I have this code: \renewcommand{\headrulewidth}{0....
0
votes
0answers
21 views

Fancyhdr and algorithm2e line adjustment

I uploaded a picture below. The lines of the algorithm is longer than the header, and I wish to shorten the lines of the algorithm so it would be the same length as the header line. Is there a way of ...
0
votes
1answer
44 views

My header changes color on pages that start with a section

Im writing a report (in LaTeX) for which a made a header using fancyhdr. The text in my header is suppose to be black and the line is colored. However at some pages my headertext is colored as well, ...
1
vote
1answer
27 views

my header disappears when using maketitle

\documentclass[12pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} %\inputencoding{latin1} \usepackage{fontspec} \usepackage{array} \usepackage{covington} \usepackage{tipa} \...
1
vote
1answer
32 views

Twoside documentclass: Underfull \vbox (badness 10000) has occurred while \output is active

I'm using the documentclass article with the option twoside in order to customize the header and the footer for even and odd pages with the fancyhdr package. The compilation works, but the problem is ...
2
votes
2answers
86 views

Capitalize first letter of words in chapter mark

I would like to capitalize the first letter of several words in the chapter and the chapter mark. While text in the chapter itself is capitalized, in the chapter mark it is not. Here is a MWE of my ...
2
votes
2answers
164 views

To be or not to be - Optional arguments inside definition of macro

The version A part in the following example is to define header/footer by macros from package fancyhdr. Though this version is workable, it's a awkward achievement because the same part of code(\...
0
votes
1answer
44 views

Fail to renewcommand contentsname if \pagesty{fancy} is introduced

When I customize the \contentsname with \renewcommand, I find that the existence of \pagestyle{fancy} or \thispagestyle{fancy} will cause compile fail. I can't understand this. why? Is this a problem ...
0
votes
0answers
35 views

Placing header and footer on first page but only footers on all pages

Im trying to place a fancy header and footer on the first page, but can't seem to figure out how to place my footers on all pages as well. I tried to find the page break and inserted a \fancyhead{} ...
0
votes
1answer
20 views

Latex Fancyhdr For Specific Page [duplicate]

I am writing a report with a number of chapters. I would like each chapter to have a figure above the name of it, which differs depending on a chapter. I got a figure to display above the chapter name,...
1
vote
1answer
49 views

Issue with acro and fancyhdr package in xelatex - Using acronyms in section titles

Intro Recently, I was plagued by an issue with the acro package, while writing my thesis with xelatex. My document uses the fancyhdr package, where I set the section title to appear at footer. The ...
2
votes
2answers
82 views

\thispagestyle has no effect if no page broken(\clearpage, \newpage) is given

At a certain position in the article, the page that it belongs, need a special fancy style which I do by \thispagestyle from the package fancyhdr. In my example as shown in the MWE below, the page, ...
0
votes
1answer
40 views

fancy header not working with \include

I am using fancy header to insert the chapter title in the header of each page, as shown below. It works properly for the table of contests and lists of figure/tables, but when it comes to the ...
1
vote
1answer
40 views

header/footer only on the current page, or also its following pages

I define a macro named \pagecurrent which will be used in other macros related to header and footer, e.g. \cfoot, \chead, \renewcommand{\headrule}.... It's function is to determine whether the action ...
0
votes
2answers
31 views

How to eliminate the 'Chapter' in the header

everyone, I'm using this particular type of header. I like it, except for the fact that it adds the expression 'Chapter #.', which is a nuisance. I don't want the expression because on the preface ...
0
votes
1answer
24 views

How to set the new margin on the next page?

I have a large footer that needs to be placed on the first page of a document. To make it fit, I've used the geometry package and increased the bottom margin. For the header/footer manipulation, I'm ...
1
vote
1answer
50 views

Page number does not appear on first page of table of contents, list of figures and list of tables

When I do my table of contents (TOC), my list of figures (LOF) and my list of tables (LOT), something strange happens, only the numbering of the page appears from the second page of the table of ...
0
votes
2answers
43 views

Using different fonts for theorem label in header

In the accepted answer to Put current theorem-like item's name/number in header it's shown how to put the label of the current theorem in the header. Is there a way to use two different fonts for the '...
0
votes
1answer
22 views

Setting first section of a page as the section in heading

I'm using the fancyhdr package for my heading, and I want the section name in the heading to show the first section that appears in the current page. For example, if I have three sections in one page ...
0
votes
0answers
32 views

Header format changes after TOC and affects the whole document

I'm having my page numbers on top right of the document, but it seems to forget all the formatting when it reaches \tableofcontents and lof and lot as well, and all the remaining pages are back to ...
1
vote
1answer
27 views

How Can I Set A Custom Header or Footer to Appear With a Specific Float?

This question: How to set the pagestyle on the page a particular float ends up on? Almost answers my question, but not quite. The floatpag macro \thisfloatpagestyle can set a custom footer for a ...
0
votes
0answers
33 views

How to insert part name in header (without titlesec)

I need to get part name to insert it in some special pages (parts beginning pages), without using \titlesecpackage, but I haven't been able to get it until the moment. I tried defining a special ...
0
votes
0answers
22 views

Create page by page

Is possibile in latex to create page by page and don't leave latex create them automatically for me? I am asking this because i want to print different header for each page.
4
votes
1answer
93 views

Title with the header in critical edition

i'am a newbie and this is my first question about latex! I would like to know if it was possible to create, in a critical edition, a sort of chapter counter, sections etc. of the text and print them ...
1
vote
2answers
52 views

fancyhdr is the same for even and odd pages

I'm trying to have different headers and footers for even and odd pages using fancyhdr. For even pages headers, I want on the left to be the chapter title and on the right the section I'm in For odd ...
0
votes
0answers
22 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
48 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
27 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
32 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
75 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
95 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
42 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
34 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: \...
3
votes
2answers
61 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
37 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
135 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
37 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
52 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
60 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
vote
0answers
37 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} ...