8

The vertical space below figure caption is large how to reduce it.

\documentclass[a5paper]{scrbook}

\usepackage[demo]{graphicx}


\begin{document}

\chapter{Sample chapter}

\section{Sample section}

%
%
Some text more text more text more text more text more text more text more text more text more text more text.

\begin{figure}[htb!]
\centering
\includegraphics[width=0.25\textwidth]{frog.jpg}
\caption{A test caption without label for a figure}
\end{figure}

%
Some text more text more text more text more text more text more text more text more text more text more text.


\end{document}

enter image description here

Q: Why i get typearea warning? what does it mean?

2 Answers 2

9

Updated \belowcaptionskip (default is 0pt) to a negative value:

enter image description here

On the left is the default; on the right is \setlength{\belowcaptionskip}{-\baselineskip}.

8

You can load the caption package and use this setup (adjust -5pt to your needs):

\captionsetup[figure]{belowskip=-5pt}

enter image description here

Complete code:

\documentclass[a5paper]{scrbook}

\usepackage[demo]{graphicx}
\usepackage{caption}
\captionsetup[figure]{belowskip=-5pt}

\begin{document}

\chapter{Sample chapter}

\section{Sample section}

%
%
Some text more text more text more text more text more text more text more text more text more text more text.

\begin{figure}[htb!]
\centering
\includegraphics[width=0.25\textwidth]{frog.jpg}
\caption{A test caption without label for a figure}
\end{figure}

%
Some text more text more text more text more text more text more text more text more text more text more text.


\end{document} 
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.