\wrapfigure 不适用于第二幅图

\wrapfigure 不适用于第二幅图

我尝试在文本不足以覆盖图形高度的环境中使用“wrapfigure”。我尝试调整图形的大小,但它失去了清晰度,看起来很糟糕。这是我的 mwe -

\documentclass[a4paper,12pt]{report}
 \usepackage{graphicx,wrapfig}
 \begin{document}

\subsubsection{The back of your bra rides up towards your shoulder blades}
\begin{wrapfigure}{r}{5.5cm}
\rule{148pt}{210pt}
\caption{The bra strap riding up to your shoulder blades}
\end{wrapfigure}
If the back of the bra rides up towards your shoulder blades it usually
indicates the back of the bra is too big. For example – if you are wearing
a 36C, it may be worth trying a 34D or even a 32DD. (Take a look at our
bra sizing guide to help you with this.) 

\subsubsection{The bra cup digs into your bust at the top creating a ‘double-bust’ effect }
\begin{wrapfigure}{r}{5.5cm}
\rule{148pt}{210pt}
\caption{The bra cup digging into your bust}
\end{wrapfigure}
If the bra cups digs into your bust at the top, it is a sure sign that
the bra cup is too small. Try the next cup size up! 

\end{document}

页面转储

请问我该如何更改它,以便第二个环绕图位于正确的位置,并且文本自然流动?

右边的彩色底部框是我想要显示第二个包裹图的地方。

答案1

wrapfig 在日志中警告说,由于图形重叠,因此无法放置图形。基本上,它已经用完了第一个图形旁边的所有文本,因此无法对第二个图形做任何有用的事情。您可以给它一点帮助:

在此处输入图片描述

\documentclass[a4paper,12pt]{report}
 \usepackage{graphicx,wrapfig}
 \begin{document}

\subsubsection{The back of your bra rides up towards your shoulder blades}
\begin{wrapfigure}[6]{r}{5.5cm}
\vspace{-\baselineskip}
\rule{148pt}{210pt}
\caption{The bra strap riding up to your shoulder blades}
\end{wrapfigure}%
If the back of the bra rides up towards your shoulder blades it usually
indicates the back of the bra is too big. For example – if you are wearing
a 36C, it may be worth trying a 34D or even a 32DD. (Take a look at our
bra sizing guide to help you with this.)

\vspace{6cm}

\subsubsection{The bra cup digs into your bust at the top creating a ‘double-bust’ effect }
\begin{wrapfigure}{r}{5.5cm}
\vspace{-\baselineskip}
\rule{148pt}{210pt}
\caption{The bra cup digging into your bust}
\end{wrapfigure}%
If the bra cups digs into your bust at the top, it is a sure sign that
the bra cup is too small. Try the next cup size up! 

\end{document}

在这里我留出了空间,以便第二个标题与第二个图形保持一致,这看起来更自然,您可以稍后添加空间,将第二个标题留在第一个图形旁边,但我认为这看起来有点奇怪,但无论哪种方式,您只需要确保有足够的内容(即使是白色)以供 wrapfig 附加图形。

相关内容