{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 ...

learn more… | top users | synonyms (2)

0
votes
0answers
23 views

headers and footers acting strangely with floatpag package

Using the fancyhdr package, I have a LaTeX document with the following headers and footers: Underlined chapter name at the top of each page. Page number at the bottom of each page. I was also ...
4
votes
1answer
93 views

How can I allow footer to have their own margin?

I'm required to have a strange margin of left=3.14in. What would be a good way for the footers to ignore this and instead adhere to left and right margins of .75in? MWE: \documentclass[10pt]{article} ...
2
votes
1answer
53 views

remove headers on pages where there is a sidewaysfigure

I have a Latex document with headers on each page. On the pages where I have a 'sidewaysfigure', I want to remove the headers, because sometimes, the white borders of the large sideways figures ...
2
votes
1answer
39 views

Part of LaTeX exam class document does not work

The code below works by printing "page x of y" on each page on the left, and go to next page on the right (or end of Exam for the last page). What I cannot get it to do is to write question xx ...
2
votes
1answer
47 views

exam, headrule of first page is different to second?

I define a header in the preamble: \pagestyle{head} \runningheadrule \header{xxx\\ xxx\\ xxx} {} {xxx\\ xxx\\ Seite \thepage von 8} Page one is diffrent to the other pages, and I don't know why ...
4
votes
1answer
38 views

Custom header not working as expected using fancyheader

I want to have a custom header like the following: Chapitre5 (Chapter5) in the left and the name of the chapter in the right(Mise en oeuvre) I used this in my root .tex file: \usepackage{fancyhdr} ...
1
vote
1answer
41 views

Making all mainmatter headers and footers be this way, even on new-chapter pages

I'm using memoir, in case it makes a difference. Given this reminder (mostly for myself) of what recto and verso mean: On all \mainmatter pages (even ones that start a new chapter), I'm trying to ...
1
vote
2answers
42 views

How to make running heads in book class show Part and Chapter, rather than Chapter and Section

I am preparing a book, which is to be divided into Parts, Chapters, and Sections. At the moment, my running headers give the Chapter title (on recto pages), and Section title (on verso). I would like ...
3
votes
1answer
33 views

Make \leftmark raggedright

As described in this article, I’m trying to replicate a CD. Following the solution given over there, I use scrlayer to format the chapter titles which are displayed via \leftmark. Now, the CD-manual ...
0
votes
1answer
23 views

Writing the name of the chapter in the header

Here's what I have written \documentclass{report} \usepackage{fancyhdr} \chapter{Introduction} \pagenumbering{arabic} \pagestyle{fancyplain} \fancyhf{} \lhead{\fancyplain{}{}} ...
1
vote
0answers
19 views

Why does \maketitle remove my footer? [duplicate]

I had a nice footer that I used for a letter, and wanted to reuse it in an article in which I want to include title, author and date as well... Now I find that if I include the title, author and ...
0
votes
2answers
45 views

Sectionmark escaping and numbering problem

I have a document, where I wanted to use \sectionmark to make the heading shorter, but keep the long section title in TOC. Unfortunately, doing that is wrong (the long title is output for header) if ...
3
votes
2answers
90 views

How to force KOMA-Script use headers/footers as standard classes?

It is known that KOMA-Script has more flexibility than standard classes. One example is the ability to use any font size (e.g., 11.5pt). One problem appears though, which is headers and footers ...
2
votes
1answer
35 views

Plain TeX `\footline` with rule and content

It seems pretty trivial to replace the footer with either content or a line in Plain TeX: \footline={\centerline{\folio}} % page number in footer \footline={\hrulefill} % rule in footer ...
2
votes
1answer
29 views

Layoutproblem: Fontdesign in header (minipage)

I tried to solve a layout-header-design with minipage. But within the minipage I got several problems: different font sizes linebreaks, leftalign more linespread for a single word ...
3
votes
1answer
45 views

Alternating page numbers

How can I have alternating page numbers in the footer (using fancyhdr) in the form of (left footer) page x of y -nextpage- (right footer)page x2 of y? I now have \pagestyle{fancy} \cfoot{\thepage\ ...
1
vote
0answers
29 views

Applying fancyhdr on pages where new chapters start

I'm using the book.cls document class and the following fancy header: \usepackage{fancyhdr} \fancyfoot{} \fancyhead[RO,LE]{\thepage} \fancyhead[LO]{\leftmark} \fancyhead[RE]{\rightmark} This works ...
0
votes
1answer
25 views

Format of the header in the table of contents

Help please, I'm writing a Project (document class=book), and I'm using fancyhdr to change the format of the headers. My problem is that that format doesn't apply to the first pages of the table of ...
2
votes
1answer
41 views

Different texts in odd and even pages in footer

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{fancyhdr} \usepackage{pifont} \usepackage{lipsum} % dummy text ...
4
votes
2answers
53 views

Different texts in various pages in footer

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{pifont} \begin{document} ...
1
vote
1answer
25 views

Get rid of navigation toolbar beamer in Table of contents slide Singapore theme

Hi I´m using Singapore theme and I would like to get rid of the navigation toolbar (header and footer) in the Table of contents page using beamer. How can I do it?
0
votes
1answer
59 views

How not have page numbers when there is \maketitle [duplicate]

After translating in pdflatex \documentclass[12pt]{article} \pagestyle{empty} % no page number \begin{document} \title{Article name} \author{Author} \maketitle \end{document} the first page ...
0
votes
0answers
32 views

Section name in the header

I want to make Latex display the subsection name (i.e. "2.1 Subsection") in the left header and the section name (i.e. "2 Section") in the right header. I use the following code: % !TEX TS-program ...
0
votes
1answer
77 views

Page numbers incl. text (different side)

I have two questions according to my Thesis. First, how do I switch margins automatically for every second pages, such as: Second how do I switch the page numbers and including different text ...
0
votes
1answer
36 views

Add a (different) footer to the last odd page

I have a twoside document and I'm using fancyhdr. Each even-page has footer 'A', all odd-pages have footer 'B' but now I would like the last odd page to have footer 'C'. It's no problem to add the ...
1
vote
0answers
59 views

Page numbers in pages other than the chapter's first page don't show up [closed]

I am writing my master thesis with a template that I created by myself, and everything seems to be moreorless fine except for the page numbering. I am using two different formats, roman and arabic ...
0
votes
0answers
29 views

How to add chapter names in header

I like to add chapter names in my header. Currently I used this command \fancyhead[RO,LE]{Chapter \thechapter} which can only show the chapter number . How can I add names instead of numbers.
3
votes
1answer
133 views

Template Trouble

Following code %Nam scripta a cursus ad philosophíæ scientiae \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[left=2cm,right=5cm,top=3cm,bottom=2cm]{geometry} ...
0
votes
0answers
42 views

Set Page numbers at Bottom in Memoir Class

I am using memoir class and am getting page numbers differntly positioned for even and odd numbered pages. I am using : \settrimmedsize{297mm}{210mm}{*} \setlength{\trimtop}{0pt} ...
2
votes
1answer
58 views

Why is the page number not in the footer of my page?

When I use the below code, the page number on page 2 appears above the footer. Why, and how do I put it in the footer? And what happened to the footer line on page 1? \documentclass{article} ...
0
votes
1answer
53 views

footruleskip already defined error when remove header line - abntex

I'm trying to remove the line of the header. Doing some searches, the best answer was \renewcommand{\headrulewidth}{0pt} but when I add the package fancyhdr I get an error saying that the footruleskip ...
1
vote
2answers
48 views

Changing the pagestyle on the page where a {table} or any other float is placed

When typesetting a large table using \begin{table} ... \end{table} (or any other float) one sometimes wants to change the pagestyle of the page where the float finally appears. Can one use ...
0
votes
2answers
36 views

setting header inside document for some pages

How can I set different header for different sections. In this example I am looking for replacement of \SomeCommand \documentclass{article} \begin{document} \SomeCommand{Header 1 define here} %this ...
1
vote
1answer
22 views

Is there a “brute-force” way to add a footer to a particular page?

I'm working with a complex thesis template that I don't fully understand (http://www.latextemplates.com/template/masters-doctoral-thesis). I've tried to modify it to make the abstract have arabic ...
0
votes
2answers
83 views

Top margin fancyhdr

I've been starting to use the \fancyhdr package now, using next commands: \newgeometry{left=1.5in,right=1.5cm,top=3cm,bottom=2.5cm,headheight=1cm} (after \begin{document} and after the input of the ...
0
votes
1answer
19 views

Header Margins Shrunk When Importing Style in Parent DIrectory

I have a project directory of the nature: notes.sty class1/Index.tex class2/Index.tex classN/Index.tex and I'm trying to usepackage the notes style for the TeX files to keep them consistent. ...
-1
votes
1answer
76 views

How to create a template for my school [closed]

How can I create a template like the example below? Thanks for any response!
2
votes
1answer
85 views

Komascript - resetting geometry inside the document

In Indenting text after numbered paragraphs I was given excellent advice on how to indent numbered paragraphs in Komascript, \newcommand\secnumindent{1.5cm} .. command for the section itself ...
1
vote
1answer
84 views

How to move Beamer headline below frametitle?

I am creating my own Beamer theme based on the Berlin theme and what I want to do is to move the navigation bar below the frametitle, instead of the default position (i.e., top of page, above ...
1
vote
1answer
36 views

Name in left header, chapter in right header

I am trying to work on my bachelor degree thesis and I need my name in the left header and chapter name in the right header, how can I do that? I made something but it's displaying my name and the ...
1
vote
1answer
47 views

How do I remove header and footer from contents page and list of figures

This is the code I've used for the header and footer. How do I remove header and footer from contents page and list of figures? \usepackage{times} \usepackage{fancyhdr} \usepackage{graphicx} ...
1
vote
2answers
37 views

Per-chapter page numbers (<chapterPage>/<chapterPageCount>)

I am currently working on a document which needs a header which contains the page number and page count within the current chapter. \documentclass[a4paper,12pt]{scrreprt} ...
2
votes
0answers
68 views

Hungarian babel makes English headers strange

I am writing a book mainly in English but it contains substantial Hungarian text, so I would use \usepackage[magyar,english]{babel} However, this makes chapter numbers in the headers look weird. ...
3
votes
2answers
237 views

How to add last name to page number in header?

Okay so I am writing a report where in the header, my teacher is requiring that I put both the page number and my last name in the upper-left hand corner of each page (excluding the title page). Now I ...
4
votes
1answer
48 views

Remove the header in the Table of Contents

I am writing a maths book for A level students using the class book, and I am completely new to LaTeX, so please bear with me if this is trivial. I have written a simplified version of my code down ...
5
votes
2answers
77 views

Wrap page number in colored box in footer

I a looking for a way to achieve the following outcome for the page numnbers in my footer created using fancyhdr: My current code in a stand-alone example looks like this: ...
1
vote
1answer
56 views

fancyhdr and chapter*

I'm using fancydr like this: \usepackage{titlesec} % Normal chapter titles \titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter.}{1em}{} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
3
votes
2answers
63 views

Remove header from the page after TOC and LOF

I am using Koma-script book document class, twosides, and I also use the package \fancyhdr to modify my pages. The problem is that header appears both in the next page after TOC and after LOF, so I ...
4
votes
2answers
65 views

How to reset \markright without breaking \sectionmark?

I'm using scrbook for a collection of papers. Every chapter has a different author, and is typeset with a custom command. I want the headers alternate between chapter and author (rather than whatever ...
0
votes
3answers
79 views

Page setup in memoir class

I have been using the memoir class based template for sometime. All this while I have been having a problem with the top margin of the document. Following is the pagestyle code ...