3

I'm expecting the inline figure caption should print in actual figure bottom. But inline figure is not supporting caption and how to print the caption is withing bottom of the figure. my MWE is:

![enter image description here][1]

\documentclass{book}
\usepackage{graphics,lipsum,caption}

\begin{document}
\chapter{Chapter Title}

\lipsum[1]
\includegraphics{image-a}
%\caption{The Roman numerals on this stone show how many miles it is from a town}
\lipsum[3]

\end{document}

1 Answer 1

4

enter image description here

\documentclass{book}
\usepackage{graphicx,lipsum,caption}

\begin{document}
\chapter{Chapter Title}

\lipsum[1]
\begin{center}
\includegraphics[width=.7\textwidth]{example-image-a}%
\kern-.7\textwidth
\parbox[b]{.7\textwidth}{%
The Roman numerals on this stone show how many miles it is from a town}
\end{center}
\lipsum[3]

\end{document}
2
  • How to put the caption text in the shadow box.
    – Balaji
    Nov 24, 2014 at 20:04
  • @Balaji you didn't mention shadow box in the question. It isn't clear what you mean, perhaps use \colorbox{yellow}{\parbox... to put a background to the text? Nov 24, 2014 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .