LaTeX forum ⇒ Page Layoutpage numbering Topic is solved

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

page numbering

Postby laniuscollurio » Fri Jun 22, 2018 11:09 am

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:


  1. \documentclass[a4paper,12pt]{scrreprt}
  2. \usepackage[left= 2.5cm,right = 2cm, bottom = 4 cm]{geometry}
  3. %\usepackage[onehalfspacing]{setspace}
  4.  
  5. % Dokumentinformationen
  6. \usepackage[
  7. pdftitle={Titel der Abschlussarbeit},
  8. pdfsubject={},
  9. pdfauthor={Euer Name},
  10. pdfkeywords={},
  11. %Links nicht einrahmen
  12. hidelinks
  13. ]{hyperref}
  14.  
  15.  
  16. % Standard Packages
  17. \usepackage[utf8]{inputenc}
  18. \usepackage[ngerman]{babel}
  19. \usepackage[T1]{fontenc}
  20. \usepackage{graphicx, subfig}
  21. \graphicspath{{img/}}
  22. \usepackage{fancyhdr}
  23. \usepackage{lmodern}
  24. \usepackage[dvipsnames]{xcolor}
  25.  
  26. \usepackage{amsfonts}
  27. \usepackage{amsmath}
  28.  
  29.  
  30. %\setlength{\parindent}{0pt}
  31.  
  32.  
  33.  
  34.  
  35. %hyperref einstellungen
  36.  
  37. \usepackage{hyperref}
  38. \hypersetup{
  39. colorlinks=true,
  40. linkcolor=Periwinkle,
  41. filecolor=magenta,
  42. urlcolor=Orchid,
  43. citecolor=Mulberry,
  44. }
  45.  
  46.  
  47.  
  48. \pagestyle{fancy}
  49. %
  50. \lhead{}
  51. \chead{}
  52. \rhead{\slshape \leftmark}
  53. %%
  54. \lfoot{}
  55. \cfoot{\thepage}
  56. \rfoot{}
  57. %%
  58. \renewcommand{\headrulewidth}{0.4pt}
  59. \renewcommand{\footrulewidth}{0pt}
  60.  
  61. %Besondere Trennungen
  62. \hyphenation{De-zi-mal-tren-nung}
  63.  
  64.  
  65. % ============= Dokumentbeginn =============
  66.  
  67. \begin{document}
  68. %Seiten ohne Kopf- und Fußzeile sowie Seitenzahl
  69. \pagestyle{empty}
  70.  
  71. \include{01_titel}
  72.  
  73. \include{02_danksagungen}
  74.  
  75. \include{03_zusammenfassung}
  76.  
  77.  
  78. \cleardoubleoddpage
  79.  
  80.  
  81. \pagestyle{fancy}
  82.  
  83.  
  84.  
  85.  
  86. \tableofcontents
  87.  
  88.  
  89. \listoffigures
  90.  
  91.  
  92. \listoftables
  93.  
  94.  
  95.  
  96.  
  97.  
  98. \include{04_einleitung}
  99.  
  100. \include{05_grundlagen}
  101.  
  102. \include{06_standdertechnik}
  103.  
  104. \include{07_methoden}
  105.  
  106. \include{08_ergebnisse}
  107.  
  108. \include{09_diskussion}
  109.  
  110. %Literaturverzeichnis
  111. \bibliographystyle{unsrtdin}
  112. \bibliography{Literatur}
  113.  
  114.  
  115. \appendix
  116. \chapter{some stuff}
  117. \chapter{some other stuff}
  118.  
  119. \end{document}
Last edited by Stefan Kottwitz on Fri Jun 22, 2018 11:24 am, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 8980
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jun 22, 2018 11:27 am

After \begin{document}, write

\pagenumbering{roman}

and after the lists, write

\pagenumbering{arabic}

Stefan
Site admin

laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

Postby laniuscollurio » Fri Jun 22, 2018 11:55 am

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 6 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 8980
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jun 22, 2018 12:09 pm

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 210 times


Actually it turns to arabic one page too early, so ensure the change at the next page by

\cleardoublepage
\pagenumbering{arabic}


Stefan
Site admin

laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

Postby laniuscollurio » Fri Jun 22, 2018 12:44 pm

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: 8980
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jun 22, 2018 1:35 pm

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

  1. % switching to roman
  2. \cleardoublepage
  3. \pagenumbering{roman}
  4. % title stuff etc.
  5. ...
  6. % switching to no numbers whenever needed
  7. \cleardoublepage
  8. \pagenumbering{gobble}
  9. ...
  10. % switching to arabic
  11. \cleardoublepage
  12. \pagenumbering{arabic}
  13. % Introduction follows


Before a \pagenumbering switching command, the \cleardoublepage ensures that a new page starts, then the new numbering and the following content.

Stefan
Site admin

laniuscollurio
Posts: 6
Joined: Wed May 23, 2018 1:40 pm

Postby laniuscollurio » Fri Jun 22, 2018 2:49 pm

awesome, thank you. problem solved.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 5 guests