3

I have used this code but there is unsuitable distance between caption and figure. Can anyone help me?

\documentclass{article}
\usepackage{graphics}

\begin{document}
\begin{figure}
\centering
\includegraphics[width=\columnwidth]{solpro.pdf} 
 \caption{flowchart of solution procees}
 \label{fig:fig1}
\end{figure}
\end{document}
  • then your image has some whitespace at the bottom! – user2478 Oct 14 '14 at 10:10
  • 1
    You should edit your post. Could we see what is an unsuitable distance? This probably is not due to LaTeX, but to a wrong bouding box of the image, i.e. unwanted white space at the bottom of the image. – Bernard Oct 14 '14 at 10:12
2
\documentclass{article}
\usepackage{graphics}
\usepackage[skip=.5em]{caption} %use skip=<whatever you like>

\begin{document}
\begin{figure}
\centering
%\includegraphics[width=\columnwidth]{solpro.pdf}
 \rule{34mm}{55mm}% test image
 \caption{flowchart of solution procees}
 \label{fig:fig1}
\end{figure}
\end{document}

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.