Tag Info

5

Load the lastpage package and then redefine the footer or \@totpages to use \pageref{LastPage}. The lastpage package tries very hard to get the correct last page number even if there are pending floats and so is much more reliable than most manual solutions.

4

A possible solution working for article and scrartcl (i.e. without using features of KOMA) The page numbers are still right justified, but the width of the page number slot at the right margin is too small, because Roman numbers need more space to be typeset than arabic figures. Increasing the value of \@pnumwidth will solve this problem, however, this ...

4

The package xassoccnt provides a mean to force a stepping of an associated counter each time a driver counter is stepped as well -- the driver counter is page here. This has an advantage over the totcount or lastpage packages, since the associated counter realpage (any name will do, but section etc. is unwise, of course ;-)) is not reset (unless explicitly ...

3

Here is what I understood of your requirements: \documentclass[12pt, a4paper, oneside]{book}% \usepackage[top=4cm,bottom=2.5cm,right=2.5cm,left=4cm, headheight=15pt, showframe]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{lipsum,setspace } \usepackage[pagestyles, clearempty]{titlesec} \newpagestyle{myps}{% ...

3

3

zref's abspage module provides access to an "absolute page number" property. Together with the lastpage module, you can extract the last absolute page number using \zref[abspage]{LastPage}. Here is a minimal example: \documentclass{article} \usepackage[paper=a5paper]{geometry}% Just for this example \usepackage[abspage,user,lastpage]{zref} \begin{...

3

The titlepage environment used by \maketitle does a \cleardoublepage and forces the title on an odd page. The 0 on the first page is simply from the header -- you could suppress it with \thispagestyle{empty}. You can use the notitlepage option to avoid the extra page: \documentclass[11pt,a4paper,notitlepage]{book} \usepackage[T1]{fontenc} \usepackage{...

2

You need to tell titleps which titlemarks are defined using the \settitlemarks macro. As cfr noted in the comments, you also need to load titlesec with the pagestyles option rather than loading the package separately. So you need: \usepackage[rm,small,center,compact,newparttoc,clearempty,pagestyles]{titlesec} and then after you've made your new ...

2

You have a couple of options here: Option 1 This is what you currently have: Updating the page styles for the Appendix to prepend Apx. to \thepage as part of the headers/footers. \addtodef{\appendix}{}{% \copypagestyle{apx}{plain}% \makeevenfoot{apx}{}{Apx. \thepage}{}% \makeoddfoot{apx}{}{Apx. \thepage}{}% \copypagestyle{chapter}{plain}% \...

2

apa6 defines titlepage and otherpage style with fancyhdr settings. A redefinition just clears \rhead{} and sets \cfoot{\thepage} The \maketitle uses the call \pagestyle{titlepage} then, so most likely both titlepage and otherpage have to be modified slightly and keeping the other settings as they are. \documentclass[man,12pt,apacite,natbib,noextraspace]{...

1

The memoir class provides two macros, namely \lastpage and \lastsheet which will print the page number of the last page and the number of sheets of paper required for printing the document single sided. To date I have not heard of any problems with these. They can be used like this: \documentclass[a4paper,...]{memoir} ... \begin{document} ... The last page ...

1

Naturally there is a counter. \c@page (which is defined as \count0) and you can access its value: \documentclass[a5paper, 11pt]{scrbook} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \begin{document}\makeatletter Seite \the\value{page}--\the\c@page --\the\count0 \newpage Seite \the\value{page}--\the\c@page --\the\count0 \end{document} But you ...

1

I see no problem with the following: \begin{filecontents}{fungie-intro.tex} \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction} \lipsum \end{filecontents} \documentclass{report} \usepackage{lipsum} % just for the example \begin{document} \pagenumbering{roman} \tableofcontents \listoftables \listoffigures \cleardoublepage \...

1

If you want the page number itself to be recorded as Apx. #, then you shouldn't edit the page style. Instead you should just redefine \thepage. \documentclass[a4paper,oneside]{memoir} \begin{document} \tableofcontents \chapter{Test} \clearpage %So that the new \thepage will not leak to the previous chapter. \appendix \renewcommand\thepage{Apx. \...

1

An alternative to pgfpages could be pdfpages. In this case, you create the beamer presentation, an later on include it as an external file inside the handout document which could be something like: \documentclass[a4paper, landscape]{article} \usepackage[vmargin={2cm,1.5cm}]{geometry} \usepackage{pdfpages} \begin{document} \includepdf[pages=1-8,nup=2x2,...

1

\documentclass{tufte-book} \usepackage{ifoddpage} \newcounter{mycount} \begin{document} \parindent=0pt \loop \mbox{\checkoddpage \ifoddpage Odd \else Even \fi}\\ \ifnum\themycount<130 \stepcounter{mycount}% \repeat \end{document}

1

This is better, but not perfect -- the first check on a page is always wrong! The reason the OP does not work is that \pageref is not expandable, i.e. its output cannot be used for \ifthenelse or any other \if.... conditional that should check the number, so the output branches always to the false branch, i.e. Even. \getpagerefnumber from refcount package ...

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