{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

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
136 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} ...
2
votes
1answer
2k 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
105 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
516 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
68 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
143 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
3k 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
449 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
331 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 ...
4
votes
2answers
3k 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
436 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
104 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} ...
1
vote
2answers
113 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
210 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 ...
4
votes
1answer
151 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
394 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
186 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
223 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
47 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} ...
2
votes
1answer
3k views

How to put table caption on top without using float or floatrow package

I have got some very simple table; something of the sort: \begin{table} \centering \begin{tabular}{|c|c|c|} \hline 1 & 2 \\ \hline 3 & 4 \\ \hline \end{tabular} \caption{This is ...
6
votes
3answers
2k views

Minipage, multiline caption centering

No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried ...
5
votes
2answers
811 views

Referencing to subfigures in main caption

I'm trying to reference to subfigures in the main caption of my figure. Unfortunately I'm only getting blanks, not even undefined referencing ??. What's going on? \documentclass{report} ...
4
votes
1answer
185 views

How do I access float's name (e.g. for use with caption*)?

I would like to access the current name of the float. In the float package manual, I've read that command \floatname{<float name>}{<new name>} works by redefining \fname@<float ...
3
votes
1answer
809 views

\reflectbox within \caption

I would like to insert a copyleft sign inside a \caption. The following command, given here, works outside \caption: \reflectbox{\sffamily{\copyright}} and does what I would like. But this: ...
0
votes
0answers
26 views

How can I replace colon with dot in caption figure? [duplicate]

I have a \documentclass[11pt, twoside, a4paper, twocolumn]{article} I have something like this: Figure: xxxxxxxx And I need: Figure. xxxxxxxxx I need change the colon with a dot. An example of my ...
5
votes
2answers
154 views

Captions and labels for my tables, listings, images

I'm writing my master thesis and I have a lot of short tables, listings, etc. in the text. I would use figures for them like this: \begin{figure}[h!] \begin{lstlisting}[mathescape] ... ...
2
votes
1answer
728 views

How to have aligned equations in a caption?

The following is my MWE, inspired from the answer to this question (where my query seemed to merit a separate question, so here it is!): \documentclass{article} \usepackage{caption} ...
3
votes
1answer
2k views

Subcaption Package Error

I'm having an issue compiling with the subcaption package. I'm starting to write my thesis, and I originally started a chapter with a separate document. This compiled fine and had the following ...
0
votes
1answer
699 views

figure numbering (via `\ref{fig-label-name}`) when using user defined `myCaption`

I want to change the font of Figure, and the caption text. I tried caption package. But \usepackage[labelfont=bf,font=it]{caption} raises an error Command \caption@ContinuedFloat already defined.. ...
1
vote
0answers
292 views

Caption package incompatibility with \@makecaption in custom report class [closed]

My university has a recommended thesis class based on the report class. Unfortunately, it is incompatible with the caption package; for example, when I include the subcaption package, I get the ...
3
votes
1answer
2k views

Change caption style of listings package without “caption” package

Is there a way to change style of a caption in listings without the caption package (make it smaller and non-bold)? I am using \lstnewenvironment to create my own customized environment and then use ...
3
votes
2answers
153 views

How to create a short caption (as \listoffigures entry) with \twopagepicture?

Using the \twopagepicture command like in this example (How to include a picture over two pages, left part on left side, right on right (for books)?), is there any chance to create an entry to the ...
1
vote
1answer
1k views

Cannot use caption in Wrap figure

I'm getting an error when caption in wrap figure. My codes are: \documentclass[12pt,MSc,twoside]{muthesis} \usepackage{graphicx} \usepackage{float} \restylefloat{figure} \usepackage{wrapfig} ...
4
votes
1answer
8k views

How to make a caption (via \captionof and extra margins) adhere to minipage margins?

I made use of the caption-package to define a custom layout of the captions. Their width is set to 0.8\columnwidth. As far as I understood the problem, this measure is not used when the caption is set ...
3
votes
1answer
385 views

Problems customizing listings captions

I'm trying to "decorate" source code with listings, but I'm getting some warnings and bad boxes when I compile my document. However the document compiles and looks like I want. I noticed the warning ...
9
votes
3answers
13k views

How to give floats/figures titles?

Below is an excerpt from my thesis, showing a figure with a caption. I'd like to give the figure a title too, that is, a few words written above the figure. Can I do that in latex? If so, how? ...
6
votes
3answers
792 views

Hang caption in lstlisting

If I use the following command \usepackage[skip=20pt,hang]{caption} when a caption is very long it hangs in figures and tables, however, if the caption is of a lstlisting environment it doesn't. ...
4
votes
1answer
159 views

Add optional argument to the caption to get into figure list entry

I would like to add the optional list entry, which is used for a listoffigures, also to the caption. In this basic example: \documentclass{scrreprt} \usepackage{caption} \begin{document} ...
8
votes
2answers
159 views

Custom counter steps twice when invoked from caption using caption package

I made a custom counter with a custom command that steps the counter and sets an automatic label for it. However, when invoking this from a caption AND using the caption package, my counter steps two ...
5
votes
1answer
630 views

Moving subcaptions vertically

I am arranging four images as follows. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption, tabu} \begin{document} \begin{figure}[t] \begin{tabular}{c|c} %vertical line I added ...
3
votes
1answer
140 views

subcaption: the subcaption documentation doesn't say anything about a short caption

When using \subcaptionbox, can the optional short caption be used? By this I mean, \subcaptionbox[short]{long \label{}}{\includegraphics} There is nothing in the documentation that mention the ...
6
votes
1answer
2k views

Change “FIGURE 1:” color, but not caption color

I would like to change the color of the "FIGURE 1:" portion of my caption to blue (including the number & colon), but I want the remainder of the caption to be black. I have tried the following in ...
5
votes
1answer
231 views

How do I make en/em dashes work in Myriad when using it with MinionPro

I'm using MinionPro for the body of a document and Myriad for figure/table captions. Because I can't load packages MinionPro and Myriad at the same time, I load the Myriad fonts for the sans-serif ...
21
votes
2answers
11k views

Beamer Presentation: Figure has no number?

I am giving a presentation and therefore I am using the beamer class. I have included some figures and it works, but there is no number after "Figure". My code: \documentclass{beamer} ...
5
votes
1answer
590 views

Pandoc caption for code blocks [closed]

Consider the following code block: ~~~~{.Python .numberLines caption="test"} def myfunction(var): """ Oh how awesome this is. """ pass ~~~~ The code gets formatted correctly in the Pdf, but the ...
3
votes
1answer
80 views

hyperref : how to color the whole “Figure 4” and not just the “4”?

I have a simple question: how can I make hyperref link (and color) the whole "Figure X" or "Table X" instead of just the "X"? I use it as : \usepackage{hyperref} \hypersetup{colorlinks=true, ...
4
votes
1answer
2k views

Incompatibility problem of the packages subfig and subcaption [duplicate]

I want have three subfigures in a special order. One on the right, two on the left. Therefor I found a snippet here on StackExchange. Alone the snippet works fine, you can check this by comment out ...
4
votes
1answer
606 views

Layout issues when using `subcaption` together with `sidecap`

I am using the sidecap package for side captions. I also want to have subfigures (for example, three or four subfigures labeled with a), b), c) and d), respectively). When not using the SCfigure ...
4
votes
2answers
371 views

Figures caption

I am using \subfigure package to place two figures side by side. The following are the code lines for this purpose. \begin{figure} \centering \mbox{\subfigure{\includegraphics[width=2in]{Figure ...