{page-numbering} is about how (La)TeX numbers pages and how page numbering can be influenced.

learn more… | top users | synonyms (1)

14
votes
2answers
1k views

Figures on left pages, text on right ones with class book, numbering only on right pages

My problem is that I would like to have either blank or figures on the left pages, and text on the right ones, with the numbering of the right pages to be 1,2,3,4,5 and not 1,3,5,7. It means, in a ...
37
votes
5answers
5k views

How can I add “page # of ##” on my document?

I want to add a footer to my document displaying the current number out of total number of pages. How do I do that?
22
votes
5answers
2k views

How to use \pageref{foo} as a number?

What I want to do is to show a "progress bar" in the header to show how far you are in the document, by making a rule with width pagenumber divided by total pages times the paper width. This is what ...
11
votes
5answers
5k views

If Then Else for odd page/even page

How to use if-then-else structure in LaTeX? I need a example of odd and even page. if odd then command 1 else command 2
8
votes
2answers
2k views

Section added by \addcontentsline on the wrong page

I am adding a section with the bibliography references by using \addcontentsline in order to add a link to the table of contents. Unfortunately the link in the table of contents links to a wrong page, ...
6
votes
3answers
324 views

Index is incorrectly listed in the table of contents

I have a large document with an index compiled through makeindex, and is included in my source .tex as follows: \cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{Index} \printindex ...
2
votes
3answers
3k views

How to force LaTeX to put even pages on the right hand side in documentclass article

In documentclass article I try to put even pages on the right hand side of a twoside document (unfortunatelly it is no option for me to change the document class). My point is to start with ...
14
votes
2answers
1k views

Insert foldable A3 pages in an A4 document with active references

I am at the end of a big LaTeX document (my thesis) and I would like to insert A3 tables and figures in the Annexes (Supporting informations) section. These A3 pages would be foldable and ideally I ...
13
votes
3answers
5k views

LaTeX Beamer: How to get distinct page numbers when using overlays?

The question When I create slides for presentations in LaTeX with the Beamer class, I like to use constructions with overprint like this: \begin{frame} \begin{block}{} \begin{itemize} ...
13
votes
3answers
2k views

Roman numeral numbering for introductions

Is there a way to automatically use roman numeral numbering for introduction pages and introductory tables, which would then switch to arabic numerals for the rest of the document?
4
votes
3answers
2k views

Appendices in PDF Outline appear as childs of last section

I'm using the following general outline in book class: \mainmatter \include{introduction} \part{...} \include{chapter1} ... \part{...} ... ...
5
votes
2answers
2k views

Modifying the Page Numbers in the Table of Contents

Is there a way how I could make a section/chapter/any-heading which occurs on page x in my document to appear in the table of contents with the page x-1? (I am using scrbook) I'd like this result not ...
4
votes
2answers
314 views

Problem with the numeration appearing in the table of contents

I have some trouble with the page numbers printed in the table of contents. I am writing a text in book class. In my text, I first print a table of contents with the commands \frontmatter ...
28
votes
6answers
5k views

Add page and line numbers to a pdf

Is there any quick script to add page and line numbers to each page of a pdf document? 1) I often enough get articles in pdf to review, with no page number. I end up writing them by hand to refer to ...
24
votes
1answer
30k views

No page numbering

I have two sections before the table of contents, for which I use the following code: \clearpage \thispagestyle{empty} \section*{RandomTitle} The problem is, that latex starts the page numbering ...
14
votes
2answers
282 views

Reversing page order from a point onward

In my document, I want pages from a specific point onward to appear in reverse page order, i.e. the last page should come first, then the penultimate page, etc. How can I do it? (I don't want to ...
24
votes
1answer
8k views

removing page number for title page

I'm using titlepage to create a title/abstract page for a paper, and I don't want a page number to appear, so I use the following fragment: \begin{titlepage} \clearpage\thispagestyle{empty} ...
13
votes
2answers
2k views

Base document page numbers with pdfpages

I'm writing a report, in LaTeX. And I need to include, as appendices, other latex documents I have written. I am currently doing this using pdfpages and it works. However, the inserted PDF has no page ...
9
votes
2answers
503 views

Page numbers vertically centered in the outer page margin

Even though it seems to be a non-standard position, I'd like to place my document's page numbers vertically centered in the outer page margin – i.e. where you usually have your thumb when you skim ...
8
votes
1answer
173 views

How do I have two sets of page numbers in a document?

I want to have two sets of page numbers (P and p) in my document. The first one (P) is global, the second one (p) resets to 1 at some predefined points. So, the document will look like, Text P1/5 ...
9
votes
2answers
6k views

Table of Contents or TOC lines without page numbers

Is it possible to create a TOC (table of contents) with \sections and \subsections, but without the page numbers on the right hand side? I know this defeats the purpose of a TOC but for knowledge's ...
8
votes
2answers
229 views

Change starting page number

How I can start page numbering from 68 to 74 by using header and footer in latex instead of 1 to 7.
11
votes
1answer
243 views

Replace individual page numbers with mathematical expressions

I'd like to replace a few individual page numbers in a document with mathematical expressions, like $a^0$ for page 1, $2(2)^1$ for 4, etc. I don't have a ToC or index, so I'm not concerned about the ...
9
votes
1answer
292 views

How to know the number of pages in a PDF file?

I use graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?
6
votes
3answers
152 views

Page numbering in the middle of a line

How can I set up a document to write the page numbering in the middle of a line? Through fancy pagestyle I've got a situation like the following one: --------------------- % this is a line after the ...
5
votes
2answers
273 views

The numbering of exercises automatically on table

I have several hundred exercises in form \begin{exercise} \end{exercise} where each one is a small own file. I input those through \input{...} on master documend. I have done some other ...
5
votes
1answer
164 views

How to find absolute page number as an integer?

Is there a simple way to retrieve an absolute page number from a label, where by absolute I mean counting all pages as integers sequentially starting from the first page of the document, without any ...
3
votes
2answers
746 views

How do I add a Page X of Y in a KOMA-script class?

I saw the answers to a similar question, but the accepted answer won't take effect in a KOMA-script class. \usepackage{lastpage} ... \cfoot{\thepage\ of \pageref{LastPage}} I am using scrartcl ...
6
votes
4answers
3k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
4
votes
2answers
2k views

Page numbering - removing page number from first page

How do you turn off page numbering from the first page in a LaTeX document?
4
votes
3answers
6k views

Roman numeral page numbering

I am writing a thesis that contains an abstract and acknowledgements page, but need to number the page numbers using Roman numerals. How would I do this? I don't want to include the title page but ...
4
votes
2answers
698 views

How to change the position of the page number in the first page of every chapter of a book?

I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact. ...
1
vote
1answer
2k views

No page numbering for the table of contents

How do I skip numbering until the beginning of chapter 1 with scrbook? I'm using something alone the lines of \begin{document} \pagestyle{empty} \pagenumbering{none} \maketitle \tableofcontents ...
0
votes
1answer
214 views

Compiling Master and Individual Child documents with correct pagination

I'm using a master document by including the child documents with \include{} command. I can compile the master document to get the big document with all child documents included. I wonder how to get ...
20
votes
3answers
402 views

duodecimal page number

I would like to have page numbers in my document written in base 12. Here's an MWE \documentclass[12pt]{article} \usepackage[paperheight=1.8in, textheight=0.8in]{geometry} ...
4
votes
1answer
446 views

Headers and page numbers in external borders

I am trying to recreate in *TeX the same aspect that you can see in the following picture showing a document that I created a while ago with MS Publisher. As you can see, page numbers are rendered ...
15
votes
2answers
15k views

How to suppress page number?

I've made myself custom title-page, put it in separate .tex file and when I input it, it is numbered with 1. The very next page is numbered with 1 also, and page-number increases on the following ...
5
votes
3answers
823 views

How can I change the increment of the page numbering?

I'm trying to create a somewhat specially formatted document, with some text on the recto (right side) and a graphic on the verso (left side). This is for a brochure of sorts. See below: --------- ...
3
votes
1answer
480 views

How can I put page numbers or headers inside my handouts (handoutWithNotes)?

I've been trying to obtain some stylized handouts using beamer with handoutWithNotes by Guido. What I have now is the 4 framed handouts purely but I'd like to put the page number on the bottom of the ...
1
vote
2answers
396 views

Extract document statistics? - How many pages has chapter xy? Count fixmes?

I have a large pdflatex document where each chapter is located in an extra text file and included with \include{chapter3.tex} ... How can I extract the page numbers of each chapter and write them ...
11
votes
1answer
2k views

Changing page number location

I need to do the following: For the first page of every section, the page number should be at the bottom and centered. The text should stop one "double space" above it. For all other pages, the ...
10
votes
2answers
479 views

Automatically remove page number if document has only one page (but not if two)

I write a lot of documents (agreements) based on memoir with the article option. Normal pagestyleis plain (page number centered in the footer). Sometimes a document is only one page long, and a page ...
8
votes
1answer
4k views

removing page numbers, but not headers

In my \documentclass{article}, I would like the last few pages (in essence appendix) to be without numbers, but retain the header (\thispagestyle{empty}) is so out of the question). Is there a way to ...
7
votes
2answers
11k views

How to move page number?

I want to change the position of the page number. I've read around here that some suggest to use the fancyhdr package, but I don't want to use it – I'm a beginner to LaTeX so I don't want to use a ...
5
votes
2answers
380 views

Generate consecutive page numbers + ToC from 28 .tex files?

I've completed half a semester of Discrete Mathematics. I have written up all 28 lectures into individual .tex files, labelled Lecture1.tex Lecture 2.tex ... Lecture28.tex. The beginning of each one ...
4
votes
1answer
126 views

set minimum number of pages for TOC

I am looking for a method to set the minimum number of pages for the TOC. For example, with the MWE, chapter 1 starts on the 3rd page in first run, and the 14th page on second run. Knowing this I ...
3
votes
1answer
130 views

How can I consecutively number only some pages of a document?

The following code typesets a 12 page document; text only appears on every other page and there's an empty page between two text pages: \documentclass{article} \usepackage{atbegshi} ...
2
votes
1answer
184 views

How to obtain the current page number in ConTeXt?

I want to obtain the current page number, for use in Lua conditionals, e.g.: \startlua if 10 <= \pagenumber < 20 then context("The pages are between 10 and 20") end \stoplua ...
2
votes
2answers
4k views

Different page numbering in appendix?

How can I use an independent page numbering in the appendix, either with Roman or Arabic numberals as page numbers? (I.e. the first page of the appendix should start again with 1, as it is often ...
2
votes
1answer
1k views

How can I redefine the base font size and change the size of the page number on chapter pages?

I've got a problem when editing a TeX file. I've changed \normalsize to 20pt by \newcommand{\mysize}{\fontsize{20pt}{\baselinestretch}\selectfont} \renewcommand{\normalsize}{\mysize} and this ...

1 2