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
0 votes
1 answer
29 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
94 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
35 views

minitoc overwrites headings in KOMA-Script [closed]

When I use the minitoc package with the scrreprt class of KOMA-Script, the \parttoc command modifies the headings set with the scrlayer-scrpage package \automark command. Is there a way to prevent ...
anonymous's user avatar
  • 105
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
38 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
79 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
34 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
30 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
63 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
  • 791
-1 votes
0 answers
30 views

fancyhead: how to add second image on header [duplicate]

I would add a second (and maybe third) image on my header, made by this command: \fancyhead[C]{\includegraphics[width=\textwidth,height=39mm]{% banner_a.png} Can I and how, insert a second ...
RenatoP's user avatar
  • 791
0 votes
0 answers
52 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
28 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
80 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
  • 791
0 votes
2 answers
48 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
37 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
23 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
22 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
29 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
33 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
32 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
31 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
34 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
68 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
61 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
62 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
68 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
63 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
75 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
29 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
61 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
69 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
  • 107
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
0 votes
1 answer
42 views

How does \ifthesection of titleps work?

The titleps documentation mentions: (Only titlesec. Not in titleps.) \ifthechapter{⟨true⟩}{⟨false⟩}, \ifthesection{⟨true⟩}{⟨false⟩},\ifthesubsection{⟨true⟩}{⟨false⟩}... which expands to ⟨true⟩ except ...
Atom's user avatar
  • 665
3 votes
1 answer
56 views

Table of contents : different page styles for first and subsequent pages

It's my first question. I read only answers and comments usually. Its work before =). So, question is how to use different styles for first and subsequent pages of TOC. I've written different styles ...
ZYRBAGAN's user avatar
3 votes
1 answer
45 views

Is it possible to add a large image with page number at the corner in the header?

As described in the title. What I'm trying to design is this: This screenshot is from my .docx document. I have extracted the upper-right image. However, when I'm trying to define the header, I got a ...
Isaac Wang's user avatar
0 votes
0 answers
33 views

How to add a header to an ACM article template

I need to add a header to the first page only on an ACM article template (see the red text on the top of the included image). This is an example code. Plz. can you help me add a header even if ...
None's user avatar
  • 319
2 votes
1 answer
33 views

Adjusting headrule in koma

I am trying to create a headrule which will start from page end on right side of the page and go till the start of text on the left side. I am facing two problems, the headrule goes all the way ...
Damitr's user avatar
  • 1,889
1 vote
1 answer
54 views

How to get the correct numbered and unnumbered headings with automark from sections added automatically with tcolorbox and addcontentsline?

I want to know if there is a way to get the correct section mark automatically when adding sections with \addcontentsline (wrapped into a \newtcolorbox). I tried to add \chead{#2} in the title of the \...
SENTiNEL's user avatar
4 votes
3 answers
106 views

using header adds random blank lines in text

Whenever I use headers (even something as simple as including the fancyhdr package without setting anything), random blank lines start appearing in my document, seemingly after lines that take up the ...
Jeffmagma's user avatar
  • 455
0 votes
0 answers
53 views

Can I generate a page with only headers and footers?

I tried generating a page with only headers and footers and I keep getting an error I can't even understand. The error is too verbose to attach but here's my code. It works perfectly if i attach even ...
fikunmi's user avatar
0 votes
1 answer
45 views

How to use natbib package and fancyhdr package together [closed]

Please how can I get to use fancyhdr package with natbib package. It happens that I can't use the two in my document, what can be wrong? and how can I correct that, please? \documentclass[12pt, ...
Memristor's user avatar
  • 119
0 votes
1 answer
50 views

Chapter header bugged through document

I'm looking to make a new book-like chapter format in which there's an image before the chapter's name and came up with a code by redefining chapter to do just that through a tikzpicture but now the ...
graograman's user avatar
0 votes
1 answer
40 views

Move down text in KOMA-Script header with picture

In my Document is a picture on the left side of the header (\ihead) and some text on the right side (\ohead). My problem is that the picture moves the text up from the headsepline and I have no idea ...
reneas's user avatar
  • 77
1 vote
1 answer
38 views

headsepline over whole width without moving \ohead

I'm trying to make it so the headsepline and footepline are spanning over the whole width of the page but the header and footer contents should not move to the side. My current approach looks like ...
reneas's user avatar
  • 77
0 votes
1 answer
47 views

Memoir: How to get starred sections into headers?

I have starred sections at the end of a chapter that do not show up in the headers. The MWE is: \documentclass{memoir} \usepackage{lipsum} \begin{document} \chapter{Some chapter} \section*{Some ...
user1362373's user avatar
  • 2,869
0 votes
0 answers
41 views

How do you avoid running hyperlinks that include the page's footer and header?

Please consider this MWE: \documentclass[paper=a6,fontsize=11pt]{scrbook} \usepackage{lipsum} \usepackage{hyperref} \begin{document} \chapter{My Chapter} \lipsum[2] \url{https://example.com/} \end{...
rmolina's user avatar
  • 183

1
2 3 4 5
84