包裝圖和描述清單的奇怪行為

包裝圖和描述清單的奇怪行為

不知道到底如何描述這一點。 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}

在此輸入影像描述

相關內容