O pacote Chemscheme interfere nas legendas

O pacote Chemscheme interfere nas legendas

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

<code>chemscheme</code> redefine o espaço entre figuras e legendas

Responder1

Com a ajuda do \floatsetup{captionskip=0pt}pacote floatrowusado 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}

informação relacionada