Skip to main content
Share Your Experience: Take the 2024 Developer 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
19 views

Having page numbering with total for every chapter in footer of KOMA-scrreprt with scrlayer-scrpage

I'm using KOMA-class "scrreprt" for creating a long and complicated document, consisting of different separate documents like contracts and information. So far, everything worked out well. I'...
Leandro's user avatar
  • 59
0 votes
1 answer
15 views

Beamer changing footline

I'd like to change footline in beamer presentation. Now I am using this code to change it: \makeatother \setbeamertemplate{footline} { \leavevmode% \hbox{% {\small \hspace*{.15cm}\...
Michał Szymankiewicz's user avatar
0 votes
0 answers
27 views

removing section heading from reference pages [duplicate]

The last section heading is appearing on all reference pages in my project. I tried \section* but the problem is not going away. How do I take this out? \section*{Areas of further study} \begin{...
FOMUM NDE ROLAND's user avatar
0 votes
0 answers
21 views

Memoir epihead command discards footer

I'm trying to use the memoir class for a document, but I can't add an epigraph in the header using epihead, as that discards a required footer Is this command changing the style, I've seen \...
T.D's user avatar
  • 147
0 votes
0 answers
40 views

Question about arabtext

I have a problem with following code of arabtext. In fact, the title of the chapter is not written on the top of each page. Thank you in advance for the help. \documentclass[12pt,leqno,oneside,...
rosi's user avatar
  • 1
3 votes
2 answers
140 views

Text Overflows The Footer

Here as you can see the texts are overflowing the footer, I have no problem with the header. I tried setting footer height but it didn't work. \documentclass{article} \usepackage[a4paper, margin=0....
Barbaros Teoman Kosoglu's user avatar
4 votes
1 answer
130 views

How to change shapes and traits of horizontal lines in headers/footers?

I was just browsing through this site, searching for ways to change the shapes of horizontal lines in headers/footers out of curiosity, but I could only find questions relating to changing their color....
Atex's user avatar
  • 188
0 votes
0 answers
28 views

Footnotesep not doing anything

I´m trying to move down the footnote relative to the main text body, but it won´t move. I´m using geometry so i tried footnotesep but it doesn't work. I´m also using fancyhdr which might be ...
MahoneyTree's user avatar
0 votes
1 answer
18 views

Header - Page number and text does not fit

i am a bit confused how to change my headers so that it fits. I would like to have a header where on odd numbered pages the page numer is on the right and the chapter (not section) name is on the left ...
Selina Rml's user avatar
1 vote
1 answer
29 views

Beamer page numbering without animations

When I give presentations I usually organize my frames in the following way: I create one frame about some topic, shown in the title Inside that frame, I create one slide for each sub-topic with the ...
LucioPhys's user avatar
0 votes
2 answers
34 views

Aligning long section names to the right side in the header

I'm trying to finish my thesis but I face some problems regarding text alignment in the header. I use the fancyhdr package and I want the chapter positioned on the left side and the section on the ...
Johannes's user avatar
0 votes
2 answers
35 views

Default not working for new command

\newcommand{\initialize}[2][tmargin=1in, bmargin=1in, right=0.75in, left=0.75in]{ \geometry{#1} \ifthenelse{\equal{#2}{}}{\setboolean{indent}{false}}{\setboolean{indent}{true}} \...
xyz04's user avatar
  • 137
0 votes
1 answer
30 views

Fancyhdr doesn't work on first page

Fancyhdr doesn't seem to be working on the first page of my document. My preamble: \pdfminorversion=7 %For the inclusion of pdfs \documentclass[11pt]{amsart} % Packages \usepackage{amssymb, amsmath, ...
Clyde Kertzer's user avatar
0 votes
0 answers
35 views

pagestyle doesn't affect on last page

I use 3 page styles : one for title, 2nd for toc , lof, lot and 3rd for document content. I understood (with many pain) that every chapter/toc/lof/ ... have especial style plain. And if toc spread on ...
ikif's user avatar
  • 39
0 votes
2 answers
41 views

How to set a image in the header via fancyhdr?

I am veeery new to LaTeX but I am encountering a very weird issue, because I need to have the header, on only the first page, as shown in the screenshot. And the Univeristy provided a rectangular ...
ANunzi's user avatar
  • 1
1 vote
2 answers
49 views

Short title running and Author running in article class

I try to add short title running on the even pages and author running on the odd page in a document, using this code: \documentclass[11pt]{article} \usepackage{lipsum} \title{\bf THE TITLE} \author{...
Cris's user avatar
  • 1,201
0 votes
1 answer
50 views

Seek for a particular header design

This is a follow-up to the question I raised 2 days ago. My latex template is \documentclass{book}. What can I do to make the headers of all pages (no matter of even or odd) centered to show the ...
hmeng's user avatar
  • 147
0 votes
1 answer
97 views

Seek for help of a particular chapter design

Can anyone help me realize the chapter design shown in the figure? Thank you I am trying to use usepackage titlesec, but I have trouble mimicking the style in the figure. The following is my code. Can ...
hmeng's user avatar
  • 147
0 votes
0 answers
22 views

Unexpected Font Change in Header When Compiling LaTeX Document Locally with TeX Live

I'm using the ctexart document class for my LaTeX document. Recently, I noticed that the font of the header in my document has changed from the default KaiTi (楷体) to SongTi (宋体). I haven't made any ...
YKWTII's user avatar
  • 1
0 votes
1 answer
41 views

Table as a page header

I started using Overleaf this year for my lab reports, and I am wondering if there is a way to use a table as a header. I have tried pasting Excel data into a table generator, but this hasn't worked ...
Luis Franco Hermoza Navinta's user avatar
2 votes
1 answer
94 views

The commands openany and oneside in the book document class

I have the following code \documentclass[12pt,a4paper,oneside,openany]{book} \usepackage[utf8]{inputenc} \usepackage[left=1in,right=1in,top=1.25in,bottom=1.25in,headsep=30pt,heightrounded] {...
Hussein Eid's user avatar
2 votes
1 answer
35 views

How to appear the chapter name in the header of an odd page if the chapter does not contain section [duplicate]

I have the following code \documentclass[12pt,a4paper,openany]{book} \usepackage[utf8]{inputenc} \usepackage[ left=1in, right=1in, top=1.25in, bottom=1.25in, headsep=30pt, heightrounded ]{...
Hussein Eid's user avatar
0 votes
1 answer
33 views

How to place header in the corners of the page and align text with the left of the page

I'm trying to replicate the pagestyle of Griffiths's book: What I curently have is this (the text is in spanish, ignore it) I need help to place the headers at the corners of every page and to place ...
Peluche's user avatar
  • 613
1 vote
2 answers
67 views

fancyhead: how to have 1 background image and twovforeground image

with this code: \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage{fancyhdr} \title{fancy} \author{xxx} \date{March 2024} \fancyhead[C]{\includegraphics[width=...
RenatoP's user avatar
  • 841
0 votes
0 answers
54 views

Table of contents and headers style

I have to write my paper in the same style as a book from my teacher. Most things are easy to do, but i have a hard time getting the table of contents and the headers right. I tried to create a header ...
Tim W's user avatar
  • 1
0 votes
1 answer
32 views

Set a fixed width for footer/header with fancyhdr

I'm using the geometry package for settings like textwidth and margins. fancyhdr uses the initial text geometry setting. Through my document I also change the geometry of the text layout (i.e. not the ...
telephone's user avatar
  • 127
-3 votes
1 answer
82 views

how to add some text in the preamble [closed]

this is my preamble: \documentclass[a3paper,12pt,portrait]{article} \usepackage[Italian]{babel} %--setta regole lingua italiana \usepackage[ddmmyyyy]{datetime} %--setta data formato IT \...
RenatoP's user avatar
  • 841
0 votes
2 answers
53 views

Chapter and section

I'm writing my thesis (i choose report class) and I'd like to have chapters looking like this: 1 Introduction I mean I want only chapter number and title in one line. Furthermore I'd like the left ...
Michał Szymankiewicz's user avatar
-1 votes
1 answer
38 views

Align logo in the footline with the ones in the header in beamer

I am using a template from overleaf: https://www.overleaf.com/latex/templates/yet-another-beamerposter-theme-with-variable-sizes-and-colour-themes-landscape/tcwvmhjsfbdk I did a few changes and I came ...
user316338's user avatar
-1 votes
1 answer
26 views

Images in the footnote in beamer poster

I am using this template from overleaf: https://www.overleaf.com/latex/templates/yet-another-beamerposter-theme-with-variable-sizes-and-colour-themes-landscape/tcwvmhjsfbdk I'd like to put one logo in ...
user316338's user avatar
0 votes
1 answer
31 views

Images in the header in beamer poster

I am using this template from overleaf: https://www.overleaf.com/latex/templates/yet-another-beamerposter-theme-with-variable-sizes-and-colour-themes-landscape/tcwvmhjsfbdk I'd like to put two logos ...
user316338's user avatar
2 votes
1 answer
30 views

LyX: pdflatex does not put both header and footer text with page number

Using TeXLive/2023 (updated today) on Slackware linux and LyX-2.3.6.1. The document class is KOMA-Script Report. I used to have the pdflatex output display text in the page headers and footers with ...
Rich Shepard's user avatar
2 votes
1 answer
36 views

Trigger code in para/begin hook for a precise paragraph

I made a simple system of multiple levels paragraph counters using the para/begin hook: \documentclass{article} \usepackage{lipsum} \usepackage{expl3} \usepackage{xparse} \usepackage{fancyhdr} \...
Antony Geedies's user avatar
1 vote
2 answers
60 views

In book class, how to create "top of page headers" that differ slightly from those I get if I do just nothing. My effort to do this is commented out

\documentclass[english,11pt,twoside,openright]{book} \usepackage[fleqn]{amsmath} % \usepackage{amsthm,amssymb} % \usepackage{fancyhdr,fancyref} % \usepackage{xcolor} % \usepackage{colortbl} % \...
keith77777's user avatar
2 votes
1 answer
37 views

How do I create a text-wide colored box with proper spacing in the footer of a two-sided KOMA-Script document?

Here is the scrbook-class MWE of my current approach: \documentclass[% twoside, DIV=12, headsepline=1.2pt, footheight=30pt ]{scrbook} \usepackage{scrlayer-scrpage} \usepackage{xcolor} ...
Amanuensis Frances's user avatar
0 votes
0 answers
34 views

Automatically setting page style to plain when the page starts with section title

I'm writing a document where I don't use page breaks before starting a new section. This means that sometimes, a section will start in the middle of the page, while other times it will start at the ...
Nickesponja's user avatar
0 votes
0 answers
36 views

Geometry package page dimensions do not scale properly

I am trying to create a latex document on overleaf web editor, there are fixed requirements for the dimensions of the document and when I use the geometry package and set those dimensions and then ...
jones871's user avatar
1 vote
0 answers
80 views

How to create a Header for a doctor's prescription

I'm a doctor and I was hoping to do my electronic scripts using XeLateX. I've been looking on how to do headers for letters. Below is a picture of how my current header layout is for written scripts, ...
Coenraad van Schoor's user avatar
0 votes
2 answers
63 views

Help with simple book layout

I'm new to latex and I just need a bit of help with my book layout, should probably be an easy question to solve. I need to fix three things: Chapter format When I do \chapter{name}, the chapter ...
0x49fa98's user avatar
0 votes
1 answer
64 views

How to skip enough space between headnotes using fancyhdr?

I've tried many hints however, none of them worked. Would you help me to fix this? Another thing, please, how can I add a rule under every headnote in every page? I am using the preamble below: \...
Francesca's user avatar
0 votes
1 answer
76 views

breakable tcolorbox inside a tcolorbox (and margin issues)

Hello, as the simplified picture above shows (the colors are a bit different with my output below, it's okay), I want to produce an a5paper, it's probably not the smartest code but I wanted the header,...
stargazer45's user avatar
1 vote
1 answer
49 views

How make the footer under the pages of the new chapters?

Here's my current code: \documentclass[11pt]{book} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage{bm} \usepackage{color} \usepackage{CJK} \usepackage{...
Jacky Wang's user avatar
0 votes
1 answer
52 views

What i do use for specify title name in header-folder

How can I specify the title name of the header in the footer if I use \setfoot{}{}{}. \documentclass[14pt]{article} \usepackage[russian]{babel} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} ...
PutilovSy's user avatar
0 votes
1 answer
66 views

Change headline and footline for section page

I've started to write my own beamer theme. Now, I would like to style the section page and the subsection page with a coloured background, while the rest of the pages have a white background. Headline ...
neydiju's user avatar
2 votes
1 answer
104 views

Formatting 30 columns table - table header over multipages

I'm trying to build a big latex table. The table has 30 columns. I use \longtable in latex in this code for the table that I'm presenting to you. Can anyone help me reproduce the large table as in the ...
emile nana's user avatar
2 votes
1 answer
82 views

How to set same template for every page using KOMA-Script

Thank you for any help in advance! I want to set up an a5 document in this way - where every single page looks this way except the page number changes. I just want to add the notes in the middle of ...
user292225's user avatar
0 votes
1 answer
31 views

space between signature line and regards — increase available space between footer and text

I'm going to submit a cover letter and I found this formula and style for closing which I quite like; however, for some reason, I cannot force the space between the signature line and the regards to ...
Matteo's user avatar
  • 163
0 votes
1 answer
66 views

How to add footer to newspaper template

I am using the newspaper template to typeset a newspaper. My results are here Qestion: However, I would like to have a footer as shown in the authors example: see highlighted with yellow . There I ...
C Marius's user avatar
  • 101
1 vote
1 answer
73 views

How to print verse numbers in header, not line numbers, when using reledmac?

I am typesetting a biblical text and would like to print the range of verses on each page in the header. I have been able to replicate this in a regular text. However, I run into problems when using ...
jejb's user avatar
  • 97
1 vote
1 answer
28 views

Why need to redefine `main` pagestyle even if another pagestyle is in use?

This answer explains how to center the page numbers on the chapter pages, which are not centered even after the following MWE: \documentclass{book} \usepackage[pagestyles]{titlesec} \usepackage{...
Atom's user avatar
  • 665

1
2 3 4 5
84