{captions} is about captions for figures, tables and other, custom-defined floats or non-floating illustrations which are formatted to look identical to these floats. A popular package is caption.

learn more… | top users | synonyms

3
votes
3answers
339 views

Centering captions under figures

Is there a way to do this? All mine are left aligned; however, I want them centered. How is it done? Also related: how do I embolden all of my captions? ...
4
votes
3answers
177 views

How to change caption in a figure?

Let us consider the following example: \documentclass{book} \usepackage{graphicx} \begin{document} \title{\textbf{ \Huge{My \LaTeX}}} \author{\textbf{MKS}} \date{\today} \maketitle ...
4
votes
1answer
188 views

float and caption margin mayhem

I cannot get my caption left justified correctly for wide floats. I have facing pages, and after many experiments, the closest I've come to success is a proper layout only for odd pages. I would like ...
1
vote
1answer
282 views

Captioning a figure with multiple subfigures all at once

I want to create a figure with subfigures, and then reference them from the caption of the main figure: \begin{figure} \begin{subfigure} A figure \caption{} \label{a} ...
2
votes
1answer
6k views

Caption below the figure and aligned with left side of figure

How do I get my caption below the figure and at the same time aligned with left side of my figure?
1
vote
0answers
3k views

Caption package error [closed]

Since today I am getting an error message when I use the caption package. This is a minimal working example: \documentclass[12pt,a4paper]{report} \usepackage[latin1]{inputenc} \usepackage{amsmath} ...
2
votes
1answer
650 views

Thesis class error Extra } or forgotten \endgroup on second compile (not first) in float caption

I am adapting a paper to a thesis format, and I am getting an error on the second compile of my document (the first one seems to work fine). I am using TeXshop, v. 2.47; I am compiling using pdfTex ...
2
votes
1answer
141 views

changing caption for wrapfigure

I am using wrapfigure to include both a table and a picture. However, because it's in wrapfigure, the table caption comes out labeled as "Figure X" rather than table x. Is there any way I can get ...
4
votes
2answers
953 views

KOMA-Script captionbeside and custom floats

In a KOMA-Script report, I want to use a custom float for algorithms and display an algorithmic-environment with a caption right next to it instead of below. Apart from the fact that I have to wrap ...
4
votes
2answers
820 views

Remove prefix from figure caption in tufte-book document class

I want to get rid of prefixes in figure captions. I use MikTeX, XeLaTeX and tufte-latex style class. I've tried three variants: \caption*{Foto} \usepackage[labelformat=empty]{caption} ...
2
votes
1answer
3k views

Can I use a \caption in a tabu environment?

Is it possible to use \caption between a tabu environment? I have tried using these packages: \usepackage{tabularx} \usepackage{longtable} \usepackage{tabu} And when I write this in my code: ...
5
votes
1answer
3k views

Using 'caption' package with 'thesis' class - undefined control sequence [closed]

I am trying to compile my PhD thesis. It worked a while ago (a few months or so) but something has somehow changes since then because I get an undefined control sequence error relating to the ...
10
votes
3answers
1k views

TikZ: How to center captions below figures in matrix

I have three figures that I want to align in a matrix. Each figure is drawn in a different way and needs a caption that is centered below the corresponding figure. Here is what I currently have: ...
9
votes
2answers
11k views

Changing label name for algorithm

I have this algorithm: \begin{algorithm} \captionsetup[algorithm]{name=MegaAlgorithm} \DontPrintSemicolon \KwData{$G=(X,U)$ such that $G^{tc}$ is an order.} \KwResult{$G’=(X,V)$ with $V\subseteq U$ ...
8
votes
2answers
9k views

Figure and table side by side with common caption

I'm not a LaTeX expert, and I want to align a table and a figure side by side, with a common caption; the table and the figure should be aligned to the bottom, too. I tried this: \begin{figure} ...
2
votes
1answer
1k views

How can I left align the text in the figure/table caption?

How can I left align the text in the figure/table caption? This is the text I am using to add an image \begin{figure}[htbp] \centering ...
11
votes
1answer
5k views

Small default distance between the caption and the table

By default (in the article class), a table caption (without letters with depth) is very close to a table with two or more rows. Only if the table has one row then the caption and the table will be at ...
3
votes
1answer
333 views

Subfloatrow: Omitted incrementation in figure numbering when using subfigures

I suspect this question is slighty related to another question found in subfloatrow: incorrect continued numbering. Trying out the MWE below, the incrementation of the figure number of figure two is ...
4
votes
2answers
810 views

How to change the caption name in the article class when using babel?

I have used the following lines in my preamble \usepackage{babel} \addto\extrasfrench{% \providecommand{\og}{\leavevmode\flqq~}% \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}% } ...
7
votes
1answer
807 views

Caption positioned at the side of the figure

I would like to have the caption of the Figure on the side of the figure. Plus I want to control caption width. Also, caption and Figure should be aligned all the way to the left and right of the ...
4
votes
1answer
398 views

subfloatrow: incorrect continued numbering

I am using the subfloatrow environment (provided by the floatrow package) to organise the layout of figures for my thesis. For the MWE provided below, the numbering of the sub-figures in the second ...
6
votes
2answers
8k views

Figure and Table next to each other (memoir class) [duplicate]

To save space, I would like to place the following table next to each other. Each has a separate caption. I have this, I want this, Sample code, \documentclass[]{memoir} ...
3
votes
2answers
536 views

table with blank caption but table label

If I don't put a caption on my table, I don't get the "Table 2.2" label underneath it. If I add a blank caption, I get "Table 2.2:". How do I get rid of the ":"? I am using memoir and ...
3
votes
2answers
651 views

Defining a newenvironment with optional caption

I am trying to define a new table environment with optional caption. However, if I don't pass it the caption, I am still getting the "Table 1.1:" below the table. What am I missing here? Thanks. ...
5
votes
1answer
2k views

How can I insert the symbols into the caption of a figure?

I am having plots in my text. In the plots, the data sets are represented by different symbols. I'd like to explain data sets by using the symbols in the caption of the figure too. How can I insert ...
0
votes
1answer
546 views

Can't use caption in new environment

I am trying to make some consistent tables and looked into the nenenvironmentcommand. However, I am having trouble having a caption and using the defined environment at the same time. newenvironment ...
2
votes
1answer
1k views

using subfig changes fonts in captions of figures

I used package subfig(for using \subfloat). This undoes the special font size for the captions in the figures. Now they are of same size as normal text. How to counter that? The Document class and ...
3
votes
1answer
738 views

How can you place a figure caption inside a table using LyX?

I have 3 graphs I would like to use in a LyX document. In order to save space I have placed the 3 graphs into a 2x2 table and in the final box I have inserted the figure caption. When I try and ...
21
votes
4answers
28k views

How to add line break to caption without using caption package

I wish to add a line break to a caption, but I would wish to avoid adding of caption package. Is it possible? \documentclass{article} \usepackage[format=plain, ...
7
votes
1answer
20k views

Setting font size for caption package

I wish to set the font size for caption package, how should I do it, now I have this in my preamble \usepackage[skip=2pt]{caption}
7
votes
3answers
315 views

\autoref doesn't work correctly when used in tufte-book

i want to use the \autoref command (from the hyperref package) in the document-class tufte-book. mini-example: \documentclass{tufte-book} \usepackage{hyperref} \begin{document} ...
4
votes
1answer
6k views

pgfplot — label, referencing and caption

I've the following pgfplot: \begin{center} \begin{tikzpicture} \begin{axis}[ xlabel = Number of threads (\#), ylabel = Task completion time (seconds), ...
2
votes
1answer
140 views

Smash table footnotes of floatrow

I am using the smashcaption redefinition for small images and tables with their caption situated in the margin. It smashes the caption but not additional footnotes. Furthermore, since the caption is ...
1
vote
2answers
1k views

Caption format changing

I want my captions of figures to be formated like this: 1 pav. First Caption 2 pav. Second Caption Furthermore, I need my captions to be centered. How can I redefine this?
5
votes
1answer
475 views

Error when using \BC (from abbrevs) in \caption

I'm using the abbrevs package to provide nicer formatting of BC/AD in dates, but when I use one of the commands in a caption I get an error. Example document: \documentclass{article} ...
1
vote
1answer
467 views

Different captions for float and non float figures

I use following code for nonfloat figures.. \begin{minipage}[c]{\textwidth} \centering \includegraphics[width=3.0in]{myimage.eps} \captionof{figure}{Caption for image} ...
9
votes
1answer
700 views

Block quote in figure caption

I need to put a multi-line quote in a figure caption. I've put code together that does this correctly if I override several errors, but I'd like the document to compile without errors. The code: ...
10
votes
3answers
11k views

Centering figure captions in IEEEtran

I am working on a paper using the IEEEtran template in LyX. I have run into a problem: While the contents (in this case, a table) of the figure float are centered, the caption is aligned to the left ...
4
votes
2answers
738 views

Common style for global TOC, LOF, LOT and titletoc partial TOCs (with hyperref & caption)

I am currently writing my PhD thesis, and I have trouble defining a common style for my global TOC and the partial TOCs generated by titletoc. Basically if you check the following MWE, I like the ...
4
votes
2answers
359 views

Table of 2x2 tikzpictures

I'm attempting to condense 4 tikzpictures into a smaller space in my document. The solution I have is as follows: \documentclass{article} \usepackage[paperwidth=6in, paperheight=4in]{geometry} ...
6
votes
1answer
28k views

How to remove space after image caption? [duplicate]

I am writing one article in which i need to write one image and its caption. I found space after caption seems to be more than normal. \begin{figure}[!ht] \centering ...
2
votes
1answer
303 views

Horizontal margincaption alignment using floatrow

I want to switch from sidecap to floatrow in putting figure captions in the margin. When using sidecapthe text is perfectly positoned within the margin. When i use floatrow there is a slight shift. ...
3
votes
1answer
2k views

How to control line spacing and subscript location in captions?

I just started using mhchem and am having problems with captions. Subscripts from mchem overlap with superscripts. I can think of two possible solutions (and trivially not using mchem in captions): ...
4
votes
3answers
2k views

Can listoffigures use the long caption instead?

Throughout my document I have figures with captions set like this example: \caption[Surface elevation change for Antarctica and Greenland]{Rate of change of surface elevation for Antarctica and ...
5
votes
2answers
4k views

Horizontally shifting subfloat captions in figure environement!

When using subfloat, the caption centers with regards to the figure width. However I want to center it with regards to the axes. How to horizontally shift the captions (manually) for all the ...
5
votes
1answer
462 views

Command to insert filename in caption of a listing

I would like to have a command to insert listings that contain the filename in the caption. This works well as long as there is no "_" etc. in the filename. I also tried the suggestion from a ...
2
votes
1answer
471 views

Customize the position of a figure [duplicate]

Hello although this question has been asked several times, I still can't position my figures at the right place. I have installed the float and the here packages. and the code is as follow: ...
5
votes
1answer
224 views

color an entry in the list of figures

I have a command that prints an image and will be used inside a certain environment. First I run a test if the file exists and is a valid image file (see this question for the definition of ...
0
votes
2answers
98 views

personal caption name [duplicate]

I have a table that I would like to insert like a figure, and I want that in the caption appears "Table 1" instead of "Figure 1". This in one example of what I did: ...
4
votes
2answers
721 views

Over wide figure with caption of the same width that both spill out of the right margin and are aligned flush left

This question is similar to that question, but instead I want to place a figure caption flush left aligned to an overwide figure so that it spills out of the right margin. MWE ...