2022 Developer Survey is open! Take survey.

Questions tagged [header-footer]

{header-footer} is about customizing headers and footers, i.e., choosing a page style for certain pages (e.g. empty, plain, headings) and (for the styles employed) placing information like the current section title and page number. Popular packages are {fancyhdr}, {scrlayer-scrpage}, {titleps}, and {scrpage2}.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 views

Header is lost when the new chapter starts at the same page

In order to save pages (there is an upper page limit for our books) i want (1) to start a new chapter immediately after the end of the previous chapter (namely in the same page) and furthermore (2) to ...
user avatar
3 votes
1 answer
25 views

Formula with superscript cut from header in Beamer

I am using Beamer and have a formula in the subsection headers. It contains a superscript but it is partly cut from the headers. I am using the seagull theme. What can I do to show the superscripted ...
user avatar
  • 51
0 votes
2 answers
34 views

Header not displayed for table of contents

The headline of my pages should look like this: And it is working as suppost for all pages, just not for table of content, table of tabels and the table of pictures. In this cases it looks like this: ...
user avatar
1 vote
2 answers
72 views

Remove the heading of the page where the figure is?

I need to insert a very large figure which will occupy the whole page, so I need to remove the heading of the page where the figure is. I do this with code: \documentclass[a4paper,12pt,twoside]{book} \...
user avatar
  • 449
0 votes
2 answers
66 views

Change the font size of chapters and sections in the header

I want to change the font size of chapters and sections in the page header, so that they are different from the font size of the text. What should I do? Below my file packages and commands: \...
user avatar
  • 1
0 votes
1 answer
15 views

What is making the headers to disappear in my document config?

I have the following config before the beginning of the document, however the chapter name headers are simply not there. There is no error message. \documentclass[12pt,twoside,leftblank]{mitthesis} \...
user avatar
  • 105
0 votes
1 answer
21 views

Problem formatting header and footer with fancyhdr

I am writing my thesis using \documentclass[12pt, oneside]{book} Using the document class 'book', I am automatically getting 'Chapter #' headlines which I don't want and have removed using titlesec ...
user avatar
0 votes
1 answer
33 views

Changing the Header

I want my header to look like this: How can I attach a short section title to a section? Is there a way to only display the title or the number of a section? My header code so far: \documentclass[...
user avatar
  • 1
0 votes
1 answer
41 views

Even and odd headers without fancyhdr

I just started to learn latex and I found these headers (I didn't manage to make them with fancyhdr) but I don't understand how to set even and odd pages here. Please help. I figured out how to change ...
user avatar
  • 3
0 votes
0 answers
22 views

The figure/(table name) is on the page header by use fancyhdr, How to solve it?

The is black line is page header line. \usepackage{fancyhdr} \usepackage{cctbook} in the preamble. \pagestyle{fancy} \fancyhead[CE]{\songti 一维二维}\fancyhead[CO]{\songti 为了部落} I insert the figure or ...
user avatar
0 votes
1 answer
27 views

Text header with background

I would like to draw the following image for my resume: How to draw this?
user avatar
  • 2,001
0 votes
1 answer
16 views

Set page numbering on specific pages

I have an article in which I'm using fancyhdr to make a header with section names and a footer on the right side of the pages. However I want to remove the header on some specific pages while keeping ...
user avatar
  • 1
0 votes
1 answer
40 views

Koma Classes: Add to Header

The running headers for my document appear too high on the page. The manual isn't clear as to where the switch should go (after scrlayer-scrpage? or as a class option? \documentclass[twocolumn,a4paper,...
user avatar
  • 1,667
0 votes
0 answers
44 views

Fancyhdr and Two Columns

Is there a conflict between the [twocolumn] option and the \fancyhdr package? The running header on the right side of the page throws the letter 'I' instead of a running header consistent with the ...
user avatar
  • 1,667
0 votes
0 answers
27 views

unnumbered Section* in Header without using chapter

\documentclass{article} \documentclass[12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper, left=2cm, right=2cm, top=2cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \...
user avatar
0 votes
1 answer
22 views

Running Headers Too Long

The running headers are occasionally too long, I tried using \sectionmark but it doesn't work... MWE: \documentclass[twocolumn,a4paper,10pt]{book} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{...
user avatar
  • 1,667
0 votes
1 answer
31 views

change the position of the beamer page numbering

I used \setbeamertemplate{footline}[frame number] in my beamer template but it destroys my original foot line. So, upon my search I found the following to add before the \begin{document}. It is what I ...
user avatar
  • 101
0 votes
2 answers
44 views

Section names in the header

I am writing my thesis report and I want to keep the section names in the header of the pages. Right now, the page number is at the center in the footer and I want to keep it in the same way. I have ...
user avatar
1 vote
1 answer
37 views

\@abspage@last fails to typeset number in header

I tried to typeset the total pages number in right header by \@abspage@last under pagestyle fancy. Instead of number, the text abspage@last is printed. Why? And how to deal with it? MWE: \...
user avatar
  • 2,213
3 votes
1 answer
55 views

How to center lines of text using fancyhdr

Illustrating a minimal example: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Short Name \\ Really long Name} \chead{Title} \rhead{Date} \begin{document} | \end{document} ...
user avatar
  • 337
2 votes
2 answers
44 views

Headers not aligned with the text frame

I have the following preamble that tried to customize the headers and footers. However, I found that the package babel seems to cause the headers on the left page not aligned with the text frame. How ...
user avatar
  • 305
3 votes
1 answer
45 views

Formatting \pagemark with LaTeX

I am customizing my headers and footers with the document class scrbook. Now everything works fine except that the \pagemark doesn't get formatted as intended (i.e., gray color, letter-spaced, etc.). ...
user avatar
  • 305
0 votes
1 answer
22 views

Footer spacing inconsistency with fancyhdr

I'm using the fancyhdr package with multiple columns. As you can see from the image bellow, the text spacing is inconsistent. I've tried to use \footskip in the geometry package and looking online, ...
user avatar
1 vote
2 answers
97 views

Formatting headers with LaTeX

I came across a document on the Internet and found the headers used in this document are very appealing to me. How to make a header with the format: <chpater-name> | <page-number> and ...
user avatar
  • 305
0 votes
1 answer
25 views

Why changing page footer content draws a line to the top of the page

I wanted to change my footer content so it would be a text I chose instead of the page number. But making this change draws a line to the top of the page. How to get rid of it? Here is the code: \...
user avatar
  • 27
1 vote
0 answers
42 views

Wrap text around an image (logo) placed in every page

I'm trying to help out the founders of a new open access journal called Seeds of Science to translate their article template from Word to LaTex. The top of every page should look like this: My rough ...
user avatar
  • 11
1 vote
1 answer
52 views

Format full header with figure and plain background

I want to configure my page header such as I've tried using the eso-pic package suggested in this answer, but it seems like it doesn't allow add images or text too. \documentclass[letterpaper,12pt,...
user avatar
  • 13
0 votes
1 answer
40 views

TOC not compatible with automark on two-sided document

I am trying to make a two-sided document with section names in the header of even numbered pages, and subsection names on odd numbered pages. The odd numbered pages on which my sections start shall ...
user avatar
  • 1
0 votes
1 answer
69 views

Elegant way of creating a document class that changes between styles back and forth

I would like to create a book class, say class.cls, such that It automatically acquires some style depending on the location of the code inside the main document. Something like one style for each: \...
user avatar
  • 269
0 votes
1 answer
43 views

Customising Overleaf Template

I guys, I am using this technical report template that I consider robust and well built. I tried to change the template adapting it to my needs and I managed almost in everything, except for two kind ...
user avatar
  • 247
0 votes
1 answer
23 views

Page number always centered in automatically generated TOC

I have a setup where my page number is always on the bottom right side on the page, I do this with: \usepackage{fancyhdr} \pagestyle{fancy} \fancyfoot{} \fancyfoot[RE,RO]{\thepage} However, when I ...
user avatar
  • 1
0 votes
1 answer
29 views

Header width is smaller than longtable width

I have been trying to create a longtable using a csv. But I can't find out why the header width is smaller than the table width. The data is the following: Nombre,Frec,Prop Eixample,3106,0.2640 Sant ...
user avatar
0 votes
1 answer
28 views

How to get page number to the right of \textwidth

I would like to set my page numbers to the bottom right to the right of \textwidth. I have a couple figures that have long footnotes and the page numbers are currently on top of this. While not ideal, ...
user avatar
  • 411
0 votes
1 answer
35 views

Chapter name on the left and section name on the right in the header

I am trying to add a header on the top of each page of my document. I want to have each chapter's name on the left and section name on the right (flushrigt). \documentclass[12pt, a4paper]{report} \...
user avatar
  • 67
0 votes
1 answer
42 views

Shortening Author's Name and Presentation Title in a Metropolis Footling

Using Metropolis beamer, I want to add a shorten version of my name and the presentation title. if I apply the code: \documentclass{beamer} \usetheme{metropolis} \title{The title of the presentation} ...
user avatar
  • 51
0 votes
0 answers
26 views

fancyhdr not working with wrapfigure on page? [duplicate]

I am using fancyhdr to specify the header and footer of my document. Everything works fine until I try placing a wrapfigure environment on the page as below: \begin{wrapfigure}{r}{0.3\textwidth} \...
user avatar
0 votes
1 answer
57 views

How to have a footer without any data in Latex?

I want to have a footer in my latex document but without any data in it. I only want to have a line as my footer. Is it possible to have something like that ?
user avatar
0 votes
2 answers
35 views

How do you change fancy page numbering style after specific point in report?

I'm writing a report in which I want to have separate numbering styles before and after the introduction. For the executive summary and toc I want to have no page numbering, and following this (up to ...
user avatar
  • 115
0 votes
2 answers
43 views

How to make the setting fancyhdr for \frontmatter is same as for \mainmatter?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \let\Chaptermark\chaptermark \def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} \fancyhead{} \renewcommand{\headrulewidth}{...
user avatar
0 votes
1 answer
17 views

Problem with importing logo in footer

I wanted to use this answer to insert my own logo instead of the bluish grid example logo here using the following codes unsuccessfully: % Assemply of the footer four boxes to \Fframex \JoinCoffins*\...
user avatar
  • 141
0 votes
0 answers
30 views

How to hide the text "REFERENCES" in header?

\documentclass[twoside,11pt]{book} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry} \usepackage{hyperref,natbib} \markboth{}{} \begin{document} \def\bibname{...
user avatar
0 votes
0 answers
19 views

How to make title book is right aligned in footer?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \let\Chaptermark\chaptermark \def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} \fancyhead{} \renewcommand{\headrulewidth}{...
user avatar
0 votes
1 answer
24 views

Show chapter title in the footer with first letter of word is uppercase

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \let\Chaptermark\chaptermark \def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} \fancyhead{} \renewcommand{\headrulewidth}{...
user avatar
0 votes
2 answers
44 views

How to make the box page number is in line?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \fancyfoot{} \colorlet{myfancycolor}{black} \fancypagestyle{mystyle}{ \...
user avatar
0 votes
0 answers
30 views

No page numbering is appearing when using fancy header and subfile packages?

I know this topic is the subject of numerous posts on this forum. I have read through them, but I don't really understand the answers and they haven't been working for me. Furthermore, I am also using ...
user avatar
0 votes
0 answers
32 views

Some issues with section and chapter headers and equation numbering in amsbook

Using the MWE: \documentclass[11pt,twoside]{amsbook} \usepackage[width=17cm, left=2.25cm]{geometry} \usepackage{etoolbox} \usepackage{titlesec} \usepackage{scrextend} \usepackage{hyperref} \...
user avatar
  • 1,105
1 vote
1 answer
72 views

Title and Author Name under every Slide in Metropolis Theme

I would like to know how I can add my presentation title, its date, and my name in footline of every slide using Metropolis theme, just like in Warsaw or Madrid themes, for example. Thanks in advance!
user avatar
  • 51
0 votes
1 answer
62 views

horizontal and vertical Headers in long table

this is the output of my Stata code. I have two main problems with my table. First, I want to include horizontal vertical headers like in the desired picture and second, I want to fit my long table ...
user avatar
  • 305
0 votes
1 answer
40 views

How to add indent such that the section is shown in the right of page number?

\documentclass[twoside,11pt]{book} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry} \usepackage{fancyhdr,xcolor,lipsum} \fancyhead{} \fancyfoot{} \colorlet{...
user avatar
0 votes
0 answers
25 views

Empty memoir header

In my book I use the memoir class and the code for even and odd page header is as follows: \makeevenhead{mystyle}{{\large{\color{evenPageColor}{\textbf{\thepage}}}}$\ \ \ \ $ \color{evenTextColor}{\...
user avatar

1
2 3 4 5
78