0

MWE

\documentclass[12pt, a4paper, twoside, %openright, 
toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt}
\usepackage[square,sort,comma,numbers]{natbib} %Literaturverzeichnis
\usepackage[linktoc=all,hidelinks]{hyperref} %Verlinkungen
\usepackage[automark,headsepline]{scrlayer-scrpage} %header

%header
\clearscrheadfoot
\automark{section}
\ihead{\headmark}
\ohead{Seite\enspace\pagemark}
\setkomafont{pageheadfoot}{\normalfont}

\begin{document}
\thispagestyle{plain}
\pagenumbering{Roman}
\tableofcontents
\thispagestyle{plain}
\KOMAoptions{open=any}
\thispagestyle{plain}
\listoffigures %Abbildungsverzeichnis
\thispagestyle{plain}
\listoftables %Tabellenverzeichnis
\thispagestyle{plain}

\cleardoublepage
\KOMAoptions{open=right}
\pagestyle{headings}

\end{document}

so what i tried to receive here is an output where i have my usual headers on each normal page but just a plain pagenumber (in Roman style) on the pages of my list of figure and list of tables, but what i got is no pagenumbers on the list pages, even though i got the pagenumbers in the TOC. Neither of these lists has more than one page so i don't know, if the pagenumber would be shown after the first page.

13
  • I'm not familiar with KOMA budle, but I belive that it support \frontmatter and \mainmatter. The first one put imidiately after begin{document}, and latter one before your main text (maybe before KOMAoptions{...}`.
    – Zarko
    Aug 3, 2015 at 10:33
  • \clearscrheadfoot clears everything, i.e. the page numbers as well
    – user31729
    Aug 3, 2015 at 10:40
  • @Zarko Neither report nor scrreprt provide the \...matter business.
    – Johannes_B
    Aug 3, 2015 at 10:40
  • @ChristianHupfer He set them after clearing everything.
    – Johannes_B
    Aug 3, 2015 at 10:40
  • 1
    You forgot ä Sternsche ;-) \ohead*{Seite\enspace\pagemark}
    – Johannes_B
    Aug 3, 2015 at 10:44

1 Answer 1

1

I think that does what you want to achieve.

First, the header and footer are set up for the lists, later everything is cleared and once more, the stuff is set up for the main part.

\documentclass[12pt, a4paper, twoside, %openright, 
toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt}
\usepackage[square,sort,comma,numbers]{natbib}

\usepackage{blindtext}
\usepackage{pgffor}
\usepackage{showframe}

\usepackage[automark,headsepline]{scrlayer-scrpage}
\clearpairofpagestyles
%\automark{section}%JB Are you sure?
\cfoot*{\pagemark}
\setkomafont{pageheadfoot}{\normalfont}
\usepackage[linktoc=all,hidelinks]{hyperref}

\begin{document}
\pagenumbering{Roman}
\tableofcontents
\KOMAoptions{open=any}
\listoffigures
\listoftables

\cleardoublepage
\pagenumbering{arabic}
\clearpairofpagestyles
\ohead*{Seite\enspace\pagemark}
\ihead{\headmark}
\KOMAoptions{open=right}

\foreach \x in {1,...,10} {%
    \chapter{Chapter}
    \section{Walzing}
    \blindtext
    \captionof{figure}{Figure \x}
    \captionof{figure}{Figure \x}
    \captionof{figure}{Figure \x}
    \section{Wombat}
    \Blindtext[4][3]
    \captionof{table}{Table \x}
    \captionof{table}{Table \x}
    \captionof{table}{Table \x}
}
\end{document}
4
  • Thank you, we are getting very close! It did pretty much what i wanted except one thing: the Roman numbers are on absolute bottom end of the pages so if i'm going to print the document, the printer won't be able to print those numbers i guess. Is it possible to move them like 1cm higher?
    – Max
    Oct 17, 2015 at 18:11
  • 1
    Please run the code as posted and tell me where the page numbers appear. Do you get any warnings? With which page does the roman numbering end, how many pages are there in total?
    – Johannes_B
    Oct 17, 2015 at 19:01
  • okay, your example works fine and the roman page numbers appear centered 2cm away from the bottom margin. Just in my document they appear right at bottom margin. i don't know why that is, but i think i will figure it out on my own. Thank you very much for your help!
    – Max
    Oct 18, 2015 at 8:47
  • @Max A simple algorithm will show you the source. (hint: click the link)
    – Johannes_B
    Oct 18, 2015 at 10:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .