{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

10
votes
2answers
8k views

LaTeX (beamer) — Is there a way to suppress the caption label of “Figure X:” or “Table X:”?

I am making a beamer presentation of someone else's research paper (so I don't have the original tex code). I am using pdfs of tables in the presentation but wanted to cut out all of the original ...
8
votes
1answer
6k views

Table caption without the word “table”

Whenever I put \begin{table} \begin{tabular} ... \end{tabular} \caption{My great table} \end{table} It would end up with the name "Table 1: My great table". I don't want the prefix "Table 1:". Is ...
5
votes
2answers
3k views

Multi-page Figure with subcaption package

I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have ...
17
votes
3answers
639 views

Is there any difference between nesting \label in \caption and putting \label outside \caption?

Is there any difference in behavior between the following coding styles? Coding style A: \caption does not enclose \label. \begin{figure} \includegraphics{cat.eps} \caption{This is a cat.} ...
12
votes
2answers
821 views

Gray box around figure with a separate gray box around caption

My university requires that all figures in a thesis follow this pattern: I'm very new to LaTeX, so far my best attempt has been this: \begin{SCfigure} \colorbox{darkgray}{ ...
12
votes
2answers
11k views

What is the correct way to caption a `tikzpicture`?

I have some trees drawn with tikz and I'd like to have some text associated with them. I can use \caption within figure, but not tikzpicture. UPDATE: Thanks for your advice. figure seems to put my ...
11
votes
1answer
5k views

Table captions are always placed below

I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the ...
8
votes
2answers
3k views

Subfig label positioning

Can anyone tell me how to change the horizontal position of subfigure labels? I have: \captionsetup[subfigure]{labelformat=simple,position=top} Is there something like: {position=topleft} to ...
7
votes
4answers
4k views

Table with foot note

I have a table and some of the number inside has some symbol like * and ** which should be explianed as footer ( at the end of the table not the page) I dont know how to do that and I dont want to ...
6
votes
1answer
6k views

The space between the table and its caption is very small

I have a table written like this: \begin{table} \centering \begin{tabular}{|l||c|c|} \hline&Column 1&Column 2\\ \hline\hline cell1 & cell2 & cell3 \\ ...
5
votes
2answers
3k views

\footnotetext on different page from \footnotemark

I was forced to use \footnotetext and \footnotemark on because I needed a footnote in a couple of captions. Of the three times this is done in the article: one works fine, the second appears on the ...
3
votes
2answers
457 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
9
votes
2answers
582 views

Why does manually loading hyperref change the font size for captions in Tufte documents?

I'm using Tufte document classes and need to manually load hyperref rather than have it loaded by the Tufte class. So I'm using the nohyper option with the document class, and later use ...
7
votes
2answers
1k views

How do I make figure captions span multiple pages?

How do I make figure captions span multiple pages? I have a very long caption for a figure and would like it to carry on to the next page. EDIT: I would like this to work in both one sided and two ...
7
votes
2answers
999 views

minted's listing environment with hyperref and caption package together

I use the minted package for code highlight. I use its listing environment. I also use the hyperref package to provide links all through my document: figures, tables, listings, etc. If I import the ...
6
votes
4answers
3k views

Table caption align top-right

How I can align caption for table like this? Current code: \begin{table}[h] \caption{} \centering \begin{tabular}{|l|r|r|l|} \hline № & X & Y & Время ...
6
votes
1answer
779 views

Captions for tables included via pdfpages

I have a large number of multipage longtables as independent pdfs. I am including these pdfs in my main document using the pdfpages package. My code for including the PDFs currently looks like this: ...
4
votes
3answers
2k views

How to create an unnumbered algorithm with a caption?

I want to do something like: \begin{algorithm*} \caption{My unnumbered algorithm} % etc. etc. \end{algorithm*} or \begin{algorithm} \nonumbercaption{My unnumbered algorithm} % etc. etc. ...
3
votes
2answers
2k views

remove colon from table name

I'm using two-column article document class. Long table Name is displayed in the following format: Table 1: table caption goes here. But I want to change in this way: Table 1 table caption ...
11
votes
1answer
119 views

Using a caption label as a title

I have done some searching but not had much luck. I would like to be able to see and use the label of my caption as a 'title' for the caption text. An example: \documentclass[11pt]{article} ...
11
votes
2answers
752 views

How can I put the empty subfloat subcaptions to the right?

I'm putting two figures above each other with \subfloat from the subfig package. Their captions are empty as I just want to describe the figures with the main caption, but I still want the (a) and (b) ...
11
votes
3answers
3k views

Line up captions on side by side figures

I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a ...
8
votes
1answer
3k views

Put text to the right of figures

How can I display text to the right of figure, vertically centered? "Caption" is only displaying text below it, as it seems to me.
8
votes
1answer
260 views

Citations in captions as separate argument

Whenever I include a table of a figure in my research papers, I cite the source of the information in the caption itself. However, I don't want this citation to appear in the List of figures/tables. ...
7
votes
1answer
355 views

How to use caption and label in grammar environment?

I can't manage to add a caption and a label to my grammar environment: \documentclass{article} \usepackage{syntax} \grammarindent 80pt \begin{document} \begin{grammar} <condition> ::= "$" ...
7
votes
2answers
4k views

Table numbering mismatch in caption and in text

I have created 2 tables in my LaTeX document \begin{table}[hb] \centering \begin{tabular}{|c|c|r|} \hline ... not important... \end{tabular} \label{tab:2} \caption{Določanje prioritet mojstrov ...
6
votes
1answer
492 views

Alignment of Margin caption with floatrow and caption

I want my captions in marginpar to be left aligned. I am using raggedright option in caption package along with floatrow package. The captions are left aligned only for long captions. MWE ...
6
votes
1answer
834 views

Captioning nested subfigures with subcaption

The following creates a figure with three images arranged appropriately. If I remove the two \caption{} lines, it numbers the main subfigures as I'd like, and keeping the two \caption{} lines puts ...
6
votes
1answer
478 views

How to localize label using algorithm and algorithmic packages

I am writing a paper in Italian and I need to include pseudo code in my latex document so I am currently using the algorithm and algorithmic packages. At the top of every algorithm the label Algorithm ...
6
votes
2answers
994 views

How to give any figure a caption based on its horizontal size?

I have figures in both portrait and landscape and of various sizes. I'm trying to find a leeway to give any figure a caption based on its horizontal size. In my thesis.cls file, I've already set a ...
5
votes
1answer
417 views

Caption spacing using algorithm2e

I am trying to add some spacing above/below captions of algorithms using the algorithm2e package. Consider the following example: \documentclass[a4paper]{article} \usepackage{blindtext} ...
5
votes
1answer
203 views

Moving subcaptions vertically

I am arranging four images as follows. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption, tabu} \begin{document} \begin{figure}[t] \begin{tabular}{c|c} %vertical line I added ...
5
votes
1answer
8k views

Resize table and caption

I usually apply a \scalebox to resize things, but I always stumble upon the fact that I cannot simply include a \caption{...} in the \scalebox. As an alternative to \scalebox, I found I may use ...
4
votes
1answer
295 views

custom sub-caption and refs format for subfigures

I've just read questions: Changing the subfigure caption by removing brackets & font of the subcaption Adding parentheses around subfig references How to put two images next to each other with ...
4
votes
2answers
249 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} ...
4
votes
1answer
1k views

How do I put two footnotes in the caption of a float?

This question Using \footnote in a figure's \caption already has some suggestions on how to get a footnote in a caption. None seem really satisfactory because it seems hard to get the footnote ...
4
votes
1answer
631 views

\twopagepicture package refining with long caption spanning across the two pages

The \twopagepicture package is definitely worth it when you have many large pictures. But perhaps I'm not getting the required results because I'm not following the advice correctly. Here are some ...
4
votes
1answer
2k views

placing caption on the top right or top left -

I would like to have my captions as shown in the image below. I want them to appear on the TOP left of the image. I tried SideCap, but it puts them at the bottom of image.
3
votes
2answers
141 views

how to insert a fixed number of figures per row/column?

I have a simple question but I am not sure on how to proceed. I would like to put 10 figures on the same page: a grid of 5 rows and 2 columns. What should I type in order to have the figure inserted ...
3
votes
1answer
3k views

Setting default distance between subfigures

I use a lot of subfigures in my thesis. What I realize now is that the captions between adjacent subfigures are very close together, which makes them hard to read. My two questions are therefore: ...
3
votes
4answers
5k views

Table caption Width

We have table caption background image. We put this as image. But we need the table caption and images exactly same width as table body.
2
votes
1answer
848 views

ieeetran caption question

In the ieeetran how to, they are using caption with their examples; however, latex tells me not to use caption. So if I use subfloat, all my figures are labeled as such (a), (b) and don't have a main ...
11
votes
3answers
593 views

Label in caption

For certain styles it appears that the \label statement must be included in \caption to preserve good referencing. Why is that?
10
votes
2answers
8k views

Problem with command \captionsetup from package caption

The following MWE: \documentclass[11pt]{memoir} \usepackage{caption} \captionsetup[table]{ listformat=empty, tablename=Table, justification=justified, ...
10
votes
1answer
6k views

How can I get rid of the LaTeX warning: Float too large for page?

In my document, I have figures that have a rather long caption. The code I use to include them looks like this: \begin{figure} \begin{center} \includegraphics[width=\textwidth]{../fig.pdf} ...
10
votes
1answer
4k views

Using the itemize environment inside a caption

The following code does not compile. However, if I remove the itemize environment it does. I googled for this problem, and found suggestions that using the caption package would solve the problem, ...
9
votes
4answers
849 views

Caption and footnote width with ctable

I am using ctable and I have a table with footnotes. Since the table is narrow, the caption text is squeezed in the table width, which looks odd. I can use mincapwidth to specify a minimum width for ...
8
votes
1answer
839 views

eqref in captions with mathtools

I've now tried mathtools for the first time, for the sake of showonlyrefs. It works fine, except if I put an \eqref command into a figure caption, in which case I get: ! Argument of \@caption has an ...
8
votes
1answer
268 views

Produce PDFs with only the figures/tables without captions and with only the captions without figures/tables

I'm submitting the final copy of a journal paper and got the following requirements: Camera-ready copies of all figures and tables in a single pdf/ps file (that is, produce a single ps/pdf file ...
8
votes
2answers
786 views

One caption in listoffigures for a ContinuedFloat

I am using the \ContinuedFloat command of the subfig package to print a series of figures in more than one page. I would like to have one caption in the List of Figures and "compress" the pages so ...