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

Multiple listings in one box with sub captions and using listings counter

I am using separate counters for (graphics) figures and listings. I am using the caption and subcaption packages. I construct sub-figures using subfigure: \begin{figure} ...
3
votes
2answers
310 views

Caption package destroys center/varwidth

I have received a wonderful comment how to get listings centered: \documentclass[a4paper]{book} %\usepackage[hang,small,it,hypcap=true]{caption} % screw hypcap \usepackage[T1]{fontenc} ...
1
vote
0answers
195 views

Document programming in Latex [closed]

I'm looking of document programming in LaTeX, but I have not found it; just tutorials for beginners. Can someone suggest me the best (French or English)? ok .. thank you for your answers. Then I ...
2
votes
1answer
254 views

apa6.cls helvetica font in section headers and figure captions

Usually the section headers of apa6documents are sans-serif and bold. I needed them not bold so I redefined all sections/subsections like this to meet my criteria: ...
2
votes
2answers
2k views

Put two pictures above one another within one sub float / reference problem

I was going through some crazy hoops to get minipage and subfloat work nicely (?) together, only to find out in the very end that I screwed up the figure references. I have a figure with two ...
4
votes
1answer
4k views

Using \footnotemark / \footnotetext trick for \footnote in \caption removes footnote number

I had the issue of having two footnotes appear in \caption in a figure-environment. Fortunately, this answer (Using \footnote in a figure's \caption) provided a solution. My code is as follows: ...
2
votes
0answers
46 views

Referencing figures when compiling with pdfLaTeX [duplicate]

I had a problem in referencing figures, which now I solved, thanks to an old answer by Werner. To be precise, in my case the reference was working properly (the hyperlink was pointing to the correct ...
5
votes
2answers
2k views

Figure caption alignment screwed when using line break

I am having trouble with figure captions when I need a manual line break. \documentclass[A4]{book} \usepackage{subfig} \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry} ...
3
votes
1answer
44 views

Preventing caption stoppers from appearing in references in ConTeXt

I would like to prevent caption stoppers from appearing in references in ConTeXt. Here is a minimal example: \starttext \setupcaptions[numberstopper=.~---~, distance=0em] \placefigure[][cow]{A ...
3
votes
1answer
152 views

Caption won't stick to table - gets centered

I'm trying to create a table with a caption on top of it, with the caption centered to the table. I have this code: \documentclass[a4paper]{article} \usepackage[english]{babel} ...
6
votes
1answer
3k views

How to keep multiple figure together

I have 6 graphs that I have to keep together while showing. I have to make them almost same width as text width, otherwise the graphs will not be properly seen. So I cannot add them side by side but I ...
8
votes
1answer
2k views

How to get a dot instead of colon in table captions?

Now I have Table 1: Title I need Table 1. Title
0
votes
0answers
60 views

Tikzpicture & caption [duplicate]

Using just the {tikzpicture} environment I can place the flowchart right between two portions of text like this: \documentclass{article} \usepackage{float} ...
2
votes
1answer
110 views

About the distance between the caption and the main body

I found that there is too much space between the caption of the figure and the main body. (The caption is below the figure). I don't know how to reduce the distance among them? the code I use now is ...
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} ...
4
votes
1answer
162 views

Spacing captions in a subfigure environment

I'm trying to use the subfigure environment to generate side-by-side images with captions, however because the images are different heights the captions come out at different heights. Also, they come ...
5
votes
1answer
681 views

Selectively suppress caption numbering when using xtable

I have a chunk of code which is producing table output using Xtable and I would like to suppress the table numbering. I know I can suppress numbering using \caption* outside of Xtable but I'm stumped ...
4
votes
2answers
327 views

Table with caption too wide for standalone package document

I am trying to output a wide table with a caption using the standalone package. When I do the following without a caption, I get nice output: \documentclass{standalone} \usepackage{caption} ...
3
votes
2answers
575 views

How to force hyphenation in floating figure caption?

I have a right floating figure with a justified caption spanning four lines like so: Unfortunately, LaTeX will not hyphen the words in the caption (both words hyphen just fine in regular text), ...
5
votes
1answer
84 views

How do I add a vertical break after table captions?

I have noticed that in LaTeX, article does not create vertical whitespace after a table caption. Is there a way to make this (and only this) act like it does in report ?
1
vote
1answer
82 views

Putting longtable caption text on subsequent pages

I'm using longtable for multi-page tables in a document, and have no trouble using the standard and widely used code for headers on subsequent pages: \\multicolumn{3}{c}{{\tablename} \thetable{} ...
6
votes
1answer
506 views

Outer join symbols

In a previous post entitled "Symbols for Outer Joins" a solution was given to produce outer join symbols. However, this solution generates an error when, e.g., $R \leftouterjoin S$ is used in a ...
6
votes
1answer
2k views

Caption spacing using algorithm2e

I am trying to add some spacing above/below captions of algorithms using the algorithm2e package. Consider the following example: \documentclass[a4paper]{article} \usepackage{blindtext} ...
16
votes
3answers
349 views

┓- shaped figure and caption

I have a (float) figure that has a ┓-shape, that is there is a huge blank square at the bottom left. I'd like to put in this blank the caption of the figure. Is there a way? My class loads ...
13
votes
2answers
721 views

How to draw 3 figures and have them side by side while they're connected

I would like to have 3 figures side by side, as in one of my previous posts. However, this time isn't the same. I would like to link my figures as below: My problem is not only how to put my ...
1
vote
0answers
122 views

How to define vertical spacing around subcaptions

I want to increase the spacing between my (sub)figures and their respective captions. Unfortunately, all things tried (skip or margin options in e.g. \captionsetup, vspaces) didn't have any effect. ...
1
vote
0answers
137 views

Empty alternate lists of figures and tables with bicaption

I am using the bicaption package to have bilingual captions for all figures and tables. However, I don't want to typeset the alternate language in the document's body, but only create lists of ...
5
votes
1answer
187 views

How to put a figure on the facing page of a chapter page with correct numbering?

What's the best way to place a page-sized figure including the correct caption numbering on the facing page of a chapter opening page? Correct numbering means: if I put the figure before the ...
7
votes
1answer
190 views

Make caption look right in greek

i'm having trouble trying to make a caption look right. I want to write in Greek the "figure" name, that is, "Σχήμα". The problem is after I put \addto{\captionsenglish}{ ...
8
votes
2answers
532 views

Indent further paragraphs in the caption of a table

I have a little problem how to create a caption to my table. It looks ok as of now, but I would like to indent the heading of a new paragraph. Also right now, I cannot even create a new paragraph ...
5
votes
1answer
489 views

Caption at the side of the PDF figure in landscape orientation

The PDF document page I need to include in my document is in landscape orientation. How do I get the resulting output page in the PDF file on one hand shown in landscape orientation with the rotated ...
8
votes
2answers
205 views

Align position of a table exactly to another one

I have a problem. I just made a table which was very wide, so I decided to split it into two smaller ones. Turned out the 2nd half is a little bit smaller in width than the first one. Now I want these ...
7
votes
1answer
340 views

\protect on \rule in \caption does not work

I would like to put a \rulecommand inside a caption. Classical solution is supposed to be \protect{} but that's not working. I still get Error: Argument of \@caption has an extra }. Why? Here is a ...
3
votes
0answers
47 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 ...
8
votes
1answer
12k views

How to align caption with table? [duplicate]

\documentclass[letterpaper,12pt]{article} \begin{document} \begin{table} \caption{Test test test test test} \begin{tabular}{c c c c} \hline\noalign{\smallskip} $V_{a}$ & $B$ & $r$ & ...
3
votes
2answers
473 views

Customize the captions of tables

I'm a little disperse between packages caption, floatrow, I'd customize the captions of my tables, but at the same time, I would like the figures captions to remain unchanged. How can I left align ...
10
votes
1answer
588 views

How to force lstlisting caption names and numbers to always appear, even when captions are empty?

I noticed lstlisting environment seems to supress the caption name and number when no caption is specified. See the code below: \documentclass{article} \usepackage{listings} \lstset{language=C} ...
3
votes
1answer
769 views

How to fix caption in moderncv?

I'm using moderncv and I want to add a caption to an inserted graphic. I'm currently using this code \begin{minipage}{.5\textwidth} \centering ...
2
votes
1answer
202 views

Caption text wrapping bad way

I'm having some strange behavior. My captions are wrapped as at the picture. This is probably cased by .sty and .cls files provided by an academic scholar, which are quite a mess. Someone has an idea, ...
3
votes
1answer
505 views

Caption label font: will sc and bf conflict with each other?

I want both bold and small capital effect for my table caption label. Could anybody tell me what's wrong with my code? Why doesn't it work? Thanks \documentclass{beamer} \mode<presentation> { ...
3
votes
2answers
798 views

Different caption styles for figures and for tables

I need to have different caption format for figures and for tables. Captions for figures have to be centered and captions for tables - left aligned. How to define this?
3
votes
2answers
160 views

Disable or heavily penalise pagebreaking at a specified place

Is there a way in LaTeX to disable (or heavily penalise) pagebreaking at a specified place? Here's an example: \documentclass[]{minimal} \usepackage[a6paper]{geometry} % demonstration use only ...
5
votes
1answer
1k views

“Argument of \@caption has extra }” error using \makemathbox inside caption

I have a math expression which I seem to be unable to use inside a caption. Here's what I want to compile: \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \usepackage{MnSymbol} ...
4
votes
1answer
90 views

How to change the default alignment of a caption using the ctable package?

I searched through the manual of ctable handy package and couldn't find any help there, to change the default centered caption to left alignment. This is a MWE: ...
7
votes
1answer
2k views

Caption automatically centered in a REVTeX document

I'm recently writing an APS paper with REVTeX and encountered a problem. The captions in all figure and table floats are automatically centered instead of being fully justified. I tried \captionsetup ...
10
votes
1answer
52 views

Is there any way to change the caption of a table after its declaration?

I have some tables that are generated automatically by a third-party program. I would like to change their captions without editing their text. Is there any way to change the caption of a table after ...
4
votes
1answer
363 views

Captioning an mdframed box without making unbreakable

I would like to a have a caption below my mdframed box (outside the border if possible) which sometimes span across multiple pages. I managed to create a caption several ways but the pagebreaks are ...
2
votes
1answer
441 views

Adding caption and counter to source code environment

I have a source code listing with minted environment. How can I make a counter/caption to be shown as follows. I also need to make \tableofsourcecode to enlist all the source code references. The ...
3
votes
1answer
287 views

Caption and tablenotes in two columns (in threeparttablex)

I have a table with a long caption and footnotes on a landscape page, prepared using ThreePartTablex, but it does not fit. I'm now looking for options to make it fit. My best idea so far was to set ...
3
votes
1answer
356 views

How to have center title in listings when you have subcaption (workaournd conflict between listing caption and subcaption class)?

I want to use listings package (\usepackage{listings}) to show a matlab code in a paper (using elsarticle class) but the title is not aligned in center below the code. This happened after I added ...