
캡션이 가능한 한 그 모습에 가깝기를 바랍니다. 이는 를 사용하여 쉽게 달성할 수 있습니다 \usepackage[skip=0pt]{caption}
. 그러나 패키지가 chemscheme
활성 상태이면 이 솔루션이 작동하지 않습니다.
을 사용하면 chemscheme
옵션이 skip=0pt
무시됩니다. 이는 테이블에서도 발생합니다. 을 계속 사용하면서 chemscheme
캡션을 그림/표 가까이로 가져오려면 어떻게 해야 합니까 ?
해결책을 제안하려고 노력하는 모든 분들께 감사드립니다.
%example of the right square image
\documentclass{report}
\usepackage{graphicx}
\usepackage[skip=0pt]{caption}
\usepackage{chemscheme} %removing this line gives the left square image
\begin{document}
\begin{figure}
\centering
\includegraphics{square.png}
\caption{chemscheme is on}
\end{figure}
\end{document}
답변1
내부적으로 사용되는 패키지 \floatsetup{captionskip=0pt}
의 도움으로 :floatrow
chemscheme
\documentclass{report}
\usepackage[demo]{graphicx}
\usepackage{chemscheme} %removing this line gives the left square image
\usepackage{caption}
\floatsetup{captionskip=0pt}
\begin{document}
\begin{figure}
\centering
\includegraphics{square.png}
\caption{chemscheme is on}
\end{figure}
\end{document}