我的页面右侧有边距数字。如何将它们移至所有页面的左侧?
\documentclass[oneside]{scrbook}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{sidenotes}
\usepackage{mwe}
\usepackage[showframe]{geometry}
\geometry{paperwidth=170mm, paperheight=240mm, left=42pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt}
%
\begin{document}
\chapter{Introduction}
\section{Introduction}
\blindtext
%
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{example-image-a}%
\caption{A small rectangle put in the margin.\label{rectangle}}%
\end{marginfigure}%
%
\blinddocument
\end{document}
答案1
\marginfigure
实际上使用了\marginnote
。因此,您只需使用\reversemarginpar
并适当调整左边距即可。此外,您必须调整这些
\makeatletter
\renewcommand{\@sidenotes@adjust}{%
\hspace*{-120pt}% %% this = marginparwidth + marginparsep
}
\DeclareCaptionStyle{widefigure}{margin={-120pt,0pt},font=footnotesize}
\makeatother
代码:
\documentclass[oneside]{scrbook}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{sidenotes}
\usepackage{mwe}
\usepackage[showframe]{geometry} %% left adjusted to 142pt
\geometry{paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt}
%
\makeatletter
\renewcommand{\@sidenotes@adjust}{%
\hspace*{-120pt}% %% this = marginparwidth + marginparsep
}
\DeclareCaptionStyle{widefigure}{margin={-120pt,0pt},font=footnotesize}
\makeatother
\reversemarginpar %% use this
\begin{document}
\chapter{Introduction}
\section{Introduction}
\blindtext
\begin{figure*}[htbp]%
%\centering
\includegraphics[height=180pt,width=350pt]{example-image-c}%
\caption{An even larger rectangle. This is the widest figure option. Both, the text as well as the margin width are used for the diagram.}
\label{rectangle3}
\end{figure*}
\blindtext
%
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{example-image-a}%
\caption{A small rectangle put in the margin.\label{rectangle}}%
\end{marginfigure}%
%
\blinddocument
\end{document}