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

Caption with two figures in a single column

How can I put two figures in a single column, with a label (say a), b) ) on the left and in the middle or top of each figure? I was trying \newcommand{\Inserttwopgf}[6]{% \begin{figure}[t] ...
2
votes
1answer
35 views

Math w/italics in normal context, roman when in italic context (ie, caption)

I have not found this question asked previously. I am fine with math using italics for variables when the math appears in a normal context. But our figure captions are in italics, and when math is ...
1
vote
1answer
33 views

Tabular size exceeding page size

I am making a table which includes single columns and 2 - merged columns. I am encountering two problems, first the data is very long and is not places within the area of the page, it exceeds the ...
2
votes
3answers
50 views

Avoiding non-centered caption on ctable with float

I try to put my floats under the control of KOMA-Script using \restylefloat and KOMA's komaabove and komabelow. This works, but gives undesired side effects with ctable. The tables are centered but ...
0
votes
0answers
27 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
29 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: ...
2
votes
0answers
20 views

Two parts caption in listoffigures

I'm using this template to write my report. I'm trying to add a listoffigures so I added those lines in the .cls file: \newlength{\lofsep} \setlength\lofsep{2pc} \contentsmargin{0cm} ...
5
votes
2answers
91 views

frame around image and caption

I have an image wich is beside some text, and I would want to frame the image and the caption. My code is for now: \begin{wrapfigure}[4]{r}{8cm} \centering ...
2
votes
1answer
28 views

I have included verbatim to show a small section of code, how can I add a comment/caption for this verbatim?

I am writing some documentation on a tool I am using at work and I have included some code that has a comment to explain what a particular line is there for, this comment runs off the page if I leave ...
3
votes
1answer
29 views

Let caption float into margin

I searched for a long time to find a solution to let a caption of a figure and/or a table expand into the outside margin. I'm able to get a figure/table where the width is textwidth plus ...
0
votes
1answer
35 views

Should “axis” be italicized in LaTeX captions?

This seems more a grammar question than a LaTeX but here it is. It would be stranger if I posted it in the English stack site. What is the correct way to say see x axis: (1) see $x-axis$ (2) ...
2
votes
1answer
58 views

How to insert a main caption beside subfigures?

I have 3 subfigures that I insert at width=0.5\textwidth, which leaves some empty space. I would like to insert the main caption in this space. How can I do this? I am using subcaption package for ...
4
votes
1answer
24 views

Inserting caption for listings in LyX

I'm using LyX 2.1.1 and want to put captions for listings. I can do this by using LaTeX code in ERT but would like to do by using LyX built-in capabilities of Insert > Program Listing. Any help ...
6
votes
2answers
49 views

Arrange three images (with an own caption for each) in two rows using subfig package

I would like to arrange three figures like this: a long one on the left and two smaller square ones right to it (above each other). All three images need to have a separate caption. I am using the ...
0
votes
0answers
22 views

Undefined control sequence \captionsetup [closed]

This is my first post so sorry if I get the format wrong. I get the following errors whenever I try to compile my file using the caption package: Undefined control sequence \captionsetup ...
4
votes
3answers
6k views

Customizing caption in side-by-side figures

How do I customize my caption that follows this article's setting of the captions on page 26. The following is my attempt to do that, but still doesn't work. Obviously, what I want to achieve is to ...
0
votes
0answers
23 views

Customizing Multiline captions

I would like to have a caption which is centered and has multiple lines. For example, \documentclass{article} \begin{document} \begin{figure} \centering \begin{tabular}{cc} \rule{5cm}{3cm} & ...
0
votes
0answers
14 views

missing table caption with floatrow and sidewaystable

I am attempting to place two tables side-by-side using sidewaystable and floatrow. The second table features a number of sub-tables. The issue is as follows: when I place the caption command before ...
1
vote
2answers
22 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
3answers
632 views

Two figures side by side caption issue

I have searched around for two hours without luck. So I hope someone can help me this issue. Basically I want to place two different figures side by side to save space in my report. So I don't want ...
5
votes
1answer
45 views

Use \captionof in conjunction \subfigure?

I'm using the KOMA scrreprt class. I have a large figure with 6 subfigures, and a lengthy (but necessary!) caption explaining the figure that doesn't fit on the same page. I'm trying to use the ...
3
votes
1answer
34 views

Subfigure captions not centered

Having trouble getting captions in my subfigures centered. I've played around with the caption and subcaption packages a little bit and it seems like the subfigure captions are being treated like ...
4
votes
2answers
64 views

Multiline Caption

I want a caption of two lines, with the second line not centered but aligned to the left. This is the result of the following code, \captionsetup{justification=raggedright} doesn't seem to work. ...
2
votes
1answer
28 views

Algorithm2e caption separator with language package options

Please see the difference in the style of the caption separator. In the first example the : is typed directly after the word Algorithm 1. In the second MWE with language option german (also french or ...
2
votes
2answers
35 views

Centering figure caption does not work

I have a few narrow figures for which I want to center the caption. I have to use a LaTeX template from Springer (svmult.cls). This makes captions left-aligned by default. I took a look at this ...
0
votes
0answers
32 views

Longtable captions do not wrap inside threeparttable environment

I'm using the threeparttable package to automatically wrap my captions to table width. However, I occasionally need to use longtable to split a table across multiple pages. When I do so, the caption ...
4
votes
3answers
119 views

Changing Figure label to Map or some other label

I am writing a report that has graphics, photos and maps. If I use the figure environment everything is labeled as a figure in the caption. However, what I would like to do is where I have a map to ...
4
votes
1answer
78 views

Table caption spacing in dissertation

Style requirements for a dissertation require a single-spaced caption but with a double space between the table number and caption like so: Table 1. Table caption goes here, and is single ...
4
votes
1answer
43 views

Adjusting the caption of an algorithm2e code

I'd like to typeset the caption of an algorithm environment such that it is bold, fills the available width of the paper, and neither the caption nor the line numbers encroach into the margins. In ...
2
votes
0answers
26 views

Error using \ref in captions with Tufte and Babel

I am using the tufte-book class. When referencing with \ref within a caption using the babel package I get two errors: "Argument of \@iiminipage has an extra }." and "Paragraph ended before ...
1
vote
0answers
27 views

Reference(Source) directly under the caption

Is there a way to write the refernce of a figure directly under the Figure? \documentclass{article} \usepackage[ngerman]{babel} \usepackage{filecontents} \usepackage[backend=biber, ...
1
vote
0answers
20 views

caption above figure using knitr

This is a question originally asked on stackoverflow, but it seems to receive no attention and answers there. Since it's related to latex, I'm posting it also here hoping to receive some hints. I ...
3
votes
1answer
25 views

How do I align text after the table with column where the table is started?

After the caption of the a table, I have few lines of text which I like to be aligned from where the table is started. The table is centered aligned, how can I find the column from which the table is ...
4
votes
2answers
36 views

Latex listings package, issue with caption touching the frame and junk character instead of space

I am using listings package and facing two issues Following is the LaTeX code and output \lstset{language=Java, basicstyle=\small, frame=single, breaklines=true, ...
2
votes
2answers
35 views

Tabularx and short caption causes error

I'm trying to construct a multi-page, landscape table with variable column widths. It was working until I started to get a problem with the caption. If I try to include a short caption I get the error ...
4
votes
1answer
73 views

Very narrow table caption

I don't know why the table caption is so narrow The code is \begin{table}[!t] \centering \small \caption{\textbf{Main characteristics of the simulated system.} The latencies assume ...
0
votes
1answer
43 views

Tabularx, Caption and Footnotes

I need to have some tables with the following requirements: The need to be of width \textwidth; The caption has to be on top of the table even at automatic page breaks; The tables should not float; ...
1
vote
1answer
40 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 ...
0
votes
1answer
50 views

Single instance changing of caption

I have a setup where I need, for one instance, to make a caption read Equations rather than Equation. Is there a way to do this The code that I have is below Cheers \documentclass{scrreprt} ...
3
votes
2answers
340 views

How to import data from a CSV file in a figure caption using csvsimple?

I have made a pretty report that gets all the data from CSV files data.csv like this : Images,Infos,Bayer,BilineaireA,BilineaireB,TeinteA,TeinteB,ContourA,ContourB,Forme img1(illusion),Temps (en ...
4
votes
2answers
253 views

Use CSV data in table caption?

I want to use some data, imported with csvsimple, in a table caption. \begin{filecontents*}{data.csv} column1,column2,column3 name1,val1a,val1b name2,val2a,val2b \end{filecontents*} ...
3
votes
2answers
25 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 ...
2
votes
1answer
31 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 ...
2
votes
1answer
33 views

Set distance between Captions

I've got a question about the placement of captions, specifically the distance between the captions. The problem is that I have two figures next to each other (through minipage) that both require a ...
2
votes
1answer
51 views

Figure caption does not continue on new page

I have a large figure caption that I want to display. However, it just runs off the page into nowhere instead of onto the next page. What command do I need to fix this? Googling the problem doesn't ...
21
votes
2answers
18k views

How to add caption for a TikZ picture?

I'm drawing a automaton figure, and I want to name it says 'M1' below the figure? A minimal example would be greatly appreciated. Thank you. \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on ...
2
votes
2answers
23 views

\labelfont from caption package not working

I am trying to change the font of the label in the caption, but it seems not work. The font is changed in the text of the cation but not in the label This is my preamble: ...
3
votes
0answers
25 views

Using lstinline in caption of lstlistings with multicol?

Consider this MWE: \documentclass{article} \usepackage{multicol} \usepackage{listings} \begin{document} \def\extra{extra} \begin{lstlisting}[ multicols=2, caption={ [short] aaaa \extra, ...
1
vote
0answers
22 views

subfigure global counting caption

I would like to keep subfigure count my figures globally and label them continuesly. This is the way it is: [Fig 1] [Fig 2] [Fig 3a Fig 3b] [Fig 4] And that is the way I want it: [Fig 1] [Fig ...
7
votes
4answers
101 views

Only get filename and extension of listing, not whole path

I am trying to add the file name as caption. I was able to do this setting caption=\lstname but this shows the full path. I am now trying to get the name of the file and extension to show only. I ...