包装图和描述列表的奇怪行为

包装图和描述列表的奇怪行为

不确定如何准确描述这一点。pdf 如下所示:

在此处输入图片描述

图 4.6 之后,文本立即正确恢复为整行。但是,对于列表中的下一个项目description,文本表现得好像仍然需要环绕图形。

为此提供 MWE 有点复杂,因为这种行为仅在事情“恰好如此”时才会出现,但这是我为图形和列表编写的代码:

\begin{wrapfigure}[16]{R}{0.4\textwidth}
    \captionsetup{skip=0.5\baselineskip,size=footnotesize}
    \centering
    \includegraphics[width=0.35\textwidth]{Figures/VIcurves}
    \rule{.4\textwidth}{.4pt}
    \caption[Example V-I curve for solar PV panel]{Example V-I curve for solar PV panel \cite{solarex_millenia_1999}.}
    \label{fig:VIcurves}
\end{wrapfigure}

Blah blah blah

\subsubsection{Inverters}

Blah blah blah

\begin{description}
    \item[UPS inverters] use mains power to charge a battery bank, and supply ac loads with power from the batteries when mains power is not avaialable. Three 700 \si{VA} UPS inverters are in use at CREST.
    \item[Solar UPS inverters] use solar PV input to charge the batteries and supply loads, when available. One 2400 \si{VA} solar UPS inverter is in use at CREST.
\end{description}

答案1

\itemsep您可以中断并恢复描述环境,模拟两个环境之间的垂直间距:

    \documentclass{report}
    \usepackage{caption}
    \usepackage{wrapfig, siunitx}
\usepackage{enumitem}
    \usepackage{graphicx}%[demo]
    \usepackage[showframe]{geometry}
\usepackage{lipsum, calc}
\setcounter{secnumdepth}{3}
    \begin{document}
\setcounter{chapter}{4}
\setcounter{section}{4}
\setcounter{subsection}{4}
\setcounter{subsubsection}{1}

\begin{wrapfigure}[17]{R}{0.4\textwidth}
    \captionsetup{skip=0.5\baselineskip,size=footnotesize}
    \centering
    \includegraphics[width=0.35\textwidth]{hare-blazon}
    \rule{.4\textwidth}{.4pt}
    \caption[Example V-I curve for solar PV panel]{Example V-I curve for solar PV panel \cite{solarex_millenia_1999}.}
    \label{fig:VIcurves}
\end{wrapfigure}

\lipsum[5]

\subsubsection{Inverters}

Blah blah blah

\begin{description}
    \item[UPS inverters] use mains power to charge a battery bank, and supply ac loads with power from the batteries when mains power is not available. Three 700 \si{VA} UPS inverters are in use at CREST.
\end{description}
\leavevmode\vspace*{-\dimexpr\topsep + 2\partopsep + \baselineskip -\itemsep}
\begin{description}
    \item[Solar UPS inverters] use solar PV input to charge the batteries and supply loads, when available. One 2400 \si{VA} solar UPS inverter is in use at CREST.
    \item[UPS inverters] use mains power to charge a battery bank, and supply ac loads with power from the batteries when mains power is not available. Three 700 \si{VA} UPS inverters are in use at CREST.
\end{description}

\end{document}

在此处输入图片描述

相关内容