答案1
以下是您给出的 mwe 的示例。重要的是\reversemarginpar
\documentclass{article}
\usepackage{xcolor}
\usepackage{marginnote}
\usepackage{sidenotes}
\usepackage{lipsum} % provides the dummy text
\usepackage{mwe} % provides the example image
\reversemarginpar
\begin{document}
\lipsum[1]
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{example-image-a}%
\caption{This is in the margin.}%
\end{marginfigure}%
\lipsum[2]
\end{document}
\reversemarginpar
您还可以使用和来回切换\normalmarginpar
\documentclass{article}
\usepackage{xcolor}
\usepackage{marginnote}
\usepackage{sidenotes}
\usepackage{lipsum} % provides the dummy text
\usepackage{mwe} % provides the example image
\reversemarginpar
\begin{document}
\lipsum[1]
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{example-image-a}%
\caption{This is in the margin on the left.}%
\end{marginfigure}%
\normalmarginpar
\begin{marginfigure}
\includegraphics[width=\marginparwidth]{example-image-a}
\caption{This is in the margin on the right}
\end{marginfigure}
\lipsum[2]
\end{document}