I'd like to make my own caption inside \caption{}
in figures of LaTeX. How can I turn off the "Figure " prefix from the captions that appear?
Asked
Active
Viewed 9.7k times
5 Answers
63
First use the caption
package and then use the command \caption*
in this way
\usepackage{caption}
...
\caption*{some text}
instead of \caption{some text}
Logic is the same in avoiding numbering of sections and subsections and many other objects
\subsection*{Name of unnumbered subsection}

Vladimir
- 740
- 5
- 11
-
4This does not work in a figure environment for the Beamer class at least. Actually none of these options work in Beamer as far as I can tell. – BGTP33 Nov 07 '14 at 16:01
-
For beamer: https://tex.stackexchange.com/questions/82456/how-to-remove-figure-caption-prefix-figure-in-beamer – Lenar Hoyt Dec 17 '14 at 02:55
-
2For me it works fine with beamer. According to the package's documentation beamer support was added in version 3.1 in 2007. – Max Jan 22 '19 at 07:59
25
You can use the caption
package and do this:
\usepackage[labelformat=empty]{caption}

Peter
- 127,331
- 53
- 180
- 211
-
oops, sorry should have taken that into account. I've updated my answer. – Peter Oct 01 '10 at 20:02
-
6
13
Instead of defining the caption style when loading the caption
package, set it up afterwards:
\usepackage{caption}% http://ctan.org/pkg/caption
...
\captionsetup[figure]{labelformat=empty}%
These changes will now only pertain to figure
environments.

Werner
- 14,324
- 7
- 55
- 77
9
You can use
\captionsetup[figure]{labelformat=empty}
to turn the caption text off and then use
\captionsetup[figure]{labelformat=default}
to turn the caption text on again if you want it to be different in different sections.

Soner Gönül
- 97,193
- 102
- 206
- 364

Adam
- 99
- 1
- 1
0
If you don't want to use additional packages, here is a work-around to put a caption (text) below the figures:
\includegraphics[width=1\linewidth]{figurename}\\[1mm]
{---your caption---}

berkin
- 33
- 5