Seitenrand im Skript umkehren

Seitenrand im Skript umkehren

Könnte jemand den folgenden Code ändern, um ein Dokument zu erstellen, dessen Ränder rechts statt links sind? Die Kopfzeile sollte trotzdem über den Rand hinausgehen.

\documentclass[twoside=semi, titlepage]{scrreprt}

\usepackage[
vmargin=2.5cm, heightrounded,
left=6cm, right=2cm,
marginparwidth=3.5cm, marginparsep=0.5cm,
showframe
]{geometry}



\usepackage[
automark,
headwidth=textwithmarginpar:-\the\marginparwidth-  \the\marginparsep:marginpar,
footwidth=textwithmarginpar:-\the\marginparwidth-\the\marginparsep:marginpar
]{scrlayer-scrpage}
\clearpairofpagestyles
\ofoot{\pagemark}
\ohead{\normalfont MATH UNIT}
\usepackage{blindtext}
\begin{document}

\section{Section}
\Blindtext\marginpar{Margin text}
\Blindtext\marginpar{Margin text}
\Blindtext[1]
\blinddocument
\end{document}

Antwort1

Ändern Sie die Einstellungen für leftund rightin den Geometrieoptionen. Stellen Sie für die Kopf- und Fußzeilenposition die Offsets explizit auf 0pt ein. (Ich weiß nicht, warum das notwendig ist.)

\documentclass[twoside=semi, titlepage]{scrreprt}
\usepackage[
vmargin=2.5cm, heightrounded,
left=2cm, right=6cm,% <- changed
marginparwidth=3.5cm, marginparsep=0.5cm,
showframe
]{geometry}

\usepackage[
automark,
headsepline,% <- to show the headwidth
footsepline,% <- to show the footwidth
headwidth=textwithmarginpar:0pt:0pt,% <- changed
footwidth=textwithmarginpar:0pt:0pt% <- changed
]{scrlayer-scrpage}
\clearpairofpagestyles
\ofoot{\pagemark}
\ohead{\normalfont MATH UNIT}

\usepackage{blindtext}% dummy text
\begin{document}

\section{Section}
\Blindtext\marginpar{Margin text}
\Blindtext\marginpar{Margin text}
\Blindtext[1]
\blinddocument
\end{document}

headseplineBeachten Sie, dass ich die Optionen und verwendet habe , footseplineum die Positionen von Kopf- und Fußzeile anzuzeigen.

Bildbeschreibung hier eingeben

verwandte Informationen