{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
1answer
482 views

Memoir, babel[french] and @makecaption

I'm having a problem with the memoir, the babel, and caption packages: when compiling a document, the log returns the warning: Package frenchb.ldf Warning: The definition of \@makecaption has been ...
1
vote
1answer
147 views

subfigure numbering parentheses flipped with babel + right-to-left language + subfig

Eyal's babel incompatibility of the week... this time a question due to H.R. on the IVRITEX mailing list. The babel is incompatible with the subfig package. If you add a subfig with a caption: ...
5
votes
1answer
108 views

When do we still need the table and figure environments when we don't want the enclosed objects to float?

The LaTeX Wikibook writes: Please understand: you do not have to use floating tables. It only looks more professional. If you want to place your tables where they lie in your source code, do ...
1
vote
1answer
90 views

How to set identifier “Listing 1” in listing in bold

I use figures and listings in a document. By default, the identifier "Figure 1" is set in bold, while "Listing 1" is normal. For consistent looks I would like to have either everythin bold or normal. ...
2
votes
2answers
118 views

Align a figure caption lines

I have an image with caption in LaTeX: \begin{figure}[H] \centering \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{img/image9} \caption{Text text text text text ...
3
votes
2answers
142 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
149 views

Single Spacing Long Chapter Header in Table of Contents, Long Figure Captions in List of Figures

I am finishing up my dissertation and have a small issue. The dissertation format asks for single spacing the chapter heading in table of contents if it is too long and can't fit in one line. The same ...
4
votes
1answer
304 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 ...
2
votes
1answer
53 views

Why does leftidx not work in a figure caption?

I use the leftidx package to get left subscripts typeset acceptably, however, when I tried to use the \leftidx command within a figure caption (\caption) command I get errors compiling. Here is a MWE: ...
0
votes
0answers
24 views

Type superscript in figure captions? [duplicate]

How can I have superscript in Figure captions ?? \begin{figure}[htbp] \centering \includegraphics[width=0.80\textwidth]{Chapters/CResults/figures/3AxisFlexure.png} \caption{Thorlabs ...
5
votes
2answers
360 views

Horizontal centering with \subfloat

Please how to horizontally center-justify the following array of figures with the subfig package ? \documentclass[11pt]{article} \usepackage[dvips]{graphicx} \usepackage{subfig} \begin{document} ...
2
votes
1answer
258 views

\restylefloat does not restyle properly threeparttable caption

The following code does not produce the result I would expect. When the caption position is changed by restyling the caption it is no longer centred; it moves to the left. Any idea on how to fix the ...
3
votes
1answer
186 views

Bounding box of pictures used in TikZ/PGF

I am creating TikZ pictures using some external images in the following manner: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[htb] \centering\small ...
1
vote
1answer
366 views

How to make captionof appear just in one slide in Beamer

I am trying to create an overlay of two pictures in Beamer. The first one has a caption and the second one doesn't. I tried using \captionof but the caption keeps appearing on the second slide. ...
2
votes
2answers
695 views

defining equation variables as a caption [duplicate]

I want to define a couple of variables in a list alongside a equation. Here's my current code \begin{figure} \[ e = m c^2 \] \begin{description} \item[e] energy \item[m] mass \item[c] ...
2
votes
2answers
135 views

Align Captions of 2 figures

I managed to get my two Tikz figures side by side. The vertical alignment of the Tikz figures is fine and needs to stay that way. However, I am bothered by the captions and I'd like both of them to be ...
2
votes
1answer
60 views

Algorithm2e error reserved keyword

With the following code: \documentclass{article} \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX) \usepackage[plain,noend,noline,boxed]{algorithm2e} \begin{document} ...
0
votes
2answers
48 views

npround (seems to) destroy rules for caption in table

I'm struggling with this one. In essence, I would like to place the caption above the table but also to have the 'Table 1' appear at the beginning and on the same line as the caption. Finally, I ...
3
votes
1answer
437 views

Caption spacing - table vs longtable

if I use both table and longtable in one document, the spacing between the caption and the table (the empty space after the caption) is different for table and longtable. I would prefer minimal (and ...
2
votes
1answer
323 views

Algorithm as a figure (to include additional caption below the figure)

I have an algorithm in latex, and I need to add an addition caption underneath the algorithm (just like in a figure at the bottom: "Figure 1: Whatever it is". I tried simply changing the ...
1
vote
1answer
140 views

long table's and figure's captions

How can I make the table and figure captions aligned in the list of tables or list of figures , my problem is that the list of figures and list of tables are going outside the page margins. ...
5
votes
1answer
417 views

Raggedright and caption package

I am trying to format my tables and figures' captions with the caption package. What I want is the caption label separated from the caption text by a new line and both of them completly to the left ...
1
vote
0answers
22 views

How to use \lstinline inside figure environment's caption argument [duplicate]

Here is the code that I have (I have removed parts which I think are not relevant): \documentclass[12pt]{article} \usepackage{listings} % Python style for highlighting ...
0
votes
0answers
29 views

Suppressing page numbers for floating figure [duplicate]

At the end of a manuscript, I have several figures, each of which takes up an entire page. A couple of these figures have long captions that end up overlapping the page number. I'd like to suppress ...
5
votes
1answer
271 views

Break box (a long caption) over pages

I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
3
votes
1answer
120 views

rotatebox symbol in caption generates error

Following minimal example doesn't work and generates an error \documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \begin{figure} FIGURE \caption{$\blacksquare$ ...
1
vote
1answer
4k views

Subfigures side by side with captions

I am using the following code to put my two figures side by side with different captions, \begin{figure*}[t!] \centering \begin{subfigure}[b]{0.5\textwidth} \centering ...
3
votes
1answer
112 views

Missing caption prefix in figures and tables when using XeLaTeX

I've recently switched from PDFLaTeX to XeLaTeX, and noticed that captions on my figures and tables don't have the usual "Рис." and "Таблица" prefix any more (Fig. and Table in Russian), only a number ...
2
votes
1answer
295 views

Make every first line of table look the same

I've been struggling recently with tables. And I've finally managed to get past it. However, I'm now trying to make every first line of my tables look the same (bold white on blue background color). ...
3
votes
1answer
160 views

using TikZ with multipage table

I am using tikz files to insert figures . I would like to add 3 figures one after the other with the same figure caption: I use this code: the problem is that the last figure is at the bottom of the ...
3
votes
1answer
69 views

Caption package error redux

I'm using the caption package, but it's not affecting the captions within my tables and figures. I've pasted my sample code below. How can it be fixed? \documentclass{article} ...
1
vote
1answer
231 views

Deleting colon while using \renewcommand for table names

I have to rename one of the many tables as Fig. But executing the below script resulted in ':' before the caption. \renewcommand{\tablename}{} \renewcommand{\thetable}{} \begin{table}[!h] ...
6
votes
1answer
187 views

Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded

When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
2
votes
2answers
321 views

Change caption number of an algorithm

I am wondering if I can manually set the caption number of an algorithm, or let the caption number of the algorithms in an article start from 2. The following is a MWE. ...
0
votes
0answers
38 views

Distinguish between list of of tables and table [duplicate]

How can I make the caption of the table different from that what shows up in the "List of Tables" For figures I used the non-float option with: \figcaption[short title for the index]{description for ...
1
vote
1answer
143 views

TikZ node causing problems inside a \caption [duplicate]

Following an example offered here, I want to insert colored, circled numbers referring to items in a figure (figure details left as an exercise to the reader) into my text. The numbers are defined ...
5
votes
1answer
151 views

subfigures in a custom float (subcaption & float packages)

I need figures and subfigures with a custom caption name. In order to achieve my goal I am trying to use float package to define new float type, and subfigure to create the subfigures. However, I get ...
9
votes
2answers
789 views

Figure subnumbering 1a

I'm wondering how to give subnumberings like "2a" and "2b" for separate floats. I know both the subfigure and subcaption packages do the subnumbering but they demand the subfigures be in a single ...
2
votes
1answer
61 views

I made a `box' float environment, and now I would like to put the caption inside the box

I made a box float using the following: \usepackage{float} \newfloat{Box}{t}{bx}[chapter] and \begin{Box}[htp] \label{box:test} \fcolorbox{black}{boxgray}{\parbox[c]{\textwidth}{The text goes ...
2
votes
2answers
255 views

Code listing spanning multiple pages with captions at top

Is it possible to span a lstlisting environment or lstlistinginput on multiple pages, such that the caption is repeated on each page (the listing counter stays the same), as well as being able to ...
4
votes
1answer
167 views

How to use verbatim in figure caption (\captionof)? [duplicate]

I want to use verbatim in a caption of a figure. I have tried the cprotect package but it seems to work only with \caption and not with \captionof. Is there a workaround? \documentclass{scrbook} ...
3
votes
1answer
2k views

Styling a lstlisting caption using caption package

I'd like to style a caption in a specific way, but I can't seem to figure out the proper settings to do so. First off, I'd like to change the label from "Listing" to "Algorithm" when I use ...
3
votes
2answers
179 views

Change caption name of an appendix

I want to change the caption name of a figure for an appendix. For example I have \caption{This is a supplemental figure.} and by default the caption appears as Figure 1: This is a supplemental ...
0
votes
0answers
52 views

Can I force a table caption to be a figure caption? [duplicate]

If I fill a table with figures, and give an caption, it is by default named Table XXX, but can I force it to be a Figure XXX caption? How? Thanks
5
votes
1answer
120 views

Subfigures with Captions Above AND Below

I'm using \usepackage{subfig} \captionsetup[subfigure]{labelformat=empty} Is this possible?
2
votes
1answer
75 views

Inserting citation inside ERT code in LyX

How do I cite a reference inside ERT code in LyX? Inside the ERT code I am unable to select Insert-->Citation as I usually do. The reason I need to do this is further to an answer to a previous ...
3
votes
1answer
804 views

subfigure with memoir

I made an article and insert several subfigures in that as follows: \begin{figure} \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\textwidth]{fig6_1} ...
2
votes
1answer
146 views

Table and its captions on different pages

I have a really long table that fits the whole page (in fact it's a really wide table that I have rotated by 90 degrees): \begin{table}[!pht] \caption{ ... some quite long description } ...
2
votes
1answer
150 views

Adding tikz figure in caption

I am writing one long document using lyx. I wanted to add small tikz code within a caption of a figure of my document. However when I tried to run it it is giving following error. Please help me ...
4
votes
1answer
133 views

Exceeding parbox with caption package

I am trying to customize the captions of my figures, this is what I achieved so far: Which is ok, but as you can see the parbox exceeds the width, and its right margin is not precisely aligned. How ...