{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

0
votes
0answers
95 views

Issue with Caption template and Sigplan configuration

When trying to compile a shared tex document, I get the following error: Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption ...
7
votes
1answer
128 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 ...
2
votes
0answers
40 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 ...
7
votes
1answer
4k 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
243 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
273 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
297 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
138 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, ...
0
votes
0answers
192 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
295 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
141 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 ...
4
votes
1answer
289 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
51 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: ...
4
votes
1answer
503 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
48 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
216 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
184 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
157 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
183 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 ...
5
votes
3answers
2k views

How to center table caption that includes a newline

My table caption spans more than on line so I added a \newline to split the caption at an appropriate position. Now, the two lines are left aligned. How do I center the two lines of the caption? ...
3
votes
1answer
45 views

hypcap not working with floatrow

I'm trying to get hyperlinks for figures work properly. I mean clicking on a link should take me to the figure (not the caption). It doesn't seem to be working with floats in floatrow. No matter where ...
4
votes
1answer
113 views

How to label Table and Figure side-by-side with combined caption

Adapted from Thorsten Donigs answer in Table and Figure side-by-side with independent captions The Caption correctly numbers the figure and table but how does the correct setup of the labels ...
3
votes
1answer
95 views

Aligning two captions in tables

I would like to have two captions for some tables and figures, where the first caption describes the general content and the second caption provides some additional information. The idea is to have ...
5
votes
1answer
206 views

Wrong line spacing when changing font size for caption of algorithm

I am using the algorithm2e package and want to change the font size for captions of figures as well as for captions of algorithms. The problem is that I get different line spacings for the two ...
1
vote
1answer
147 views

How to shift a large graph to the left

Basically, I have a large graph, which take almost half a page. Right now, when I compile the tex file, the graph shifts to the right on the pdf. I have label and caption on this graph. How can I ...
3
votes
1answer
167 views

subfig Caption Number is 1a, How to Modify it to 1(a)?

In the following document, the sentence in Figure \ref{fig:loop} in the source produces in Figure 1a in the output, but I want it to be in Figure 1(a). How do I achieve my goal? ...
3
votes
1answer
2k views

Reduce space between subfigure and the subfigure captions

How can I reduce the space between subfigure and the sufigure captions ? Preamble \usepackage{float}%exact location \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} % for ...
2
votes
2answers
296 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
273 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 ...
1
vote
0answers
81 views

Set image in latex [duplicate]

I inserted an image, but LaTeX always put it on the top of the page, even if the example is down of the page, and I want to put it in an example. What do I have to do? Here is my .tex code: ...
3
votes
1answer
78 views

No indention for wrapfigure captions

I want to remove the indention of wrapfigure captions but NOT for normal figure captions. Is this possible? \documentclass{scrbook} \usepackage[english]{babel} \usepackage[T1]{fontenc} ...
1
vote
1answer
664 views

Change color of figure caption text

In my code below, I wanted to change the color of the text for the table and figure caption. I am using this: \usepackage[svgnames]{xcolor} \definecolor{ocre}{RGB}{243,102,25} \usepackage{caption} ...
1
vote
1answer
77 views

How to exclude some algorithms for \listofalgorithms

I tried with \captionsetup{list=no} but it doesn't work for the algorithm listing. Any ideas? I am splitting alg. over several pages using algorithm2e and don't want the captions of the split ...
2
votes
1answer
267 views

Title in subfloat without line-break

My code is like this, but the title of subfigure is with line-break, which looks very ugly? How can I solve it? \begin{figure}[!ht] \centering \subfloat[Subgraph]{ \label{fig:subg} ...
3
votes
1answer
54 views

How can I list tabulars in the contents, or make tables with invisble captions

Is there a way to have simple tabulars be listed in the list of tables? I'd even put them in by hand if I knew how.. My tables look like this right now: \begin{center} \begin{tabular}{l c l} ...
8
votes
1answer
110 views

subcaption: remove page number from lof

I use the caption and subcaption package as shown in the example below: \documentclass{article} \usepackage{caption} \usepackage{subcaption} \captionsetup[subfigure]{list=true} \begin{document} ...
3
votes
1answer
1k views

Figure caption problem

Is there anybody who can guess what is wrong with this figure caption? \caption{Graphical representation of the simple approximation proposed to determine the linewidth of a laser from its frequency ...
3
votes
1answer
219 views

Figure numbers does not match with the list of figures in classicthesis

I am using classicthesis version 2012/08/12 v4.1. I would like to have the figure numbers to include the chapter number (such as 1.1, 1.1, ..., 10.1, 10.2, 10.3, ...) and have the figure counter reset ...
2
votes
1answer
163 views

Table Numbering And Caption in Same location

My table and caption are located on the same line and this started happening after I used a different class file for the conference I am applying towards. Here is a picture of what I mean: (Normally ...
3
votes
2answers
606 views

position caption of centered figure left-adjusted to figure

I have a problem with the alignment of the caption of an image. My image is centered and I need the caption to be left-adjusted relative to my image like that: ...
5
votes
1answer
125 views

Color part of text and captions

is it possible to color in red part of a text and/or of a caption (let's say, just some words)? I tried to create the environment: \newenvironment{redtext}{\color{red}}{\ignorespacesafterend} ...
3
votes
1answer
77 views

Since the captions have different lengths, I cannot horizontally align the subfigures

\documentclass{article} \begin{figure}[!] \centering \begin{subfigure}[b]{0.24\textwidth} \centering \includegraphics[width=\textwidth]{1.eps} ...
0
votes
0answers
175 views

Picture and caption going out of margins using wrapfig

I'm using wrapfig to put a picture side-by-side with text. It happens that it going after the margins and I want it to stick inside them. here's the code, \documentclass[12pt,a4paper,titlepage,final, ...
1
vote
2answers
104 views

Can someone help revise the style file to make captions of figures as Figure 1.1, 1.2…2.1,2.2 …3.1,3.2?

Now it seems that the captions are numbered from 1,2,3,...... I want it numbered as Figure 2.1, Figure 2.2,... Figure 3.1, ... The style file is as follows: \@ifundefined{DeclareOption}{}{% LaTeX2e ...
3
votes
1answer
119 views

Adjust caption length to table length in hvFloat environment

I am trying to create a sideways-table with multi-columns. As I want title and table on the same page, I am using the hvfloat package. I'd like to get a caption that is as wide as my table, but it ...
3
votes
1answer
86 views

Why does hyperref break the labels of subfigures with ContinuedFload?

This is a follow up to here: http://tex.stackexchange.com/a/130629/32245 When I insert \usepackage{hyperref} as last line of the preamble. The main figure (or the two continued figures) are labeled ...
3
votes
1answer
226 views

In Lyx, align text inside a float caption

I'm trying to align a legend inside a table caption, so that the colons are vertically aligned. I can do it with the align ambient outside of the caption, but if I use the same code inside the caption ...
3
votes
1answer
103 views

Center align caption on margin

I am trying to align figure caption on the outer margin with koma-script, but no matter what I tried the option centeredbeside does not work. \documentclass[captions=centeredbeside]{scrbook} ...
0
votes
1answer
133 views

Caption and keyval conflict in harvard thesis template

I'm trying to compile the harvard thesis template just as it comes from here. I have already all packages in place and have followed the instructions in the readme file including compiling with ...
2
votes
1answer
45 views

Strange behaviour: “\listoffigures” shown at very first page [closed]

I have some figures like the following \begin{figure}[htbp] \includegraphics[width=\textwidth, keepaspectratio=true]{img/test_example.png} \caption{Auszug aus dem Integritätstest} ...