{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

2
votes
1answer
144 views

Change font size of selected captions

Caption font size can be changed globally using \usepackage[font=small]{caption} However, suppose I need only one/two captions' fontsize be changed, not all. How can I do that?
2
votes
1answer
165 views

2 different captions for tables and figures

I want 2 different types of captions. One for table and another to figures. I use this code for tables: \usepackage[labelfont=bf,nooneline]{caption} \setlength{\abovecaptionskip}{3pt} and this for ...
2
votes
1answer
67 views

Caption within a figure?

I have an image where as x are 3 diagrams. As there is empty space on the left, I was wondering if it is possible to put the caption of the image within the picture.
2
votes
1answer
131 views

Non break space between figure and caption for figure float h

I'm currently creating a two columned article. My document class is given by: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} In my article I would like to include figures. The way I do this ...
2
votes
1answer
337 views

Change font size of caption, only in marginpar?

I'm using \marginpar and \captionof to have figures appearing in the margins of my documents, including figure captions. This works well. But now I want to change to font size of the captions ...
2
votes
1answer
505 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.
2
votes
2answers
830 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. ...
2
votes
1answer
108 views

Label on grammar enviroment

I want to have a caption and label on my grammar environment, and have implemented the solution here: How to use caption and label in grammar environment? got my grammar displayed with a caption and a ...
2
votes
1answer
4k 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?
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 ...
2
votes
1answer
703 views

How do I typeset a table with a caption within a tabularx within another table with a caption?

Unfortunately, it keeps bugging me with forgotten \endgroup, float(s) lost, not in outer par mode and so on. In other words, why can't I do something like this (the actual table is significantly more ...
2
votes
1answer
831 views

Force caption to go above/below with biblatex

I have used the following to force captions above (tables) and below (figures) as per the answer to this question. \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
2answers
246 views

caption in a tikz object

I created markov's chain using tikz package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?
2
votes
2answers
638 views

How do I change the label separator for marginfigure in Tufte Book/Handout?

I'm trying to use the caption package to do this and I've used the following code, but it's still not giving me a period as a label separator. How can I go about fixing this? Here's what I have: ...
2
votes
1answer
4k views

Swedish characters, but english captions

I am writing thesis in english but I want to be able to use swedish letters. I use \usepackage[swedish]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} This works fine, I thought, ...
2
votes
1answer
3k views

Caption of a table in an array-environment

I used the array-environment to construct a table of data: \documentclass[12pt,landscape]{article} \usepackage{amsmath,amssymb} \usepackage{array} \usepackage{booktabs}% for top-,mid- & ...
2
votes
1answer
2k views

Caption for longtable in Sweave

I'm using the following code in .Rnw file to generate a longtable <<label = tabggplot2df, echo = FALSE, results = tex >>= print( xtable( x = ggplot2df , caption = ...
2
votes
1answer
344 views

label in subcaption and customize cell size of an array

Using the following code \documentclass[11pt]{article} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionSubType*[arabic]{table} \captionsetup[subtable]{labelformat=simple,labelsep=space} ...
2
votes
1answer
922 views

Format caption in figure

I have a question which concerns text formatting in captions and also in sections. For example when I type: \begin{figure} something \caption{this is some caption text and it probably may be quite ...
2
votes
1answer
2k views

sidewaysfigure error when adding a caption

I'm trying to include a uml diagram, which as it's quite large i'd like to rotate. However, if I try and add a caption I get an error and it won't build. I'm adding the figure like this: ...
2
votes
1answer
737 views

How to remove colon(:) on longtable suffix caption

Using svmono package and \renewcommand\tablename\{Tab.}. When I use table, the caption shows “Tab.1 Bah Bah”. But if I use longtable, the caption shows “Tab.2: Bah bah”. How to remove colon as “Tab ...
2
votes
1answer
21 views

Newline in caption in amsart

This answer (http://tex.stackexchange.com/a/48313/38588) explains how to eliminate the error from a newline inside a caption for a figure. However, this does not work when using the amsart document ...
2
votes
1answer
20 views

How to put figure labels above rather than below each image in a multiplot layout?

For example in the following code, each image has its label (a) (b) (c) (d) below the image. I would like to place it above the image. \begin{figure}[h!] ...
2
votes
1answer
46 views

TikZ: non-active semi-colon

I have used TikZ to define an extensible arrow interrupted by symbols similar to \xrightarrow. \documentclass{article} \usepackage{tikz} \newcommand{\oprightarrow}[1]{% \mathbin{% ...
2
votes
2answers
50 views

Tikzpicture: How to caption with multiple axis

Is there a way to caption multiple axes with tikzpicture? I don't want to use subfigures since each axis (and its corresponding figure) is connected via an arrow to another axis. I have something ...
2
votes
1answer
64 views

Caption in Tikz without “Figure 1”

If I use this code, \documentclass{article} \usepackage{tikz} \usepackage{multicol,float} \usepackage{etoolbox}% provides \preto \usetikzlibrary{shapes,backgrounds} \tikzset{ every ...
2
votes
1answer
51 views

Use \raisebox with \depth in caption

I want to use \raisebox in a caption. I know that \protect is often needed in these situation, but this (and other combinations I have tried) does not work: \documentclass{article} \begin{document} ...
2
votes
1answer
30 views

Figure label in one color, figure text in another as a document rule

By adding the following package with parameters, all captions for tables, figures etc. change color, font-size and distance between label and text: %Caption formatting ...
2
votes
1answer
65 views

Missing $ inserted in python code

I use python3 (with code not from me) to insert data from a database (bsddb3) from the program GRAMPS into a LaTeX document (TeX Live 2014) and I receive the following error messages: ! Missing $ ...
2
votes
1answer
52 views

Specify Figure name color and slant

Every time I have to denote a figure name in the text I have to type: {\textcolor{ocre}{\bf{\emph{Fig.\;\ref{figurename}(b)}}}} Is there an optimized way to specify this in the preamble so I do ...
2
votes
1answer
78 views

Problem numbering equations properly

I'm trying to create some equations with amsmath with captions and references. I'd like to suppress the equation number in the margin. I know this can be done using the equation* environment but ...
2
votes
1answer
51 views

Tabulate text within caption

I would like to tabulate text within a caption. See below what I obtain with my code: \begin{figure}[htbp] \centering \includegraphics[width=6in]{topfigure.png} ...
2
votes
1answer
90 views

keep one subfigure fixed and move another subfigure towards right

Hi.I would like to shift the subfigure (b) towards right side, aligned exactly with the line at the top of this figure. \begin{figure*} \centering \begin{subfigure}[t]{0.5\textwidth} \centering ...
2
votes
1answer
74 views

how can i give a figure an extended caption without it going in my table of figures? [duplicate]

I am writing my minor thesis which includes a number of tikz figures, which are all listed in a table of figures. the table of figures gives the figure number, and then the title of the figure, as ...
2
votes
2answers
136 views

Table caption longer than table

How do I make the table caption the length of the table please? \begin{table}[ht] \caption{Empirical Model Results} \centering \begin{tabular}{l c c c c} \hline\hline & ...
2
votes
1answer
470 views

deluxetable* caption not displaying

I am trying to create a page-wide deluxetable using the two-column formatted ApJ article style. The caption displays when creating a single column deluxetable, but will not display when I use ...
2
votes
1answer
49 views

I have included verbatim to show a small section of code, how can I add a comment/caption for this verbatim?

I am writing some documentation on a tool I am using at work and I have included some code that has a comment to explain what a particular line is there for, this comment runs off the page if I leave ...
2
votes
1answer
101 views

Algorithm2e caption separator with language package options

Please see the difference in the style of the caption separator. In the first example the : is typed directly after the word Algorithm 1. In the second MWE with language option german (also french or ...
2
votes
2answers
229 views

Centering figure caption does not work

I have a few narrow figures for which I want to center the caption. I have to use a LaTeX template from Springer (svmult.cls). This makes captions left-aligned by default. I took a look at this ...
2
votes
2answers
58 views

Reference(Source) directly under the caption

Is there a way to write the refernce of a figure directly under the Figure? \documentclass{article} \usepackage[ngerman]{babel} \usepackage{filecontents} \usepackage[backend=biber, ...
2
votes
2answers
112 views

Tabularx and short caption causes error

I'm trying to construct a multi-page, landscape table with variable column widths. It was working until I started to get a problem with the caption. If I try to include a short caption I get the error ...
2
votes
1answer
75 views

cross-referencing figures : Any way to use Fig. instead of figure

I'm using IEEEtran.cls to produce an article. When setting captions on figures, the text begins with Fig 1. (for example). However, when I reference this figure by using \ref{img:something}, ...
2
votes
1answer
2k views

When using Caption Package, I receive: “Undefined control sequence \captionsetup ”

I introduce a figure as follows: \begin{figure} \centering \includegraphics[scale=0.300]{Figure.eps} \caption{Caption for the figure} \label{a} \end{figure} In the preamble I have written: ...
2
votes
2answers
68 views

Displaying caption of a long table on multiple pages

I'm trying to display a table on three pages. What's the best way to display captions on these three pages and how to do that, please? \documentclass{report} \usepackage{longtable} \begin{document} ...
2
votes
1answer
115 views

Redefine table caption

I'm writing a paper in IEEEtran twocolumn format. When putting pictures in my paper I prefer to use the Table environment over the Figure environment. I feel that the Table environment does a better ...
2
votes
1answer
35 views

How to pre-evaluate commands that are problematic for a specific environment?

More specifically, my problem occurs in the caption environment, but I imagine this applies elsewhere. I would like to insert the text generated by \suppOrApp and store it in the variable \sOrA: ...
2
votes
2answers
125 views

How can I remove an empty caption line

I'm generating LaTex automagically from a lengthy document that is written in the multimarkdown language, compiled by a software package called Scrivener. It's a workflow that works well, but this is ...
2
votes
2answers
854 views

Resize figures using subfloat environment in elsarticle class

I was working with the elsarticle class and subfig package for my article and I used the subfloat environment to include two pictures. However, the scaling of the pictures is completely wrong and the ...
2
votes
1answer
802 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
954 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} ...