Hot answers tagged page-numbering
7
If you want to keep hyperref happy, in case you use it, change the page number representation:
\documentclass{report}
\usepackage{hyperref}
\newcounter{nopage}
\newenvironment{nopage}
{\clearpage\stepcounter{nopage}%
\renewcommand{\thepage}{NP\arabic{nopage}}%
\thispagestyle{empty}}
{\clearpage\addtocounter{page}{-1}}
\begin{document}
First page
...
7
Here's a little example of what you want. Note
\thispagestyle{empty} suppresses the page number on the current page.
You can fiddle with the page numbering using commands like \addtocounter{page}{-1}. (You could instead use \setcounter{page}{\thepage-1}, but that requires loading the calc package, which lets you evaluate numerical expressions like ...
5
By default the first page of each \chapter is set using the plain page style under the basic book and report document classes. To see why this is the case, consider the \chapter macro:
\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
\global\@topnum\z@
...
5
To get all pages formatted with a page number in the center of the footer is quite simple with fancyhdr.
MWE 1
\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE]{}
\fancyhead[RO]{}
\fancyhead[RE]{}
\fancyhead[LO]{}
\cfoot{\thepage}
\begin{document}
\chapter{foo}
Special chapter title page. Page number positioned at bottom of page.
...
4
Of course, David Carlisle has already mentioned in a comment the correct solution, which is to use the fixltx2e package. Among other goodies, this package will ensure that figures appear in the same order in the output as you specified them in the input.
If, however, you like how LaTeX does it by default, outputting single and double-column figures in ...
3
The standard page style doesn't allow disappearing only the footer. However I can imagine two possibilities.
You can define your own page style with the required header and without any footer. This new defined page style can be used with \thispagestyle.
On the other hand you can use declaration commands of the footer (e.g. \cfoot) inside the document ...
3
I believe you need to edit the plain settings. For example, adding the following to the preamble may help
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\fancyhead[RO]{\thepage}
\fancyhead[LE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
...
3
Using \thepage might produce undesired results due to the asynchronous nature of page building mechanism. Using a \label, \ref approach can prevent the undesired results:
\documentclass{article}
\usepackage{refcount}
\usepackage{lipsum}
\newcounter{abc}
\newcommand\prevtopage{%
\stepcounter{abc}
\label{page\theabc}written upon this page and the ...
2
You need to redefine the pagestyle with \fancypagestyle instead of just changing it for a single page with \thispagestyle , i.e.
\documentclass{report}
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\rfoot{\thepage}}
\pagestyle{plain}
\begin{document}
\tableofcontents
...
2
I am not a publisher, but i took a look through a series of scientific publications in my private library. Til yet i have not found an example where the orientation of headers and footers (hence especially page numbering) changed on landscape pages. I think there is a simple reason: consistency; meaning that you want to find certain information, which is ...
2
The xr package, or maybe zref-xr for more powerful features, is the tool you're looking for.
However, you have to use different names for your files, say
jakob-art.tex
and
jakob-pres.tex
for the article mode and presentation mode versions respectively. Both can input a common file jakob.tex, of course. In the presentation version you'll add
...
2
The page number option to the footline template is found in beamerbaseauxtemplates.sty:
\defbeamertemplate{footline}{page number}
{%
\hfill%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\insertpagenumber\,/\,\insertpresentationendpage\kern1em\vskip2pt%
}
So when setting the footline beamer will use a ...
1
Some considerations for your code:
You don't need to repeatedly set secnumdepth. Once is sufficient, as it will hold from there onward;
\pagenumbering resets the page counter to 1, so you don't have to do it explicitly;
Most (if not all) document classes offer \listoffigures and \listoftables just like \tableofcontents, so use them. By default, the List of ...
1
Merge with Ghostscript.
Use pdfpages on the Ghostscript output like this:
\documentclass{article}
\usepackage{pdfpages}
\usepackage{hyperref}
\begin{document}
\pagenumbering{Roman}
\setcounter{page}{4}
\includepdf[pages={1-17}]{gs-output.pdf} % contains table of contents
\pagenumbering{arabic}
\includepdf[pages={18-}]{gs-output.pdf} % Rest of the book
...
Only top voted, non community-wiki answers of a minimum length are eligible
