Page LayoutRight bottom corner - Two different types of page numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
chaser92
Posts: 1
Joined: Fri Sep 04, 2015 12:19 pm

Right bottom corner - Two different types of page numbering

Post by chaser92 »

Hey,

I have a small problem. I want that all page numbers appear at the bottom in the right corner. However, I use roman numbering for the first pages (abstract, table of contexts, list of abbreviations, list of figures and list of tables) and arabic numbering for all follwoing pages.
The template I use, uses two different types of pagestyles scrheadings and plain. Suggestions out of other forums recommend to use the fancyhdr style to put numbering in bottom right corner. However, I am not able to modify the whole page numbering structure on my own. Thus, is there an easier way as to redefine whole pagestyle settings of the template and use fancyhdr? And if no, how does this work. If the question is stupid, I am sry, but this is my first project with Latex...

Thanks for your help!

Here is my code:

Code: Select all

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath,amssymb,amsfonts,amsthm}
\usepackage{graphicx}                           
\usepackage{hyperref}                           
\usepackage[authoryear]{natbib}                
\usepackage[bf]{caption2}
\usepackage{hyperref}
\hypersetup{citecolor=black}					
\hypersetup{%
        colorlinks = true,
	linkcolor  = black}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\usepackage[utf8]{inputenc}
\usepackage[hang]{footmisc}						
% --- some layout definitions ---
\usepackage[automark]{scrpage2}
\pagestyle{scrheadings}
\automark{section}
\clearscrheadings
\ohead{\headmark}

\bibliographystyle{ecta}
\setlength{\headheight}{1.1\baselineskip}
\voffset=-2cm
\hoffset=-3cm
\textheight24cm
\textwidth16,2cm
\topmargin1cm
\oddsidemargin3cm
\evensidemargin3cm
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\labelitemii}{-}

\begin{document}
	
	\thispagestyle{empty}
	\input{titlepage}
	\newpage
	\pagestyle{plain}
	\pagenumbering{roman}   % define page number in roman style
	\setcounter{page}{1}    % start page numbering
	\newpage
	\input{abstract}
	% --- frontmatter: Table of Contents ---
	\newpage
	\tableofcontents
	\clearpage
	\newpage
	\addcontentsline{toc}{section}{List of Abbreviations}
	\ohead[]{LIST OF ABBREVIATIONS}
	\input{abbreviations}
	\newpage
	\addcontentsline{toc}{section}{List of Figures}
	\ohead[]{\rightmark}
	\listoffigures
	\newpage
	\addcontentsline{toc}{section}{List of Tables}
	\listoftables
	% --- main body of the thesis ---
	\newpage
	\pagestyle{plain}
	\setcounter{page}{1}    
	\pagenumbering{arabic}  
	\input{intro}
	\input{methods}
	\input{data}
	\input{results}
	\input{conc}
	% --- appendix ---
	\newpage
	\addcontentsline{toc}{section}{References}
	\bibliography{literature}
	\nocite{*}
	\newpage
	\input{app_figures}
	\newpage
	\input{app_tables}
	\newpage
	\addcontentsline{toc}{section}{Declaration of Authorship}
	\input{authorship}
	
\end{document}







Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Right bottom corner - Two different types of page numbering

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply