Text Formatting ⇒ setting page numbers
-
paulvdsterren
- Posts: 5
- Joined: Tue Jun 09, 2009 12:56 pm
setting page numbers
I have questions concerning page numbers. I made a resaerch report for
my master thesis in texniccenter using apa-style template.
For this thesis i made a coverpage, preface and some very long tables in word. The pdf document is placed in the middle after about 7 pages. I'd like to know
how i can manipulate the page numbers in such a way that they start in the pdf
from page 7 instead of page 1. What command do I need to use to get this done?
Thanks in advance,
Paul
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
setting page numbers
Do you want to start the counter on page 7 with page 7 or with page one???
If you want to have it with page 7 on page 7, then you just need to \usepackage{fancyhdr} and:
Code: Select all
\pagestyle{empty}Code: Select all
\pagestyle{plain}Otherwise, you will have to restart the page number on page 7. For this I would need to go back into some examples that I have, to give you a complete answer.
Cheers
setting page numbers
the command \setcounter lets you change the value of an existing counter. In your case, you could use something like
Code: Select all
\setcounter{page}{6}
-
paulvdsterren
- Posts: 5
- Joined: Tue Jun 09, 2009 12:56 pm
Re: setting page numbers
with page 1, instead of page 7 as i want. Could it be a problem that i use apa
style?
here is my setup btw:
\documentclass[jou,oneside]{apa}
\usepackage{apacite}
\usepackage{graphicx}
\usepackage{a4wide}
\title {The importance of sexual self-disclosure and perceived partner responsiveness in sexual intimacy: the proposition of an interpersonal process model.}
\author{Paul G.S. van der Sterren and Marjolein J.W. Verheij}
\affiliation{}
i put /setcounter above the title, but it doesnt seems to use it?
i also used /addtocounter {page} {7}, but this also doesnt seem to work.
I suspect that apa.cls hardwires the page numbers or something. Any ideas anyone?
thanks
setting page numbers
Is this a typo or did you actually use /setcounter? Commands go with a backslash, i.e. \setcounter.paulvdsterren wrote:/setcounter{page}{7}
This works for me:
Code: Select all
\documentclass[jou,oneside]{apa}
\usepackage{apacite}
\usepackage{graphicx}
\usepackage{a4wide}
\setcounter{page}{7}
\begin{document}
Hello world!
\end{document}- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
setting page numbers
Build a minimal working example (MWE) that shows the difficulties.paulvdsterren wrote:So i tried to do the /setcounter{page}{7}, however it still starts off with page 1, instead of page 7 as i want. Could it be a problem that i use apa style?
[...]
i put /setcounter above the title, but it doesnt seems to use it?
i also used /addtocounter {page} {7}, but this also doesnt seem to work.
I suspect that apa.cls hardwires the page numbers or something. Any ideas anyone? [...]
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
paulvdsterren
- Posts: 5
- Joined: Tue Jun 09, 2009 12:56 pm
Re: setting page numbers
I tried to make a mwe, i hope its minimal enough
\documentclass[jou,oneside]{apa}
\usepackage{apacite}
\usepackage{graphicx}
\usepackage{a4wide}
\setcounter{page}{7}
\title {The importance}
\author{Paul}
\affiliation{Faculty \\ Utrecht }
\abstract{abstract}
\rightheader{Paul}
\shorttitle{intimacy}
\leftheader{sexual}
\note{\today; in development}
\begin{document}
\maketitle %{model.}
text
\clearpage %this command is nit in the normal doucment its only here to get a 2nd page
text and a few figures and tables
\clearpage %this command is nit in the normal doucment its only here to get a 2nd page
\bibliography{ref}
\end{document}
also in this small doc setting page doesnt work, niether does \addtocounter {page}{7}
Can some look at this problem again?
thanks in advance
paul
setting page numbers
- Make a copy of apa.cls file into your working directory. This way, when compiling LaTeX will use this file. There, comment out line 1247, i.e.
Code: Select all
% \pagenumbering{arabic} - Write \setcounter{page}{7} right after \maketitle. It works in your MWE:
Code: Select all
\documentclass[jou,oneside]{apa} \usepackage{apacite} \usepackage{graphicx} \usepackage{a4wide} \title {The importance} \author{Paul} \affiliation{Faculty \\ Utrecht } \abstract{abstract} \rightheader{Paul} \shorttitle{intimacy} \leftheader{sexual} \note{\today; in development} \begin{document} \maketitle %{model.} \setcounter{page}{7} text \clearpage %this command is nit in the normal doucment its only here to get a 2nd page text and a few figures and tables \clearpage %this command is nit in the normal doucment its only here to get a 2nd page \bibliography{ref} \end{document}
Keta
setting page numbers
Code: Select all
\makeatletter
\renewcommand*{\pagenumbering}[1]{%
\gdef\thepage{\csname @#1\endcsname\c@page}%
}
\makeatothersetting page numbers
Brilliant, better solution by farphi wrote:I'd prefer tht following solution: Redefine \pagenumbering so that it doesn't reset the counter: