如何显示全宽文本。奇数页结果不是预期结果。偶数页结果是正确的。
\documentclass[twoside=semi]{scrbook}
\usepackage{sidenotes}
\usepackage[demo]{graphicx}
\usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt
%,bindingoffset=30pt
,asymmetric
,reversemarginpar
,showframe]{geometry}
\usepackage{blindtext}
\makeatletter
% fullwidth environment, text across textwidth+marginparsep+marginparwidth
\newlength{\overhang}
\setlength{\overhang}{\marginparwidth}
\addtolength{\overhang}{\marginparsep}
%
\newenvironment{fullwidth}
{\ifthenelse{\boolean{@twoside}}%
{\begin{adjustwidth*}{}{-\overhang}}%
{\begin{adjustwidth}{}{-\overhang}}%
}%
{\ifthenelse{\boolean{@twoside}}%
{\end{adjustwidth*}}%
{\end{adjustwidth}}%
}
\makeatother
\begin{document}
\begin{fullwidth}
%\secion{hh}
\minisec{hh}
\blindtext
\end{fullwidth}
\clearpage
\begin{fullwidth}
%\secion{hh}
\minisec{hh}
\blindtext
\end{fullwidth}
\end{document}
错误奇数页
甚至页面结果都是正确的
答案1
解决方案来自 斯佩拉韦使用 adjustwidth* 环境
\documentclass[twoside=semi]{scrbook}
\usepackage{sidenotes}
\usepackage[demo]{graphicx}
\usepackage{changepage}
\usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt
%,bindingoffset=30pt
,asymmetric
,reversemarginpar
,showframe]{geometry}
\usepackage{blindtext}
\makeatletter
% fullwidth environment, text across textwidth+marginparsep+marginparwidth
\newlength{\overhang}
\setlength{\overhang}{\marginparwidth}
\addtolength{\overhang}{\marginparsep}
\makeatother
\begin{document}
\chapter{One}
\blindtext
\begin{adjustwidth*}{-\overhang}{}
\section{One-one}
\blindtext
\end{adjustwidth*}
\clearpage
\begin{adjustwidth*}{-\overhang}{}
\section{One-two}
\blindtext
\end{adjustwidth*}
\end{document}
解决方案来自 斯佩拉韦使用 addmargin* 环境(KOMA-Script 特定)
\documentclass[twoside=semi]{scrbook}
\usepackage{sidenotes}
\usepackage[demo]{graphicx}
\usepackage{changepage}
\usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt
%,bindingoffset=30pt
,asymmetric
,reversemarginpar
,showframe]{geometry}
\usepackage{blindtext}
\makeatletter
% fullwidth environment, text across textwidth+marginparsep+marginparwidth
\newlength{\overhang}
\setlength{\overhang}{\marginparwidth}
\addtolength{\overhang}{\marginparsep}
\makeatother
\begin{document}
\chapter{One}
\blindtext
\begin{addmargin*}[-\overhang]{0em}
\section{One-one}
\blindtext
\end{addmargin*}
\clearpage
\begin{addmargin*}[-\overhang]{0em}
\section{One-two}
\blindtext
\end{addmargin*}
\end{document}