Use the \caption
macro for the (short) "heading" of the figure and just add the longer description into the figure
environment (after the \caption
and with proper vertical spacing).
\documentclass{report}
\begin{document}
\listoffigures
\chapter{foo}
\begin{figure}
\centering
\rule{1cm}{1cm}% Placeholder for actual figure
\caption{Title of my figure which is displayed in the list of figures}
\medskip
\small
Here in a new line a long description about the figure, in a smaller text
\end{figure}
\end{document}
Since you are constructing a titled colored box, I would suggest to consider the packages mdframed
or tcolorbox
for your task.
The following example code uses tcolorbox
version 3.04 (2014/05/18)
. An automatically numbered bluebox
is contructed which includes the wrapfigure
and takes 4 parameters described in the following code.
For easy references, the cleveref
package is also included which defines the \Cref
macro used in the example.
\documentclass{scrartcl}
\usepackage[skins,xparse]{tcolorbox}% version 3.04
\usepackage{wrapfig,cleveref}
\usepackage{lipsum}
% optional #1: width of the box
% optional #2: further tcolorbox options
% mandatory #3: title (caption text)
% mandatory #4: label of the box
\NewTColorBox[auto counter,
Crefname={Box}{Boxes},crefname={box}{boxes}]% <-- replace with your boxname
{bluebox}{ O{3.00in} O{} m m }{%
enhanced,width=#1,before=\wrapfigure{L}{#1},after=\endwrapfigure,
size=fbox,left=0.25cm,right=0.25cm,toptitle=0.2cm,bottom=0.2cm,
top=0.2cm,bottomtitle=0.2cm,
colframe=blue!10!white,interior hidden,coltitle=black,fonttitle=\bfseries,
title code={\draw[line width=.1cm,red,shorten <=0.25cm+3pt,shorten >=0.25cm+3pt]
(title.south west)--(title.south east);},
borderline={0.4pt}{0pt}{black,sharp corners},
title={Box~\thetcbcounter: #3},label={#4},#2}
\begin{document}
Box~\ref{boxlabel} defines all the terminologies used in this paper.
\Cref{boxlabel} defines all the terminologies used in this paper.
\lipsum[4-5]
\begin{bluebox}{My caption here}{boxlabel}
\lipsum[4]
\end{bluebox}
\lipsum[3-5]
\end{document}
Best Answer
I'm not sure, if this is what you want to achieve, but the following MWE yields the figure's caption with the citation in one line, while it excludes the italic text and the citation from the list of figures:
Please note the
caption
command in the example:The
<short version>
is used for the list of figures, while the<long version>
is placed below the image.