Wrapfig 将图片放在文档末尾

Wrapfig 将图片放在文档末尾

我正在尝试使用换行图将图像放在一些文本旁边。但是,当编译时,图像被放置在文档的最末端,距离其应在的位置有几页远。

我使用的 LaTeX 源是:

\begin{solution}
(b) No: Because the graph looks like:

    \begin{wrapfigure}{r}{0.5\textwidth}
      \begin{center}
        \includegraphics{4x4graph.png}
      \end{center}
    \end{wrapfigure}
 The marked vertexes have odd degree.  As you draw a path the degree of the start and end vertex decrease by 1, and every vertex on the path in between decrease by 2.  This means that the only way to hit every edge, is for each of the odd degree vertices to be the start and end of a path, but as there are 5 strings, you can only start and end at 10 vertices and as there are 12 odd vertices  2 of them cannot be the start and end of a path, so it is not possible to make this graph.
\end{solution}

答案1

如果solution环境是根据list环境定义的(如果使用工具定义,情况就是如此ntheorem),则wrapfigure无法在其中使用,而且对此几乎无能为力。抱歉。

答案2

如果您希望图片包裹一个段落,请将wrapfig环境放在它前面,并wrapfig在源中的环境后面留一些空行。

相关内容