{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
48 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
68 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
125 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
33 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
50 views

How to add linenumbers to figure captions?

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
78 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
52 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
52 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
104 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'' .
1
vote
1answer
40 views

Editing table's caption's name [duplicate]

how do I to edit table's caption's name ? Transformation : "Table" --->> "Tableau"
1
vote
3answers
55 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
48 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
62 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
46 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
57 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
42 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
116 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
48 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
71 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
68 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
61 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
96 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
113 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
58 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
86 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
103 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
57 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
402 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
125 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?
5
votes
3answers
123 views

Table and caption formatting

I'm having some problems getting my table and caption formatting to look right. Below is a sample of the code from my thesis. I've included all the packages that I'm using in my thesis, so that you ...
4
votes
1answer
94 views

Table caption problem. Text goes new line every word

I've a strange problem with caption of table. The text is shrinked to the center (see picture). This is the code of the table in the example (the result is the same for all the table I made). ...
2
votes
1answer
94 views

Eliminate reference to chapter in table caption (memoir class)

I'm editing a book using the memoir class. Each chapter has a different author, and I restart numbering of all elements at the start of each chapter. So far, so good. However, I want to eliminate the ...
6
votes
1answer
196 views

Caption package not working with beamer

I am using beamer to make a presentation. But the default caption font size seems big to me. So I tried to make the font size smaller using caption package. I tried this: ...
4
votes
2answers
58 views

Change figure caption name only in one figure, not all

I saw here Change caption name of figures , by \renewcommand{\figurename}{Fig.} but if you do that, it changes all of the figures captions. How to change only some of them? but I have 3 figures, I ...
4
votes
1answer
61 views

Captions in sub floats using subfloatrow are too narrow

I have a figure that has several subfigures, each with its own caption. I am aligning the subfloats using subfloatrow. How do I make the captions expand at least to the width of the graphic? Currently ...
4
votes
1answer
44 views

Centering Subcaptions including a linebreak

I found an asnwered question concerning this topic already here: Centering a subcaption Copying \captionsetup[subfigure]{justification=centering} doesn't help me thought for I am using different ...
3
votes
1answer
86 views

How to control the caption of algorithm2e by captionsetup?

I want to change the appearance of the caption for algorithms written by algorithm2e package using the caption package. In captionsetup one can easily customize the caption depending on the float ...
8
votes
1answer
67 views

How to remove space between a specific image and its caption

In this post (How to reduce space between image and its caption?) there is an excellent explanation about the way you can reduce space between figures and its captions. The problem is it works for ...
4
votes
1answer
77 views

Add keys to table (with picture and code) [duplicate]

As you see in the red part of the picture, I would like to add keys to explain what the brackets stand for. I just added this with paint, but is there a way to do this in tex? Also, are there nicer ...
5
votes
2answers
69 views

An environment for fixed figures

I am trying to create an environment that I can use to include "figures" within a framed environment. Because floats aren't allowed inside framed environments, I want to create a new environment ...
0
votes
1answer
48 views

Usage of \caption command in converting LaTeX files to HTML using tex4ht (For tables)

I am looking to convert TeX files into HTML using the htlatex command. I was previously having an issue with the formatting of my HTML file: the captions to my figures were skewed to the left of my ...
5
votes
1answer
47 views

How to put the character ] inside the short version of caption on list of table? [duplicate]

I'm using winedt and would like to insert something like \caption [blabla [-1, 1]V] {blabla [-1, 1]V...} in one of the tables, but I do not know how to escape the character ]. I've tried \\] ...
1
vote
1answer
56 views

How to make figure captions working inside a macro?

I am writing a report often having the need to insert two figures next to each other with separate figure numbers (not subfigures a,b). To speed up the process I wrote a macro but somehow the captions ...
5
votes
1answer
59 views

longtable caption — color or redefinition

Dear latexperts: I am experimenting with pandoc as a text processor that translates into LaTeX. This means that the LaTeX coding is mostly out of my control. pandoc uses longtable for its table ...
0
votes
0answers
46 views

Left align caption and underline it (Memoir)

im using LyX and documentclass memoir. I would like to have a set up like in the attached file when inserting figures and tables, however, I just don't know how to implement it in LyX. Can you help ...
3
votes
1answer
124 views

Change the baselinestretch (line spacing) only for figure captions

I use \renewcommand{\baselinestretch}{1.5} in my preamble to change line spacing of my main text. For my Figure cpations I'd like to have a value of 1.0 or 1.2. Is there an easy way to change the ...
4
votes
1answer
96 views

How can I mimick the listing caption style for my custom “Listing (cont.)” caption?

I have the following LaTeX code which works fine: \documentclass[12pt,a4paper]{article} \usepackage[a5paper]{geometry}% just for the example \usepackage[utf8x]{inputenc} \usepackage{listings} ...
1
vote
0answers
43 views

Caption numbering missing in beamer class when adding subfig package

I am having a problem with the beamer class and subfig package. Once I add the subfig package (for subfloats) the numbering of all my captions disappear. Please see the following minimial working ...