wrapfigure と説明リストの奇妙な動作

wrapfigure と説明リストの奇妙な動作

これをどう説明すればいいのかよくわかりません。 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説明環境を中断して再開し、 2 つの環境間の垂直間隔をエミュレートできます。

    \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}

ここに画像の説明を入力してください

関連情報