避免在环绕图上方留出空格

避免在环绕图上方留出空格

为什么wrapfigure环境不允许句子继续,而是将白色文本放在图形上方? 该图片说明了我的问题。

在此处输入图片描述

通过添加\fbox,我得到以下结果: 在此处输入图片描述

以下是 MWE:

\documentclass[12pt,danish,a4paper]{article}
\usepackage{wrapfig}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\lipsum

    \begin{wrapfigure}[10]{r}{0.5\textwidth}
    \centering
    \caption{FunFun}
    \includegraphics[width=0.4\textwidth]{Side_product_Furan.jpg}
    \label{Carbenoid}
    \end{wrapfigure}
    \noindent
    \lipsum
\end{document}

您是否发现第二个\lipsum并不遵循第一个?

答案1

您没有给出任何有关输入的线索,但看起来您有第一种形式,句子中间有一个段落中断,并且您想要第二种形式在“允许”之后没有段落中断

在此处输入图片描述

\documentclass{article}

\usepackage{wrapfig}

\begin{document}

zzzzz zzzz zzz zzz zzz zz zzzzzz
zzzzz zzzz zzz zzz zzz zz zzzzzz
zzzzz zzzz 
character thus allowing

\begin{wrapfigure}{r}{.5\linewidth}
\centering
  \rule{3cm}{3cm}
\caption{Carbenoid of something}
\end{wrapfigure}
C-H into electron rich systems such as olefins and 
alkynes. Given the oribital discussion above, the
carbene would be expected to react in the singlet
state and therefore in a concerted fashion.

aa\\aa\\aa\\aa\\aa
aa\\aa\\aa\\aa\\aa

\bigskip


\begin{wrapfigure}{r}{.5\linewidth}
\centering
  \rule{3cm}{3cm}
\caption{Carbenoid of something}
\end{wrapfigure}
zzzzz zzzz zzz zzz zzz zz zzzzzz
zzzzz zzzz zzz zzz zzz zz zzzzzz
zzzzz zzzz 
character thus allowing
C-H into electron rich systems such as olefins and 
alkynes. Given the oribital discussion above, the
carbene would be expected to react in the singlet
state and therefore in a concerted fashion.

aa\\aa\\aa\\aa\\aa
aa\\aa\\aa\\aa\\aa

\end{document}

相关内容