{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
649 views

Numbered figure with caption in footnote

The question about adding footnotes in floats or captions of these has been asked and debated often. What is about floats in footnotes? I can't seem to get a floating figure environment within a ...
3
votes
1answer
2k views

How to control line spacing and subscript location in captions?

I just started using mhchem and am having problems with captions. Subscripts from mchem overlap with superscripts. I can think of two possible solutions (and trivially not using mchem in captions): ...
3
votes
1answer
382 views

subfloatrow and tabularx, wrong numbering of figure

I wanted to "group" a figure and a table to get one figure. It has been proposed to use floatrow for this, with the possibility to remove the subcaptions later on (subfloatrow of package floatrow does ...
3
votes
1answer
141 views

How shoud I manage captions and sub captions with float and non float items?

I am currently writing my PhD thesis and I am using this code to put some figures or tables on the left page. So, I have two kinds of figures, some are in a float, some are not. In both cases, I often ...
3
votes
1answer
616 views

Combining the caption and fltpage package when using twopage setting in book class

I have run into a strange problem when using the caption package and the fltpage package in the book documentclass with the twoside setting. After eliminating all kinds of variable it turned out that ...
3
votes
1answer
1k views

Beamer footcite citation appears twice if used in long caption

I noticed strange behaviour of the \footcite command when used in captions within beamer. In the working example provided the first frame has a \footcite on an itemize item, this works as expected. ...
3
votes
2answers
114 views

Space before colon in beamer captions

As you can see below, LaTeX is formatting my captions like this: Figure : caption, while I would like them to be Figure: caption, without a space before colon. Here's a MWE: \documentclass{beamer} ...
3
votes
0answers
95 views

Caption for multipage figure [closed]

I am a novice and have started using latex for writing my dissertation. Some of my figures are long and might extend over to multiple pages. I need only a single caption and figure number(i.e. no ...
3
votes
2answers
79 views

having custom caption in listing

I would like to have my custom name for my listing, how can I do that. here is my code: \documentclass[12pt,a4paper]{scrreprt} \usepackage{listings} \lstloadlanguages{R} \lstset{% general command ...
3
votes
1answer
86 views

How do I make hyperref show the entire figure when I'm using both caption and floatrow?

I use the caption package in my document to control the appearance of captions on figures and tables (small text, with bold labels): \usepackage[font=small, labelfont=bf]{caption} I use hyperref to ...
3
votes
0answers
47 views

Duplicate captions problem with figure [duplicate]

I am a beginner in LaTeX. I used the LaTeX example to insert a figure in my thesis. Here is the code: \begin{figure}[ht] \centering \includegraphics[width=\textwidth]{figs/#####.jpg} \vspace{0in} ...
3
votes
0answers
50 views

Figure numbering without caption [duplicate]

I would like to add a simple caption "Figure [number]" before an image in my document. If I just use \begin{figure}[h!] \centering \includegraphics[scale=0.5]{galor3.png} \end{figure} there is no ...
3
votes
0answers
1k views

LaTeX incorrect figure numbering [closed]

I have several figures and subfigures in a LaTeX file, but only the first few are numbered correctly. Here is the part of the code that is giving me problems: \documentclass[11pt]{article} ...
3
votes
0answers
178 views

How to vertically align the captions for sub figures in subfigure? [duplicate]

This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \usepackage{caption} ...
3
votes
1answer
1k views

How to get bold font Figure style with memoir class?

I'm trying to modify the defaut figure style with the memoir class. More precisely, I would like to have the Figure X.Y part in bold. To get X.Y in bold isn't a problem, as the ...
3
votes
0answers
556 views

Incompatibility of caption and cleveref package [closed]

The following code produced a TeX capacity exceeded error \documentclass{scrbook} \usepackage{caption} \usepackage{cleveref} \begin{document} \begin{figure} Text \label{fig:figures:1} ...
2
votes
2answers
3k 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
1k views

Image caption within \newfloat

I am using the float package to create my own floats. Now I also want to add an image with its own caption inside, but the caption belongs to the outer float. Is it possible to create something like ...
2
votes
2answers
4k views

Caption package: bold numbering indents caption text - how to avoid that?

I ran across this problem and fail to find an answer even after thorough searching: I use \usepackage[bf]{caption} in my LaTeX document, as I want the "Figure 1"-Part of the caption to appear ...
2
votes
2answers
2k views

Problem with caption and hyperref

When I compile the following example: \documentclass[11pt,a4paper,oneside]{book} \usepackage{caption} \captionsetup{margin=10pt,font=small,labelfont=bf} \usepackage[pdftex]{hyperref} \begin{document} ...
2
votes
2answers
63 views

How can I broaden a caption?

I’m trying to extend a caption beyond \textwidth. I tried it with \makebox, however, that resuls in an error: \documentclass{article} ...
2
votes
1answer
2k 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. ...
2
votes
2answers
5k views

How to remove space between table and caption? [duplicate]

Possible Duplicate: How to reduce space between image and its caption? I am working on one example in which i need to draw one table and its caption. How can i control the space between ...
2
votes
1answer
323 views

Using (redefined) macro in \caption doesn't work, but it works in another environment

My problem is strange behavior my command \vec{} in \caption. I used this construction: \renewcommand{\vec}[1]{\accentset{\rightarrow}{#1}} See my code: \documentclass[12pt, a4paper, czech, ...
2
votes
2answers
2k views

input filename as caption in listing

I'm working on the following piece of code \newcommand{\mycin}[1]{% new command for icluding piece of code from external files \lstinputlisting{#1} } I want to add a caption that reflects the ...
2
votes
2answers
1k views

Where to add a caption and a reference to a tabbing&fbox&minipage

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...
2
votes
1answer
5k views

Caption labelfont in uppercase, what am I doing wrong?

I'm trying to get the subcaptions and captions in sanserif font and Uppercased. According the manual of the caption package this should be possible in the following way.However, this doesnt seem to ...
2
votes
1answer
916 views

How to “glue” the caption to the table (stay on the same page as the table)

Normally, my captions stay with the table (cannot remember my exact example - couldn't replicate it - but I am now using the booktabs package anyway so let us take this one just in case this one is ...
2
votes
2answers
140 views

Conditionals within captions

I have defined a conditional using the ifthen package as: \newcommand{\Switch}[1] { \ifthenelse{\equal{#1}{1}}{Test1}{Test2} } Running this command works without problem. However, if I try to place ...
2
votes
1answer
40 views

Font of siunitx in captions not transfered by options of the caption package

The package option defines the caption text as italic, but this is not reproduced by measures inserted using the \SI functions are not. What can I do ? The MWE: \documentclass[10pt,a4paper]{report} ...
2
votes
2answers
138 views

Two Side by side figures having problem with captions (a) and (b)

I am making presentation in latex, I have two side by side figures with same size. I want to give caption (a) and (b) to the figures left and right respectively, and a main caption (some text) for ...
2
votes
2answers
152 views

How to include eqnarray in caption of figure

I want to write a set of equations in a caption of a figure. I implemented the answer of this question but it did not work out. The error I got is: ! Argument of \Hy@tempa has an extra }. For ...
2
votes
2answers
178 views

Change longtable's font size without changing the caption

I'm trying to put quite a long table in my thesis. To save some space I want to reduce the row height, the column separator and use a smaller font size in the table. The problem with the following ...
2
votes
2answers
204 views

Left justified comment in table caption without caption package

I need to left justify long table captions, without overwriting all the special formatting (font etc.) of the style file I am required to use. I tried to use \usepackage{caption} ...
2
votes
2answers
156 views

Is it possible to align a caption to a centered float?

So if I use a caption in following example: \documentclass{article} \begin{document} \begin{table} \caption{test} \centering \begin{tabular}{ll} \hline Name: & Baggins \\ First Name: & ...
2
votes
1answer
87 views

Prevent a part of the caption from appearing in the list of figures

I am using the 'article' class, 'figure' environment. My captions are divided in two parts: the information about the figure the credits of the figure (for which I use \textfff{}) In my list of ...
2
votes
2answers
102 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 ...
2
votes
2answers
1k views

\vspace is not working between table caption and table

I want some vertical space between the table caption and the table, and I am using \vspace{3mm}, which have always worked before. In this document however, the command works for some tables, for ...
2
votes
2answers
957 views

Caption and sections, subsections and subsubsections

I'm writing my thesis in Latex and this is the first time ever for me to use it. I've figured out a lot of things except this one - I need custom captions for pictures that are connected with ...
2
votes
2answers
739 views

subfigures don't show (a) and (b)

I want to insert to graphs into a paper. I want to make these two graphs arranged like the top 2 graphs in the following pic however, using the following source, I can't see (a) and (b) what are ...
2
votes
1answer
599 views

Thesis class error Extra } or forgotten \endgroup on second compile (not first) in float caption

I am adapting a paper to a thesis format, and I am getting an error on the second compile of my document (the first one seems to work fine). I am using TeXshop, v. 2.47; I am compiling using pdfTex ...
2
votes
2answers
2k views

How to decrease space height (margin) between equations

I want to decrease spaces(margin) height before and after equations because I found big space when text end and display formula appears or between equations each in separate line. Also I want to do ...
2
votes
2answers
965 views

Figure caption and reference formatting

I'd like to format my captions of figures. The main source of the problem is in my native language, Hungarian I need to reverse the figure number and the word 'figure'. My current code: ...
2
votes
1answer
502 views

Single entry in list of tables using datatool + longtable

I'm using the \DTLdisplaylongdb from datatool in order to create a multi-page table with longtable. How do I provide a caption that only shows up once in the list of tables? (Right now it's showing an ...
2
votes
1answer
838 views

Starred version of \captionof not working together with pdfpages

I use the following code to get a caption on the previous page but the correct location of the figure in the ToC. I now get 2 entries in the ToC, which is not really a surprise ;-). I now want to get ...
2
votes
1answer
2k views

Vertical spacing of captions in booktabs

Both \abovetopsep and \belowbottomsep are 0.0pt. But for some reason there's extra space between the bottom rule and "my second caption" in the table below. Q: What is that space? Where does it come ...
2
votes
3answers
396 views

\caption works in one file but not another

Hi I'm trying to display an image with a caption; the parent file (CODE1) calls the chapter file (CODE2) and the .sty file (CODE3). Here is the the "chapter" file... call it CODE1 ...
2
votes
1answer
2k views

How to align table or figure caption where the table starts?

HI How can I start the caption where table starts or figure starts? \captionsetup{justification=justified, singlelinecheck=false} does not work for me because it places the caption at the ...
2
votes
3answers
30 views

Two different kind of reference in a document

I want to use two different kind of reference in a document: one is default with command \refa{} “1.1”, and another is added () around \ref with command \ref{} “(1.1)”. I use: add () around \ref{} for ...
2
votes
2answers
50 views

Bicaption for longtables doesn't work

I'm trying to use bicaption for longtable, but I get this error: ! Misplaced \noalign. \caption ->\noalign \bgroup \@ifnextchar [{\egroup \LT@c@ption \@firstofone ... l.26 ...