Tag Info

Hot answers tagged

5

This version (modified from egreg) would work with hyperref \documentclass{article} \usepackage{hyperref} \begin{document} \pagenumbering{Roman} \pagestyle{empty} This page has no number\newpage %1 This page has no number\newpage %2 This page has no number\newpage %3 This page has no number\newpage %4 This page has no number\newpage %5 This page has ...


4

Add \makeevenfoot{plain}{\thepage}{}{} \makeoddfoot{plain}{}{}{\thepage} to alter the plain page style which is used for the contents and similar pages.


4

Use this definition for your abstract: \renewenvironment{abstract}{% \clearpage\small \null\vfil \begin{center}% {\bfseries \abstractname\vspace{-.5em}\vspace{0pt}}% \end{center}% \quotation } {\endquotation\vfil\null\clearpage} MWE: \documentclass[11pt,a4paper]{report} \renewenvironment{abstract}{% \clearpage\small ...


3

The llncs class defines \chapter to have no page number on the chapter start page. Since \tableofcontents is effectively using \chapter*, the empty page style applies to the toc starter page too. This code removes the \thispagestyle temporarily for the ToC only. \documentclass[deutsch]{llncs} \usepackage{xpatch} \let\classtableofcontents\tableofcontents% ...


3

With fancyhdr, it is not complicated. \documentclass{article} \usepackage{fancyhdr} \usepackage{kantlipsum} \fancypagestyle{firstpagestyle}{% \fancyhf{} \rfoot{Continued on next page $\longrightarrow$} \renewcommand{\headrulewidth}{0pt} } \fancypagestyle{regular}{% \fancyhf{} \rhead{LOGO} \chead{Some} \lhead{\thepage} \rfoot{This is other page}% } ...


3

Set the empty page style - typically called when you issue \maketitle - to be equivalent to the plain page style: \documentclass{report} \title{I want a 1 to appear at the bottom of this page [works fine]} \begin{document} \begingroup \makeatletter \let\ps@empty\ps@plain % 'empty' page style = 'plain' page style \maketitle \endgroup \begin{abstract} ...


3

As mentioned in the documentation of the floatpag package, you need to specify the page style associated with full-page/page-only floats using \floatpagestyle{<pagestyle>}. You haven't done that. The following minimal example replicates and fixes your problem based on setting the appropriate page style: \documentclass{report} ...


3

Perhaps this works \documentclass{article} \def\pageoffset{6} %(7 - 1 = 6) \usepackage{etoolbox} \usepackage{blindtext} \usepackage{hyperref} \let\origthepage\thepage \renewcommand{\thepage}{% \ifnumgreater{\value{page}}{1}{\number\numexpr\value{page}+\numexpr\pageoffset-1}{\origthepage} } \begin{document} \pagestyle{empty} \tableofcontents ...


2

If you don't need hyperref, the trick is very easy: \documentclass{article} \begin{document} \pagenumbering{gobble} This page has no number\newpage %1 This page has no number\newpage %2 This page has no number\newpage %3 This page has no number\newpage %4 This page has no number\newpage %5 This page has no number %6 \clearpage ...


2

This adjusts the page count to go up in 2, so as it starts at 1, you get pages 1,3,5,7 all with an odd page style \documentclass[twoside]{article} \makeatletter \let\old@outputpage\@outputpage \def\@outputpage{\old@outputpage\stepcounter{page}} \makeatother \pagestyle{headings} \begin{document} \newcount\z \section{aaa} aaa \subsection{bbb} ...


2

The .aux files are read in \begin{document}, therefore all label based references are not available in the preamble. However, the labels can be imported via \zexternaldocument of package zref-xr: \RequirePackage{zref-xr} \zexternaldocument[self]{\jobname} \edef\selftotpages{\zref@extractdefault{internLastPage}{abspage}{0}} Then \selftotpages contains the ...


2

There are a number of problems with your code: You're creating a non-existent document. (La)TeX inserts page numbers during page shipout. And, page shipout only occurs when there's content to be shipped out. Since that's not happening, no page numbers may be visible. amsmath and mathastext doesn't always work together well. The code doesn't compile with ...


2

You can use fancyhdr coupled with zref-lastpage: \documentclass{article} \usepackage{zref-lastpage,fancyhdr} \usepackage{kantlipsum} \pagestyle{fancy} \renewcommand\headrulewidth{0pt} \fancyhf{} \fancyfoot[C]{\small\thepage} \makeatletter \fancyfoot[R]{% \ifnum\value{page}<\zref@extract{LastPage}{page}% \scriptsize\itshape Continue to next page ...


2

There has to be a better way of writing the ToC line, but still... \documentclass[a4paper,latin,fontsize=10pt,headsepline,parskip=half-,index=totoc,DIV=15]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \usepackage[normalem]{ulem} ...


2

I'd not vertically center the abstract: it appears to hang from nothing. However, here's a possible definition that leaves you a different choice: the optional argument to \begin{abstract} is a fraction for stating the relative distance from the top of the page. \documentclass[11pt,a4paper]{report} \renewenvironment{abstract}[1][1] {\clearpage ...


1

If you are depending on report and want to use the abstract environment, you will have to redefine that environment. % arara: pdflatex % arara: pdflatex \documentclass[11pt,a4paper]{report} \makeatletter \renewenvironment{abstract}{% \if@twocolumn \section*{\abstractname}% \else \small \begin{center}% {\bfseries ...


1

The imakeidx package should be loaded before hyperref. Then you just need \makeindex[intoc,title=Stichwortverzeichnis] and, where you want to print the index, \indexprologue{Whatever you want at the beginning of the index} \printindex (no \renewcommand{\indexname} is needed, because of the title= option). After these changes to your document, the ...


1

You have to redefine the \indexpagestyle, too. Use \renewcommand*{\indexpagestyle}{ChapterStyle} Note that the package scrpage2 is deprecated. The successor is package scrlayer-scrpage \documentclass[pdftex,a4paper,11pt,parskip=half,twoside, headings=normal, headsepline,numbers=noenddot,open=right, BCOR=5mm, toc=bibliography]{scrbook} ...



Only top voted, non community-wiki answers of a minimum length are eligible