{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

1
vote
1answer
61 views

Subscript in Figure Captions

How do I make text subscript in a figure caption? I've tried both \textsubscript{} and \protect\textsubscript{} but both throw errors.
3
votes
1answer
89 views

Caption beside image in minipage

What i'm trying to achieve: Have two images in one page, one image on the top half of the page and the other the bottom half. Ive managed to do this by: \vbox{ ...
5
votes
1answer
136 views

Table caption in uppercase. I don't know why

\documentclass{IEEEtran} \begin{document} \begin{table}[ht] \centering \begin{tabular}{|l|c|} \hline \multicolumn{2}{|c|}{Default Parameters} \\ \hline ...
9
votes
2answers
219 views

How to align text within a caption?

I want to give a survey on several techniques within a figure. It turned out, that there are many techniques, so I employed subcaption with subref to describe the matter. However, as there are too ...
2
votes
1answer
82 views

Subfigure and caption placement

I have 5 images to place (using the subfigure environment), I would like to place them either in two columns (one with 3 images, the other with 2), or in two lines (idem) and use the empty place that ...
2
votes
2answers
161 views

Table caption not appearing in PNAS document class

I am unable to get table captions to show up when using the PNAStwo document class from 2008 (the latest version includes printer marks that I do not want). The documentation says "Figure and table ...
1
vote
1answer
60 views

Optional caption in listings (for listoflistings)

I have some cites in my captions. But I do not want to appear them in the table of figures or listings. With figures I managed to display an different caption like this: \begin{figure} \centering ...
2
votes
1answer
79 views

float row figure box - two lines in caption

I am trying to get the caption on two lines with this command but using \\ does not work. If anyone know how to do this it would be helpful \begin{figure} \begin{floatrow} \ffigbox{% ...
1
vote
1answer
51 views

Problem with sidecaption and memoir alignment

I try to use sideCaption with memoir class, and i have two problems (red anotation in image 1) : sideCaption doesn't respect the margin at left ... how can i say to saidCaption to align the figure ...
2
votes
1answer
81 views

White space between caption and sidewaystable

I am using a sidewaystable from the rotating package. I am trying to add some white space between the caption and the table (caption is placed above table). I tried using ...
0
votes
0answers
52 views

Numbering figures in beamer while using the caption package [duplicate]

I am trying to number my figures in beamer while using the package caption but it doesn't work. I want to use caption because I can break a line with \\ and I like the way the caption is formatted. ...
3
votes
1answer
67 views

caption of the wide table not wide

I am using this code to produce a wide table, but the caption in top is still in two column format.I used \caption package but it affects all of my figures captions and never solve the problem. ...
2
votes
3answers
55 views

Detect misplaced label in figure

I realized that I sometimes write : \begin{figure} ... \label{fig:foo} \caption{Bla} \end{figure} instead of: \begin{figure} ... \caption{Bla} \label{fig:foo} \end{figure} ...
1
vote
1answer
219 views

IEEEtran: centering (double-column) figure captions

I'm looking for a method to center the figure captions in single- and double-column mode. Here is my code \documentclass[journal]{IEEEtran} \usepackage[caption=false]{subfig} ...
3
votes
1answer
39 views

\ifmmode check in section caption

To assure the correct usage of newcommands which only shall be used in mathmode, I have introduced a mathcommand, which checks mathmode by \ifmmode. Now I want to use such a mathcommand in a section ...
4
votes
1answer
309 views

longtable caption formatting

I'm having some troubles with captions in longtable tables. I'm trying to typset for a thesis (so am using a class that I didn't write) and my school requires double spacing for body text but single ...
1
vote
0answers
28 views

How change “Figure #” position in lyx [duplicate]

I'm using Lyx, and adding a floating image always add a "Figure X" at the left of the image, I'd like to show this 'caption' (I don't know if is caption or not) under the image, how should I do? What ...
4
votes
1answer
159 views

Final linebreak in lstlisting, and linebreak in captions (with IEEEtran)

Using: lstlisting in two columns How to add line break to caption without using caption package ... I got to the following MWE: % \documentclass[12pt,a4paper]{article} ...
3
votes
1answer
112 views

ClassicThesis in Spanish Language Using Lyx

The problem is the following: I'm using classicthesis to write my thesis, and I need the names of the captions displayed in spanish (e.g. "figura" instead of "figure"), so I uncommented the next ...
3
votes
1answer
66 views

Box around caption in figure

I am wondering if it is possible, in a figure, to put a box around just the caption and not the whole figure. \documentclass[12pt,letter]{article} \usepackage[demo]{graphicx} ...
4
votes
3answers
96 views

How to arrange a table and figure side by side with all captions on one side

To maximize space, I'm trying to put an table and image side-by-side in a document. As the image is longer than the table, I want to put both captions under the table (if possible). I envisage this ...
5
votes
1answer
221 views

Fixing vertical spacing after \captionof as a custom caption

I'm trying to get a single caption after two columns of code. For two columns, parcolumns is the only method I've found that allows a page break in the middle and is my current favorite. Using ...
1
vote
1answer
50 views

List of Tables caption entry problems with Bookmarks package

Since implementing the bookmark package and resolving the issues with Bookmarks not linking with Table of Figures and Bibliography properly, I've noticed that the bookmark package is causing long ...
1
vote
0answers
84 views

How to add linenumbers to figure captions? [duplicate]

I'd like to add linenumbers to my TeX-file. I found the packe lineno which I'm using as follows: \usepackage{lineno} \linenumbers Unfortunately line numbers are not added to the figure captions and ...
5
votes
3answers
96 views

Image Caption Alignment

I have two images of different heights and widths sat next to eachother on the page, and I'd like their captions to align. As it is currently, one caption is displaced vertically from the other. My ...
0
votes
0answers
77 views

! LaTeX Error: \caption outside float. Yes in one document, No in another

I have the following LaTeX code in a document. \begin{centering} \caption{Patient Contacting Materials} \label{tab:materials} \begin{tabulary}{\textwidth}{LLL} \toprule Feature & Manufacturer ...
1
vote
1answer
60 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
4
votes
2answers
128 views

How can I reverse the caption numbering in listing

How can I make a reverse numbered caption with listings? So the package makes ''Listing 1.1'' style captions but I need it in form ''1.1 Listing'' .
2
votes
1answer
47 views

Editing table's caption's name [duplicate]

how do I to edit table's caption's name ? Transformation : "Table" --->> "Tableau"
1
vote
3answers
67 views

How to add multiple images in one place using captions like Figure x. a, Figure x.b?

Is it possible to caption the two figures as Figure x.a, Figure x.b?
4
votes
1answer
66 views

side effect of caption package with custom counter

--- update --- Any comments, is this a bug in the caption package or do have have to protect \refstepcounter somehow? --- \update --- I have the following MWE: \documentclass{book} ...
2
votes
1answer
82 views

Insert a reference in a caption?

After visiting wiki on labels and cross-referencing, a couple of tex sites (1,2), and a stackexchange solution, the following reference will not appear in the caption. I'm using pdflatex on ubuntu. ...
1
vote
1answer
106 views

Figure to Fig in both Caption and Autoref [duplicate]

I need to change the caption Figure to Fig. for a journal. I am currently using: \usepackage[font=small,labelsep=period]{caption} and %Caption display style ...
3
votes
2answers
98 views

Change numbering system for margin figures in tufte-handout document class

I'm using the tufte-handout document class to provide margin comments on a third-party text for teaching purposes. I therefore want to preserve the numbering of the main text figures (figure and ...
2
votes
2answers
53 views

Centering just one line in a multi-line caption

There are multiple questions already answered for centering an entire caption, but my problem is that I wish to just \centerline or \begin{center} ... \end{center} just one line in a multi-line ...
9
votes
2answers
137 views

Adding text between figure number and its punctuations

We are using the below definition to get the figure numberings automatically \renewcommand\thefigure{\@arabic\c@figure} \def\fnum@figure{\figurename~\thefigure} The output is as shown below: ...
6
votes
1answer
50 views

Force color of listoffigures

Imagine the following example: \documentclass{scrbook} \usepackage{xcolor} \begin{document} \begin{figure} \caption{\textcolor{green}{Green} and \textcolor{red}{red}} \end{figure} ...
6
votes
1answer
87 views

Is it possible to let captions wrap a bit around includegraphics within figures? [duplicate]

Is it possible to place the caption a bit around includegraphics within the figure (to save some space?). As it may be misunderstood what I want, I try to explain it exemplary: Currently the minimal ...
6
votes
1answer
73 views

caption+autonum+{a certain structure}=freeze

PDFLaTeX'ing this results in a freeze: \documentclass[12pt]{book} \usepackage{caption} \usepackage{autonum} \begin{document} \begin{figure}[ht] \begin{align} x=y \end{align} \caption{Caption} ...
0
votes
1answer
109 views

Change typeface in caption figure [duplicate]

It is possible to make the caption of a figure in CAPS (versalitas) typeface format? Like as image below. But I want to change only the 'FIGURE 1.1'. Descriptive text label that is invariant. That ...
4
votes
1answer
129 views

How to handle listings, fancyvrb, newfloat and caption?

I am planning a "small thesis" for university which will need to display lots of code (C, C++, gnuplot, LaTeX, ...) - thus I spent this evening reading about listings and fancyvrb. The latter I've ...
3
votes
2answers
141 views

How to retrieve the caption of a table (longtable)

I want to repeat the caption of a longtable on different pages. Is there any way (other than defining a new variable to save the caption) to get it. How can I get rid of the extra line after the ...
1
vote
1answer
91 views

How can I access the style defined by \DeclareCaptionLabelFormat elsewhere?

Question I have defined a certain font style for my captions and would like to use this in another part of my document. How can I access this style, so that I can reuse it? NB: I want to reproduce ...
2
votes
0answers
36 views

Graphics: File name won't go away [duplicate]

I've just learned how to insert pictures using the \includegraphics{} command. In the compiled PDF document, the file name is visible immediately below the image. Is there a way to suppress the file ...
2
votes
1answer
193 views

How can I make my caption span both columns in a twocolumn revtex document?

I'm using revtex with twocolumn. I have a wide figure, and I put it in the widetext environment to allow it to span both columns. The figure itself looks fine, but the caption seems to be stuck in one ...
2
votes
2answers
222 views

Horizontal text alignment in captions for subfigures

Captions in subfigures are justified by default, which does not always look pretty: \documentclass[]{tGIS2e} % http://www.tandf.co.uk/journals/authors/tgislatex.zip \begin{document} ...
1
vote
1answer
80 views

longtable caption (make it look like table caption as defined by a LaTeX class)

I have the following MWE with a table and a longtable, and I just want that the longtable caption looks exactly as the table caption without modifying anything from the table above (just the ...
15
votes
2answers
936 views

Placing TikZ drawings in a minipage side by side

I've some problems with aligning some drawings I made with TikZ: I want these two TikZ pictured below to be displayed side by side with the two captions being on the same horizontal level. ...
3
votes
2answers
153 views

Captions for Tikz drawings

I have a question concerning captions for Tikz drawings. Below, you see the source code for a binary tree I've drawn with Tikz. I want to place a caption beneath it but unfortunately, the caption does ...
1
vote
0answers
20 views

Change language of caption in lstlisting [duplicate]

When I define a caption in lstlisting, LaTeX writes, for example, "Listing 1.1: ..." but I want to change the "Listing" to another language. How can I do this?