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두 환경 사이 의 수직 간격을 에뮬레이션하여 설명 환경을 중단하고 재개할 수 있습니다 .

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

여기에 이미지 설명을 입력하세요

관련 정보