Margem reversa da página no scrreprt

Margem reversa da página no scrreprt

Alguém poderia alterar o código a seguir para fornecer um documento cujas margens estejam à direita, e não à esquerda? O cabeçalho ainda deve ultrapassar a margem.

\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}

Responder1

Altere as configurações leftnas rightopções de geometria. Para a posição do cabeçalho e rodapé, defina explicitamente os deslocamentos para 0pt. (Não sei por que isso é necessário.)

\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}

Observe que usei opções headseplinee footseplinepara mostrar as posições do cabeçalho e rodapé.

insira a descrição da imagem aqui

informação relacionada