Page Layoutpage numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

page numbering

Post by laniuscollurio »

hey everybody, I'm struggling with page numbering. I want roman page numbering after title page until list of tables. From then on I would like to have arabic page numbers. This is my set up:

Code: Select all

\documentclass[a4paper,12pt]{scrreprt}
\usepackage[left= 2.5cm,right = 2cm, bottom = 4 cm]{geometry}
%\usepackage[onehalfspacing]{setspace}

% Dokumentinformationen
\usepackage[
	pdftitle={Titel der Abschlussarbeit},
	pdfsubject={},
	pdfauthor={Euer Name},
	pdfkeywords={},	
	%Links nicht einrahmen
	hidelinks
]{hyperref}


% Standard Packages
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx, subfig}
\graphicspath{{img/}}
\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage[dvipsnames]{xcolor}

\usepackage{amsfonts}
\usepackage{amsmath}


%\setlength{\parindent}{0pt}




%hyperref einstellungen

\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=Periwinkle,
    filecolor=magenta,      
    urlcolor=Orchid,
    citecolor=Mulberry,
}



\pagestyle{fancy}
%
\lhead{}
\chead{}
\rhead{\slshape \leftmark}
%%
\lfoot{}
\cfoot{\thepage}
\rfoot{}
%%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

%Besondere Trennungen
\hyphenation{De-zi-mal-tren-nung}


% ============= Dokumentbeginn =============

\begin{document}
%Seiten ohne Kopf- und Fußzeile sowie Seitenzahl
\pagestyle{empty}

\include{01_titel}

\include{02_danksagungen}

\include{03_zusammenfassung}


\cleardoubleoddpage


\pagestyle{fancy}




\tableofcontents


\listoffigures


\listoftables





\include{04_einleitung}

\include{05_grundlagen}

\include{06_standdertechnik}

\include{07_methoden}

\include{08_ergebnisse}

\include{09_diskussion}

%Literaturverzeichnis
\bibliographystyle{unsrtdin}
\bibliography{Literatur}


\appendix
\chapter{some stuff}
\chapter{some other stuff}

\end{document}
Last edited by Stefan Kottwitz on Fri Jun 22, 2018 11:24 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

page numbering

Post by Stefan Kottwitz »

After \begin{document}, write

\pagenumbering{roman}

and after the lists, write

\pagenumbering{arabic}

Stefan
LaTeX.org admin
laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

page numbering

Post by laniuscollurio »

Hi Stefan,

thanks 4 helping out. I already tried exactly this before posting here, but it doesn't return the desired output, neither for roman page numbering nor arabic, pleases see attachment.


best mat
Attachments
thesis.pdf
(234.21 KiB) Downloaded 244 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

page numbering

Post by Stefan Kottwitz »

I can see in the attached PDF, that pages numbers are roman at the beginning. And it turns to arabic at the introduction.
contents.png
contents.png (26.45 KiB) Viewed 11180 times
Actually it turns to arabic one page too early, so ensure the change at the next page by

\cleardoublepage
\pagenumbering{arabic}


Stefan
LaTeX.org admin
laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

page numbering

Post by laniuscollurio »

Hey Stefan,


I was all wrong, sorry. Roman numbering should start after title page but only for pages before Table of contents. These roman numbers should appear in TOC AND on the pages too. After that, TOC and following pages should have no numbering. Arabic page numbering should start with Introduction (page 1!)


I apologise for all inconveniences. Thanks again 4 helping out.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

page numbering

Post by Stefan Kottwitz »

Just put the commands where you want to start, right at the position in the source.

Code: Select all

% switching to roman
\cleardoublepage
\pagenumbering{roman}
% title stuff etc.
...
% switching to no numbers whenever needed
\cleardoublepage
\pagenumbering{gobble}
...
% switching to arabic
\cleardoublepage
\pagenumbering{arabic}
% Introduction follows
Before a \pagenumbering switching command, the \cleardoublepage ensures that a new page starts, then the new numbering and the following content.

Stefan
LaTeX.org admin
laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

page numbering

Post by laniuscollurio »

awesome, thank you. problem solved.
Post Reply