Removing prefix from figure captions in LaTeX
Asked Answered
F

5

53

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?

Funicular answered 1/10, 2010 at 19:14 Comment(0)
L
64

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}
Liable answered 19/2, 2013 at 3:0 Comment(3)
This 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.Myrmidon
For beamer: tex.stackexchange.com/questions/82456/…Gonophore
For me it works fine with beamer. According to the package's documentation beamer support was added in version 3.1 in 2007.Facing
F
28

You can use the caption package and do this:

\usepackage[labelformat=empty]{caption}
Froemming answered 1/10, 2010 at 19:21 Comment(2)
oops, sorry should have taken that into account. I've updated my answer.Froemming
I want this to apply only to figures in one section though, not globallyFunicular
I
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.

Incumber answered 28/8, 2011 at 15:2 Comment(1)
Works like a charm for subfloat too. Nice!Pinkston
D
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.

Delectable answered 20/5, 2013 at 11:22 Comment(0)
D
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---}
Dowdy answered 23/5, 2020 at 20:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.