答案1
谢谢你的帮助,我在另一个帖子中找到了答案线,它看起来是这样的。这样做的目的是让图表从页面顶部开始向下移动,而不是与出现边注的文本对齐。
\documentclass{book}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage{flowfram}
\newflowframe{0.65\textwidth}{\textheight}{0pt}{0pt}[main]
\newdynamicframe{0.3\textwidth}{\textheight}{0.7\textwidth}{0pt}[sidepanel]
% For two-sided documents, swap locations on odd pages
\setflowframe*{main}{evenx=0.35\textwidth}
\setdynamicframe*{sidepanel}{clear,evenx=0pt}
\newcommand{\sidefigure}[1]{%
\appenddynamiccontents*{sidepanel}{%
\begin{staticfigure}
\centering
#1%
\end{staticfigure}
\vspace{\baselineskip}%
}%
}
\begin{document}
\lipsum[1]
\sidefigure{%
\includegraphics[width=\linewidth]{test-image}
\caption{Sample Figure}
\label{fig:sample1}
}
\lipsum[2]
\sidefigure{%
\includegraphics[width=\linewidth]{test-image}
\caption{Another Sample Figure}
\label{fig:sample2}
}
\lipsum[3-5]
\sidefigure{%
\includegraphics[width=\linewidth]{test-image}
\caption{A Third Sample Figure}
\label{fig:sample3}
}
\end{document}