Text FormattingFirst Pages only on Odd Pages with roman Page Numbers

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jahusa02
Posts: 1
Joined: Mon Dec 17, 2018 9:48 pm

First Pages only on Odd Pages with roman Page Numbers

Post by jahusa02 »

I want to have the first pages (title, abstract, toc) of my bachelor thesis on right (odd) pages. The rest of the thesis should follow the twoside layout of scrreprt with arabic numbers.

I encountered a problem that the number 2 is on the left site cause of the twosite layout. Also in my approach the Links in the toc are not working correctly.

Please help me :)

Code: Select all

\documentclass[12pt,DIV=14,BCOR=10mm,a4paper,twoside,parskip=half-,headsepline,footsepline,headinclude,abstracton,bibliography=totoc,listof=totoc, headings=optiontoheadandtoc, draft=false]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor,calc}
\definecolor{mygreen}{RGB}{23,156,125}
\setlength{\emergencystretch}{3em}


\usepackage[automark]{scrlayer-scrpage}
\pagestyle{scrheadings}
\ihead[\headmark]{\headmark} 
\setuptoc{toc}{totoc}

\usepackage[ngerman]{babel}
\usepackage{blindtext}
\usepackage{graphicx,hyperref,amssymb}


\usepackage{csquotes}
%\addbibresource{literatur.bib}


\begin{document}
  \thispagestyle{empty}


   {  ~ \sffamily
  \vfill
  {\Huge\bfseries Titel}
  \bigskip

  {\Large
  Autor \\[2ex]
 Bachelor-Arbeit im Studiengang "`Studiengang"'
 \\[5ex]
   \today }
}
 \vfill

  ~ \hfill
  

\vspace*{-3cm}

  \newpage
  \cleardoublepage

\thispagestyle{plain}
 \begin{tabular}{ll}
  \pagenumbering{roman}

{\bfseries\sffamily Autor} &  Vorname Name \\ 
            & Matrikelnummer \\
            & dauerhafte email-Adresse \\[5ex]
{\bfseries\sffamily Erstprüferin:} & Prof. Dr. Vorname Name \\
          & Abteilung Informatik, Fakultät IV \\
         & Hochschule Hannover \\
        & email-Adresse \\[5ex]
{\bfseries\sffamily Zweitprüfer:} &Prof. Dr. Vorname Name \\
          & Abteilung Informatik, Fakultät IV \\
         & Hochschule Hannover \\
        & email-Adresse
\end{tabular}
\vfill


\addcontentsline{toc}{chapter}{Selbständigkeitserklärung}
\begin{center} \sffamily\bfseries Selbständigkeitserklärung \end{center}
  % fett und zentriert in der minipage

  Hiermit erkläre ich, dass ich die eingereichte Bachelor-Arbeit
  selbständig und ohne fremde Hilfe verfasst, andere als die von mir angegebenen Quellen
  und Hilfsmittel nicht benutzt und die den benutzten Werken wörtlich oder
  inhaltlich entnommenen Stellen als solche kenntlich gemacht habe.
  \vspace*{7ex}

  Stadt, den \today \hfill Unterschrift
    \pdfbookmark[0]{Inhalt}{contents}

    \vspace*{7ex}

  \addcontentsline{toc}{chapter}{Gender-Erklärung}
\begin{center} \sffamily\bfseries Gender-Erklärung \end{center}

Aus Gründen der besseren Lesbarkeit wird in dieser Bachelorarbeit
 die Sprachform des generischen Maskulinums angewendet. Es wird an dieser Stelle darauf hingewiesen,
 dass die ausschließliche Verwendung der männlichen Form geschlechtsunabhängig verstanden werden soll.

%  \clearpage\clearpairofpagestyles
 \cleardoublepage

\addcontentsline{toc}{chapter}{Zusammenfassung}
\thispagestyle{plain}
\section*{\abstractname}
\setcounter{page}{2}
Dies ist die Zusammenfassung auf Deutsch.
\newpage\null\thispagestyle{empty}\newpage


\tableofcontents
\setcounter{page}{3}
\cleardoublepage

\clearpage
\pagenumbering{arabic}
\blinddocument
\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.

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

First Pages only on Odd Pages with roman Page Numbers

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.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

First Pages only on Odd Pages with roman Page Numbers

Post by kaiserkarl13 »

I removed your \setcounter{page}{} commands and moved \pagenumbering{roman} to the preamble; that seems to have fixed it. If that isn't what you wanted, please describe what you want it to look like.
Post Reply