![将书格式化为两栏,一侧为文本,另一侧为图像](https://linux22.com/image/403377/%E5%B0%86%E4%B9%A6%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%B8%BA%E4%B8%A4%E6%A0%8F%EF%BC%8C%E4%B8%80%E4%BE%A7%E4%B8%BA%E6%96%87%E6%9C%AC%EF%BC%8C%E5%8F%A6%E4%B8%80%E4%BE%A7%E4%B8%BA%E5%9B%BE%E5%83%8F.png)
答案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}