I want 2 different types of captions. One for table and another to figures.

I use this code for tables:


and this for figures:


the difference between things is in nooneline.

It is possible?

1 Answer 1


If you pass options at package load, these options are set for all type of supported captions. However, if you use \captionsetup[<type>]{<options>} you can localize the settings to floats of type <type>:

enter image description here


  \caption{A table caption}

  \caption{A figure caption}

Use the appropriate settings you require for each setup in this, individual way.

  • dont works. \usepackage{caption} \captionsetup[table]{labelfont=bf,nooneline} \captionsetup[figure]{labelfont=bf}
    – user46548
    Jun 23, 2014 at 18:04
  • 2
    @user46548: nooneline is deprecated (see the caption documentation; section C.1 caption v1.x: "This version [v.3] of the caption package still supports the old options and commands provided by the version 1.0 to 1.4 of this package. So there shouldn’t occur any problems compiling old documents, but please don’t mix old options and commands with the new ones. This isn’t supported and can cause ugly side effects.") Try with singlelinecheck=off instead of nooneline.
    – Werner
    Jun 23, 2014 at 18:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .