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}