Graphics, Figures & TablesRemove Label from Figure Caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
APIb000
Posts: 2
Joined: Tue Jun 19, 2012 10:39 pm

Remove Label from Figure Caption

Post by APIb000 »

I'm using floatrow package to organise my figures, but then would like to add an image in the preliminary chapters which should not contain figure label e.g. Figure 1, but only the actual caption. I also want to eliminate the underline of caption which floatrow does. Is there a way to get around this? The code is as below:

Code: Select all

\begin{figure}[!h]
\ffigbox[\FBwidth]
{\color{blue}\includegraphics[width=6cm,height=6cm]{./Figures/flower.png}}
{\caption{To my family}}
\end{figure}
Last edited by Stefan Kottwitz on Wed Jun 20, 2012 7:39 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Remove Label from Figure Caption

Post by CrazyHorse »

Code: Select all

\documentclass[a4paper]{article}
\usepackage[demo]{graphicx}% delete [demo] later
\usepackage{caption,floatrow}
\begin{document}
\listoffigures

\begin{figure}[!htb]
\captionsetup{labelformat=empty,listformat=empty}
\ffigbox[\FBwidth]
    {\color{blue}\includegraphics[width=6cm,height=6cm]{./Figures/flower.png}}
    {\caption{To my family}}
\end{figure}

\end{document}
Post Reply