Removing prefix from figure captions in LaTeX

85,047

Solution 1

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}

Solution 2

You can use the caption package and do this:

\usepackage[labelformat=empty]{caption}

Solution 3

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.

Solution 4

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.

Share:
85,047

Related videos on Youtube

Werner
Author by

Werner

My first introduction to LaTeX was in 1997, and I've never looked back! Meta: [minimal working example (MWE)](http://goo.gl/dtPzv) [Welcome to TeX.SE!](http://goo.gl/z69vm) [Follow-up questions](http://goo.gl/vWjuk) [How do you accept an answer?](http://goo.gl/hzFkJ) [How can I upload an image to be included in a question or answer?](http://goo.gl/59Kig) Main: [How to look up a symbol or identify a math symbol or character?](http://goo.gl/NjJCc) [LaTeX Editors/IDEs](http://goo.gl/3f1mL) [Consistent typography](http://goo.gl/792Wc) [How to influence the position of float environments like figure and table in LaTeX?](http://goo.gl/Qzz31) [Keeping tables/figures close to where they are mentioned](http://goo.gl/290dD) [`\subseteq` + `\circ` as a single symbol (“open subset”)](http://goo.gl/pkzNr) [Setting a document in MS Word-12pt (12bp)](http://goo.gl/55uJz) [How can I convert from Microsoft Word to a LaTeX document](http://goo.gl/Itc1O) [Making a LaTeX document appear as though it were typeset in MS Word](http://goo.gl/ekR1i) [Does it matter if I use `\textit` or `\it`, `\bfseries` or `\bf`, etc.](http://goo.gl/ECK5V) [Will two-letter font style commands (`\bf`, `\it`, …) ever be resurrected in LaTeX?](http://goo.gl/u98NT) [Why is `\[` … `\]` preferable to `$$`?](http://goo.gl/GvmWy) [Are `\(` and `\)` preferable to `$`?](http://goo.gl/ClGXg) [How do I update my TeX distribution?](http://goo.gl/CqWB1) [Where do I place my own `.sty` files, to make them available to all my `.tex` files?](http://goo.gl/ByVnz) [What is the use of percent signs (`%`) at the end of lines?](http://goo.gl/awJkj) [What do `\makeatletter` and `\makeatother` do?](http://goo.gl/HYwLd) [Should I use `\center` or `\centering` for figures and tables?](http://goo.gl/eePVj) [How to change the name of document elements like “Figure”, “Contents”, “Bibliography” etc.?](http://goo.gl/CQdc6) [`eqnarray` vs `align`](http://goo.gl/3R7Ln) [Print programs with its proper syntax](http://goo.gl/kimkM) [Column and row padding in tables](http://goo.gl/X3kPH) [How do I find out what fonts are used in a document/picture?](http://goo.gl/YsWvA) [Why do the less than symbol (`<`) and the greater than symbol (`>`) appear wrong as upside down exclamation (`¡`) or question mark (`¿`)?](http://goo.gl/itXfwX) [Continuous v. per-chapter/section numbering of figures, tables, and other document elements](http://goo.gl/ZIl7S4) [Which package version am I using?](http://goo.gl/sBfU5X) [How do you superimpose two symbols over each other?](http://goo.gl/CYcV6A) 121799 237299 237902 238301 240002 241266 242026

Updated on May 24, 2020

Comments

  • Werner
    Werner about 4 years

    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?

  • Peter
    Peter over 13 years
    oops, sorry should have taken that into account. I've updated my answer.
  • Admin
    Admin over 13 years
    I want this to apply only to figures in one section though, not globally
  • BGTP33
    BGTP33 over 9 years
    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.
  • Lenar Hoyt
    Lenar Hoyt over 9 years
  • rbaleksandar
    rbaleksandar over 7 years
    Works like a charm for subfloat too. Nice!
  • Max
    Max over 5 years
    For me it works fine with beamer. According to the package's documentation beamer support was added in version 3.1 in 2007.