caption positioning

13 views
Skip to first unread message

r

unread,
Jul 20, 2009, 11:31:29 AM7/20/09
to LaTeX Users Group
I tried to add the following text to the previous post but failed
("You cannot reply to this topic because it is more than 60 days old
or has been closed by a manager.":

Thanks to the book a guide to latex 2ε: if you place the caption
command below the object, the text appears at the bottom.

\usepackage{caption}
...
\begin{figure}
\begin{center}
\includegraphics{graphicfile}
\end{center}
\caption{Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.}
\end{figure}

Werner Grundlingh

unread,
Jul 20, 2009, 11:55:01 AM7/20/09
to LaTeX Users Group
Not sure what could have caused that error in replying to a previous
post. However, you're right - placing the \caption[...]{...} command
at the top places the caption at the top of the figure/table.
Similarly, placing it at the bottom would drop the caption at the
bottom of the figure/table. There are also many more formatting
options available for styling your floating environment captions. This
is possible through the caption package, available online via CTAN
from
http://tug.ctan.org/pkg/caption

Werner

r

unread,
Jul 20, 2009, 12:30:46 PM7/20/09
to LaTeX Users Group
I did not see this advice in the documentation for the package,
therfore I made this post in case someone else has the same
requirement.
Reply all
Reply to author
Forward
0 new messages