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 [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}.

0
votes
0answers
10 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
17 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,...
0
votes
1answer
22 views

Twoside Header Formating

When switching to double side format (using the university document class) \documentclass[12pt,phd,a4paper,twoside]{ucl_thesis} the header on all the even pages switches from Section to the Chapter, ...
0
votes
1answer
21 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 ...
2
votes
1answer
18 views

How do I add a table as a Header for every page?

I want to add a table as headers to all the pages (except title page) in my document. I tried this: \usepackage{fancyhdr} %... \chead{ \begin{tabular}{l|r} Lorem&Ipsum \end{...
0
votes
0answers
21 views

How to change the color of the header and footer horizontal lines? [duplicate]

I want to change the color of the lines (i think they are called "rules" in latex) after the heading and before the footer in every page of my report. I used these commands to add them but i couldn't ...
2
votes
1answer
45 views

Scrreprt - Show Pagenumbers in TOC-Pages when using scrlayer-scrpage

I'm writing a report with class scrreprt and wanted to use scrlayer-scrpage for the headlines of each page. However today I noticed, that the pagenumbering on all toc- and listoff-pages disappeared. ...
0
votes
2answers
42 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
0answers
58 views

Headers using titleps (and titlesec) don't work with custom section command in twocolumn mode

I am introducing a new (custom) sectioning command (called \subchapter) using the titlesec package. I am also using titleps (or more accurately the pagestyles option for titlesec) to put the title of ...
1
vote
1answer
26 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
44 views

Page length exceeded

I am writing a paper for a journal and by the time I try to build a pdf version, I realized the length of each page is shifted down. Here I attached a snapshot an here is a link to the Journal's latex ...
3
votes
1answer
30 views

How to add a continuous line at the end of every caption?

I am new to lyx. I would like to know what should i write in the LaTeX preamble of the document to add a continuous line at the end of each caption and another line to separate the foot from the text (...
0
votes
1answer
32 views

Job aborted when changing headers using \renewcommand{\chaptermark} in memoir

I'm having problems compiling a file that I can't make sense of. So far, I think the problem has to do with changing the headers using \renewcommand{\chaptermark} and \renewcommand{\sectionmark}. When ...
14
votes
3answers
2k views

Extreme paper space saving, very small margins, how to lower the page number

Note to would-be closers : This question is different from this older question in my view because 1) none of the answers in that other question deal with page numbering and 2) I do not need ...
0
votes
0answers
26 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
1answer
12 views

Removing top margin above part ToC

I'd like to ToC generated by \parttoc start at the top of the page, removing the default top margin, without using \titlesecpackage. I was be able to remove top margin from a general ToC, but not from ...
0
votes
0answers
16 views

Aplying pagestyle to ToC of a part

Creating ToC of parts using \parttoc, I'd like to be able to define pagestyle of ToC generated. In the next code, I have been able to define a pagestyle to every page I wanted, except to ToCs of parts....
1
vote
1answer
45 views

Front page of a paper review

I have to write a review of a scientific paper, and my teacher wants me to write title, journal name, volume, number, pages, year, authors and their affiliations. By now I got to this: \...
1
vote
3answers
40 views

How do I put some space over and under my header and footer pictures?

So, I want a picture in my page headers, and one in my footer. This is the code I have: \documentclass[12pt,a4paper,oneside,article]{memoir} \usepackage{lipsum} % for lipsum text \usepackage{eso-pic}...
0
votes
2answers
31 views

How to add the source of the current page to the footer in a beamer theme?

So, I am using the beamer-theme metropolis (if that matters), that has only the slide number in the footer by default. I added the author with the following: \usetheme{metropolis} \setbeamertemplate{...
1
vote
2answers
46 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 ...
1
vote
1answer
22 views

\newgeometry is not remembered when writing a new page

I'm using the package geometry to customize my document. I specify the geometry I want using \newgeometry after a title that I will make later. If I do that using the code below, the first page is ...
2
votes
3answers
116 views

How to adjust the page number position in the footer area in ConTeXt?

I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt: MWE \setuppapersize [A4] \setuplayout [header=0pt, margin=0pt, ...
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
47 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
23 views

Page headers for glossary in arsclassica

I cannot find a good way of making page headers of glossaries-extra’s glossary formatted in ʟᴏᴡᴇʀᴄᴀsᴇ sᴍᴀʟʟ ᴄᴀᴘs that is default format for arsclassica’s chapter (i.e, left-hand side pages) and ...
2
votes
0answers
34 views

Align Header with Text/Type Area in KOMA but let Page Number bleed into Margin

Consider this MWE: \documentclass[twoside]{scrreprt} \usepackage[automark]{scrlayer-scrpage}% \clearscrheadfoot%clear default \lehead{\llap{\pagemark\enskip\rule[-2ex]{1.5pt}{4.5ex}}\enskip\...
1
vote
1answer
28 views

Changing hyperlink color changes beamer section header colors

When I use \hypersetup to change the link colors for the outline of my presentation, it also changes the colors of the section and subsection titles in the header. I have some code that I believe ...
1
vote
0answers
15 views

Section title appearing twice in header [duplicate]

With the following code the Section Title "Section" appears twice in the header -- once for the first page, once for the other three pages. It seems to me that this is a bug. \documentclass{beamer} \...
0
votes
0answers
27 views

How to make references with empty page style?

I am preparing my PhD thesis, and I am sharing with you this MWE ( i hope this time is compilable). \documentclass[a4paper,12pt,oneside]{book} \usepackage[a4paper]{geometry} \geometry{lmargin=1....
0
votes
2answers
34 views

KOMA-Script: How to put text dirctly under headsepline?

How can I put some centered text directly under the headsepline? \documentclass[fontsize=14pt]{scrreprt} \usepackage[margin=1.75cm, includefoot, includehead, showframe=false headheight=2\...
0
votes
1answer
28 views

Adjustment of header and footer [closed]

I have adjusted my text, so it's like an A4-paper. But my header and footer have not aligned. In my preamble I've got: \usepackage{graphicx} \usepackage{epstopdf} \usepackage{float} \usepackage[...
0
votes
2answers
95 views

Header with doublesided document

This is already quite close to what I need. The only issue with this solution is that it shows the sections on the odd pages and the subsections on the even pages. However, for the first time the ...
0
votes
0answers
26 views

List of listings: problem with the STYLE of table of contents

I have some problems with making of table of contents for listings. I would like to add to my document (memoir class) the List of Listings but I could only obtain it with totally a different style ...
1
vote
1answer
82 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
53 views

How to add a picture into the header in the first page?

how can I add a picture into the header in the first page of my article? Thank you very much in advance. My sample code can only create a file with the picture showing up on the second page. \...
1
vote
1answer
47 views

Headrule not centered over text, how to fix?

For some reason the headruler I added in my document isn't as long as the \textwidth. It doesn't seem to be centered but it could also be that it's asymetrical, and I don't know why? See the picture ...
1
vote
1answer
51 views

section and subsection on a double-sided document

In the header of my twosided document should be on the left side always the author. On the odd pages should be on the right side the section and on even pages the subsection also on the right side. I ...
3
votes
1answer
50 views

\marks with two column output

I'm trying to understand how \marks, \firstmarks, and \botmarks works with two column output. In the following MWE, the headers work as I want with one column output. The right mark is the last verse ...
0
votes
0answers
45 views

Exam header and title with a particular design

I'm new to Latex and I'm trying to have the same template for my exam as the ones I created on LibreOffice. Here's what it look like: Do you have some advices for packages or macro that I could use ...
1
vote
0answers
57 views

How can I create this header margin without a frame and underline [closed]

How can I create this margin without a frame and underline
2
votes
1answer
29 views

Forcefully positioning header page numbers for even and odd pages

I'm trying to write a syllabus and I want the page numbers to be on alternating sides of each page. I am using the package fancyhdr, and know the command to accomplish this, \fancyhead[LE,RO]{\thepage}...
3
votes
1answer
47 views

Displaying chapter authors in headers

I'm editing a book written by different authors, each chapter one or several authors. I would like to include the name of the authors of each chapter in the ToC, and also in the headers. The answer ...
2
votes
0answers
56 views

How to modify the header to insert a long thesis title?

I'm writing my master thesis on Overleaf, using the template toptesi (https://it.sharelatex.com/templates/thesis/italian-thesis-template-(toptesi)). I'm using the pattern: \documentclass[12pt,twoside,...
2
votes
1answer
46 views

How to change header and page number style in book in latex?

I want to change original header of book in the latex, for even page number : From become (Page number on the black square with shadow and add line below the chapter name & page number) for ...
2
votes
0answers
22 views

First Pages only on Odd Pages with roman Page Numbers

I want to have the first pages (title, abstract, toc) of my bachelor thesis on right (odd) pages. The rest of the thesis should follow the twoside layout of scrreprt with arabic numbers. I ...
4
votes
2answers
162 views

Main text goes over header

How could I fix it? Here is the code: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[top=1cm,left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry} \usepackage{tikz} \...
0
votes
1answer
40 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 ...
2
votes
1answer
33 views

Add the date in the bottom

With the following codes \documentclass[12pt, reqno]{amsart} \usepackage{amsmath, amsthm, amscd, amsfonts, amssymb, graphicx, color} \usepackage[bookmarksnumbered, colorlinks, plainpages]...
0
votes
1answer
33 views

Repeated section titles clipping / overflowing through page

So I am currently writing a report in Latex, I chose to use the "classicthesis" template in the Overleaf editor. The problem I have is that the repeated section titles (i.e. if I begin a section and ...