scrreprt의 페이지 여백 역방향

scrreprt의 페이지 여백 역방향

여백이 왼쪽이 아닌 오른쪽에 있는 문서를 제공하기 위해 다음 코드를 수정할 수 있는 사람이 있습니까? 머리글은 여전히 ​​여백 위로 확장되어야 합니다.

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

답변1

형상 옵션의 left설정 을 변경합니다 . right머리글 및 바닥글 위치의 경우 오프셋을 명시적으로 0pt로 설정합니다. (이게 왜 필요한지는 모르겠습니다.)

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

머리글과 바닥글의 위치를 ​​표시하기 위해 headsepline옵션 을 사용했습니다 .footsepline

여기에 이미지 설명을 입력하세요

관련 정보