
Gostaria que a legenda fosse o mais próximo possível da sua figura. Isto pode ser facilmente conseguido com \usepackage[skip=0pt]{caption}
. No entanto, esta solução não funciona se o pacote chemscheme
estiver ativo.
Com chemscheme
, a opção skip=0pt
é simplesmente ignorada. Isso acontece também para tabelas. Como posso continuar usando chemscheme
, mas também aproximar a legenda da figura/tabela?
Obrigado a todos que tentam propor uma solução.
%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}
Responder1
Com a ajuda do \floatsetup{captionskip=0pt}
pacote floatrow
usado internamente por 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}