{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
1answer
2k views

How to customize the caption format for \lstinputlisting

I know how to customize the caption format of lstlisting environment. But how to do this if I used the \lstinputlisting command to import code? My document contain below snippet. \begin{framed} ...
1
vote
1answer
1k 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 = ...
1
vote
1answer
302 views

Errors with figure caption since using siunitx

I am a bit of a newbie with LaTeX. Everything was working well (mostly) but I am running into all sorts of weird errors since I added the siunitx package. The error log first showed errors with ...
1
vote
1answer
2k views

Listing of a file with underscores in its name/path

I am writing a report with LaTeX and I need to list some source code. One of the files has some underscores in its path/name. When compiling the following line : ...
1
vote
2answers
275 views

Is it possible to add centering and vspace to the caption text of a figure?

I have a figure containing a pair of plots that represent data points from 15 referenced papers (indicated in the plots as 1-15). To better indicate the source of each data point, I have added ...
1
vote
1answer
650 views

ltablex + \caption[]{…} = error or bug?

I'm writing my thesis with the document class scrbook from koma-script and want to use the package ltablex (= longtable + tabularx) for setting long tables with automatic page break calculation. Now, ...
1
vote
1answer
60 views

Issue with table captions

I have been writing my thesis in LaTeX and has always managed to fix any issues that arose but I just can't go anywhere with this one... :s. Basically any table that I have in my document has the ...
1
vote
1answer
41 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?
1
vote
1answer
15 views

captions not appearing below subfigure

Code: \documentclass[fleqn,11pt,a4paper]{article} \usepackage{geometry,array,graphicx,float,caption} \usepackage{subcaption} \begin{document} \begin{figure}[H] \centering ...
1
vote
1answer
40 views

Adding a caption to graphics in parshape

This question is the continuation of the one posted here. How can I add a caption to the figures as shown below?
1
vote
1answer
32 views

Resize characters in figure caption

I frequently use \scalebox from the graphics package in math-environment as $x^{ \scalebox{0.55}{(n)} }_{i}$ which works fine. However, I am not able to use the same sequence in a figure caption: ...
1
vote
2answers
34 views

How to change spacing between caption numbering and text?

Like in an IEEE paper, after the figure caption numbering, there are two letters spacing: Fig. 1. Bla bla Not like Fig. 1. Bla bla I would like to have the former.
1
vote
1answer
45 views

Caption appears with ugly head at end of longtable

I want to put a lengthy caption at the end of a table, and, as currently formatted, the caption doesn't fit on the page with the last row of the table. The result is a rather ugly header on the last ...
1
vote
1answer
37 views

How to avoid the bold version of the caption of the algorithm

I am using algorithm2e package, but I want to remove Algorithm 1 in the figure and just say the name in my case as just appear only "The procedure". How we can do that? \begin{algorithm} ...
1
vote
1answer
33 views

How to fix figure caption while using lmodern

To remove the warnings, Font shape `OT1/cmss/m/n' in size <4> not available(Font) size <5> substituted Size substitutions with differences(Font) up to 1.0pt have occurred. I used the ...
1
vote
1answer
63 views

Problem with sidecaption and memoir alignment

I try to use sideCaption with memoir class, and i have two problems (red anotation in image 1) : sideCaption doesn't respect the margin at left ... how can i say to saidCaption to align the figure ...
1
vote
1answer
61 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
1
vote
1answer
90 views

longtable caption (make it look like table caption as defined by a LaTeX class)

I have the following MWE with a table and a longtable, and I just want that the longtable caption looks exactly as the table caption without modifying anything from the table above (just the ...
1
vote
1answer
208 views

How to put caption on top of the table with packege longtable?

I used package longtable for make table in mamy pages. With package supertabular we have \topcaption for caption on the top of table. I can't use \topcaption in \begin{longtable} \end{longtable} . ...
1
vote
1answer
307 views

Caption with math gives undefined control sequence [closed]

I'm trying to include a caption for a figure with two subfigures with quite some math. However, I get: Undefined control sequence I've tried to replace the the $ with \begin{math} and \end{math} ...
1
vote
1answer
164 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 ...
1
vote
1answer
832 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
147 views

`float` package not playing nice with `sidecap` package?

In trying to answer this question, I thought it would be easy to add a new float environment using the float package. However, the labeling of the caption is not getting correctly formatted. ...
1
vote
1answer
99 views

How to set identifier “Listing 1” in listing in bold

I use figures and listings in a document. By default, the identifier "Figure 1" is set in bold, while "Listing 1" is normal. For consistent looks I would like to have either everythin bold or normal. ...
1
vote
1answer
456 views

How to make captionof appear just in one slide in Beamer

I am trying to create an overlay of two pictures in Beamer. The first one has a caption and the second one doesn't. I tried using \captionof but the caption keeps appearing on the second slide. ...
1
vote
1answer
119 views

Legend of picture, caption

I would like to assign one caption to a picture in my report, without this caption begin in the listing of figure. I use the following: \begin{figure}[htbp] \begin{minipage}[l]{.645\linewidth} ...
1
vote
2answers
536 views

Caption format changing

I want my captions of figures to be formated like this: 1 pav. First Caption 2 pav. Second Caption Furthermore, I need my captions to be centered. How can I redefine this?
1
vote
1answer
352 views

Different captions for float and non float figures

I use following code for nonfloat figures.. \begin{minipage}[c]{\textwidth} \centering \includegraphics[width=3.0in]{myimage.eps} \captionof{figure}{Caption for image} ...
1
vote
1answer
356 views

Suppressing figure numbers in wrapfig

Like @brannerchinese here, I'd like to suppress the figure numbers for certain figures, but I'd like to do it within the context of the wrapfig and wrapfigure package/environment. Being rather new at ...
1
vote
1answer
164 views

Table number in ref inconsistent with actual table caption [duplicate]

Possible Duplicate: Why does an environment’s label have to appear after the caption? For convenience of readers, Table~\ref{table_abbreviation} lists the abbreviations and their full ...
1
vote
1answer
295 views

Setting parent of a counter and removing counter from caption

I guess, I have two questions. My very concrete problem is that I want \caption{xyz} to not print a table counter within a table. By now it prints “Table 0.1: xyz“. How would I remove that? But ...
1
vote
1answer
280 views

How to make graphic caption rotate?

I have a large graph that has to fit the paper in the landscape mode, therefore I have to rotate the graph using includegraphics[angle=-90]. However, the usual \caption{} statement remains the same as ...
1
vote
1answer
148 views

journal specification for figures and figure captions

I am submitting some work to a journal and the format of the article has to follow some specific guidelines. One of which is that following the main text, the figure captions are then required ...
1
vote
1answer
473 views

Left/Center/Right references to subfigures

I have a figure with three subfigures shown in the code sample below. How can I change the reference to a subfigure so that I have Figure 1 (left), Figure 1 (center), and Figure 1 (right) instead of ...
1
vote
1answer
158 views

Making figure captions wider

I have the working sample below: \documentclass[a4paper,11pt,twoside]{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{amsmath, graphicx, ...
1
vote
1answer
108 views

Order of `float` and `caption` packages in preamble

I am using float and caption packages in my document, and also packages like tabularx, listings, algorithm... that (as far as I know) define floating elements or elements that have captions ...
1
vote
1answer
3k views

Adjust the caption to figures on minipage

Using minipage, is posible to split the (a) (b) letters above any figures, in order to perfectly center them? \begin{figure}[tpb] \subfloat[]{ ...
1
vote
2answers
2k views

Align table caption with left border of longtable

Subj. I cannot use singlelinecheck=off because it aligns it to the left border of the page. And why table is too narrow? \documentclass[12pt,a4paper,oneside]{article} ...
1
vote
1answer
404 views

captions on animation within tabular

I am trying to make a beamer frame with 4 animations on it. I am currently arranging them in a tabular with 2 col and 2 rows. \begin{tabular}{cc} \animategraphics[...animation arguments ...
1
vote
2answers
2k views

Rotate table with caption: “Not in outer par mode. \begin{table}[h]”

I would like to rotate one table with caption however it returns me an error Missing \endgroup inserted ...omparação de Gerenciadores de Documento} Undefined control sequence \end{sideways} ...
1
vote
1answer
4k views

Move the position of figure subcaption of subfloat command

As the following code shows, it will label an 'a' and 'b' under each picture. How can I put the label at the left-top corner of each figure? \documentclass{article} \usepackage{graphicx} ...
1
vote
1answer
633 views

Subfig caption doesn't start at start of line

I have a situation where the subfigure caption doesn't start at the start of the line. \captionsetup[table]{width=\textwidth} is added to try to have the caption take up the whole line rather than ...
1
vote
1answer
526 views

Unequivocally force first reference to same page as the referred item?

Background Writing a manual using LyX. All tables, figures, and source listings are always referenced in the paragraph (or enumerated step) that immediately precedes them. The preamble to the manual ...
1
vote
1answer
38 views

How to make caption of a subfigure wider after scaling the figure?

i wanna scale (a) similar to (c) unfortunatelly, the caption is scaled too how can i make the caption of (c) wider (similar to caption of (a))? thank you \documentclass[12pt]{article} ...
1
vote
1answer
35 views

Remove hyperlink from figure captions

I have been asked by the a journal editor to remove the blue highlighting (i.e., hyperlinks) in all figure captions. The following MWE generates the below output (provided that the ctanlion.eps file ...
1
vote
1answer
27 views

Caption of algorithm2e to the upper left corner without ruled option

I don't want to use ruled option, but still, I want the caption of my algorithm to be at the upper left corner. I tried \renewcommand{\@algocf@capt@plain}{above} but it only moves the caption ...
1
vote
1answer
44 views

Algorithm floating like figure with border

This is my document (LuaLaTeX): \documentclass[a4paper,twoside,12pt]{scrreprt} \usepackage{fontspec} \usepackage{a4wide} \usepackage[english]{babel} \usepackage{caption} \usepackage{blindtext} ...
1
vote
1answer
29 views

include figure, auto-fit image and add caption at same time

I have to include some images to illustrate a problem. So I used the following code to auto-scale them to text-witdh, which works amazing. But how can I add some caption? (I have to label and number ...
1
vote
1answer
29 views

How to direct all sub-captions of the subfigures in a central caption

Is there a way to direct all the \caption{}'s found within multiple nested subfigure environments within a central \begin{figure} environment given as \begin{figure} ... ...
1
vote
1answer
112 views

How to change font type and size in case of: table/figure caption, page number?

I use packages: fancyhdr and caption. I want to change font to Arial only in those two cases: 1.table/figure caption 2.page number Also I want to change sizes to 10pt and 11pt I know in ...