{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

3
votes
1answer
48 views

One bookmark per longtable

I asked a question about how to generate bookmarks for tables and figures a few month ago and received an excellent answer (solved question). The proposed code works like a charm for normal tables. ...
0
votes
1answer
70 views

Useasboudingbox and measuredfigure to align caption

I use useasboundingbox in my tikz pictures to make them optically centred. I want the caption to be aligned with the left edge of the bounding box. Normally this can be done with the measuredfigure ...
6
votes
3answers
116 views

Separation between caption and subcaption

Consider the following MWE \documentclass{article} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure} \begin{subfigure}[t]{.5\linewidth} \centering \rule{3cm}{3cm} ...
2
votes
2answers
103 views

Table caption longer than table

How do I make the table caption the length of the table please? \begin{table}[ht] \caption{Empirical Model Results} \centering \begin{tabular}{l c c c c} \hline\hline & ...
0
votes
1answer
109 views

caption without figure envirorment

I'm making a report with a latex editor. I have a caption made up by two pictures in a column. The picture below is larger than that of above, and I use center envirorment without 'figure' in order to ...
5
votes
2answers
169 views

Modifying the “Figure X” text

In LaTeX, it is usual to insert a figure with this structure: \begin{figure*}[] \centering \includegraphics[width=\textwidth]{fig1.eps} \caption{A two line caption} \label{the_label} ...
1
vote
1answer
42 views

Custom caption for lstset to use in table of contents [duplicate]

I would like to use the functionality of figure captions (that can have two captions: one for table of contents and one for the caption below/above the figure) with my custom filecode environment. ...
4
votes
1answer
47 views

\caption versus a new setminus

I'm using the following as an improvement to the look of \setminus: \newcommand\rsetminus{\mathbin{\mathpalette\rsetminusaux\relax}} \newcommand\rsetminusaux[2]{\mspace{-4mu} ...
3
votes
2answers
147 views

Split wide table into two but keeping the same caption and table number

I have a wide table that doesn't fit in one page so I split the table in 2. The problem is that I need to keep almost the same caption (the second one has to add the word Continued to the caption) and ...
1
vote
1answer
39 views

Lasthead section in a longtabu environment

Longtabe environment has sections for first head and other head. I want to add third section for last head wich must be on the last page of a table with slighly different text. Is it possible? PS. ...
2
votes
1answer
69 views

Configure long table caption

I have to prepare several long tables in a conference proceeding book. Editor told me that I had to suppress captions of long tables on odd pages. Is it possible? EDIT: Minimal working example here: ...
4
votes
1answer
3k views

Knitr and rmarkdown will not add figure captions to the output

I am writing a report on Rmarkdown and knitr using RStudio, and cannot find a way to get figure captions on my document. My code for the chunk where I try to plot is like: ```{r ...
5
votes
2answers
172 views

Width of the caption of a figure

I am having trouble making the caption beneath a figure to be of same width of the figure (less than the width of the paragraphs in the same page). How can I force the caption width to be the same as ...
4
votes
1answer
65 views

Can I use \singlespacing to define captions to have a single-line spacing?

I'd like to try and format my captions with single-line spacing. The rest of the document is set with \onehalfspacing. A brief search lead me to this post on komascript.de, in which Markus wrote: ...
0
votes
0answers
89 views

Unable to add footnote with url in caption

I am trying to add a footnote with a url within a caption, but i keep getting an error: \begin{figure}[H] \centering \includegraphics[width=.8\textwidth]{images/graphs/somegraph.pdf} ...
4
votes
1answer
53 views

Align figures to the left side of an article

I am trying to write a user manual for a product for which I would like to have several figures and small explanatory test in a column to the left of each page. I have run into a strange issue, where ...
0
votes
0answers
149 views

tikz/gnuplot legend inside the caption

I want to add my legend inside the caption, similarly the one given in this question. But I want to use gnuplot environment as in the following MWE. Unfortunately, I am getting '??' because ...
1
vote
2answers
73 views

Caption position

I am writing a latex code where I include a graphic using \includegraphics[]{}. The caption is always at the center below the figure. How to change its location to the very left (below the figure) ? ...
2
votes
0answers
103 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
3
votes
2answers
106 views

How can I rotate Figure caption to fit under rotated figure?

I wish to put the caption of a rotated figure underneath the figure, rather than at the bottom of the page. Here is my code: \documentclass{article} \usepackage{array,ragged2e,titlesec} ...
1
vote
1answer
62 views

Image not centering in fullwidth even page

My MWE is, \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} ...
1
vote
0answers
116 views

Wrong figure and caption position

I have a problem with my images!! As you can see, the position of images (a) and (b) is totally wrong! I don't know why! I used Latex for a lot of years, but it is the first time I see something ...
2
votes
1answer
70 views

Prevent a part of the caption from appearing in the list of figures

I am using the 'article' class, 'figure' environment. My captions are divided in two parts: the information about the figure the credits of the figure (for which I use \textfff{}) In my list of ...
3
votes
2answers
128 views

Subfigures in Margin note

My codes, \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} ...
3
votes
1answer
79 views

Float numbering does not include chapter when using \DeclareNewTOC

I use the \DeclareNewTOC command from the KOMA classes because it automatically produces hanging indents for the caption, same as the builtin floating environments like figure. However, unlike figure, ...
1
vote
1answer
60 views

Caption in wrapfigure spills into text

The caption in my wrapfigure spills into text. Is this fixable with wrapfigure or do I need to use something else? Screenshot: MWE (sorry for the mess in the preamble, but some of that is probably ...
2
votes
1answer
42 views

Caption not working while subcaptions are present

I have the following code: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption,subcaption} \begin{document} \begin{figure} \vspace*{\fill} \centering ...
0
votes
1answer
250 views

How to place the caption of a lstlisting in the margin? (scrreprt, floatrow)

In the following mwe I am using the floatrow package to place the figure captions in the margin. How can I do the same for listings? Update: Some listings are spread over two pages. ...
2
votes
1answer
196 views

New float environment in tufte-book with alternate caption placement for full width figures

I am trying to define a new environment for photographic plates in a tufte-book.cls book. The environment should: Work just as the existing figure / table environments do for non-starred uses, and ...
4
votes
2answers
96 views

Changing the default layout produced by algorithm and algorithmic packages

If the default output of the algorithm and algorithmic packages for the following code: \begin{algorithm} \begin{algorithmic}[1] \PRINT \texttt{‘‘Hello, World!’’} \end{algorithmic} ...
4
votes
1answer
57 views

Error on \caption for figure [closed]

When I use \caption for figure, I got a compilation error: Undefined control sequence. <argument> {\captionfonts \csname fnum@\@captype \endcsname : \ignorespaces ... ...
1
vote
2answers
66 views

set default font size for \caption*{}

I currently use \caption*{} elements from the caption package to add small notes and explanations underneath figures and tables. Since I want those notes to be small I write them as ...
1
vote
1answer
46 views

Put longtable caption in marginpar and keep compatibility with caption package

After some research I found a way to place the caption of a longtable (ltablex) into the left marginpar, aligned with the top of the table. Therefore, i adapted this solution stackexchange.com: ...
0
votes
1answer
66 views

Figure labels in text changing as figure caption changes [duplicate]

I have a question regarding referencing figures in the text. Say I have a figure in text with the caption Figure 1: Blah Blah. Then in my main text i refer to this figure saying something like "As you ...
0
votes
0answers
87 views

captionof{} and double-spacing

I am combining Tikz pictures with \includeimage in my thesis, which means I am mixing \captionof{} and \caption for captioning all of my images. I have now noticed that after invoking \doublespacing ...
1
vote
1answer
1k views

No caption number for figures and tables

I whant to make some of my figures just without a number. Instead of Fig. 1: Caption. I want simply Caption. I tried to do \caption*, but it doesnt work for me. Even after caption package upgrade. ...
0
votes
1answer
50 views

Wrong placing of captions for minipages

I have problems placing subcaptions and captions for minipages. A picture depicts what I want, but a figure included in one graph. Maybe, the right solution wasn't \picture in a previous post. I hope ...
0
votes
2answers
100 views

how to put caption (a) below 2 pictures

I am rephrasing my question... I want to obtain attached Image.. I have coded as below.. But I do not obtain required output.. Can you help me modify my code? \begin{document} \begin{figure}[ht] ...
3
votes
1answer
707 views

\caption outside float. Algorithms

I'm sorry if this is repeated but I'm not able to find my answer. I am using the following code. But I receive the error: ! LaTeX Error: \caption outside float. \usepackage[algo2e]{algorithm2e} ...
0
votes
0answers
21 views

Caption text alignment [closed]

I'm writing my PhD thesis in Latex. I'm adding a caption to a figure but unfortunately the lines of the caption seems not to be aligned. In other words they appear like this: Is there a way to ...
0
votes
1answer
122 views

Hard space in figure/table caption

I have a problem with figure captions. Since I have very long words in figure and table captions (names of chemical compounds) the space between caption label, caption number and first word of caption ...
0
votes
1answer
112 views

How to put a figure in one column and its caption in another column in a two column article latex

Could some one help me to figure this issue out? I have a two column article and I have figures that are long. They fit in one column and that's ok but if I want to add the caption under the figure, ...
2
votes
0answers
274 views

How to adjust spacing between caption and table / figure in beamer?

I want to adjust spacing between caption and table/figure in beamer. However I am not able to overcome the warning Package caption Warning: \caption will not be redefined since it's already ...
2
votes
2answers
225 views

Several caption problems in longtable and tabulary

I'm trying to typeset some multipage tables with tablenotes and repeating captions on each page. I found this question, which marries the longtable environment with tabulary. This is quite nice, ...
1
vote
1answer
71 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 ...
0
votes
0answers
165 views

Error in using “caption” package: “caption: For a successful cooperation we need at least version(caption) is available. }{}”

I need to use the "caption" package. I downloaded it from CTAN and copied the file "caption.dtx" in my folder. When I compile the code, I get the following error: caption: For a successful ...
4
votes
3answers
197 views

How can I have different caption delimiters for captions and contcaptions?

I'm using the memoir class and have a figure that is continued on the next page. The markup is roughly this: \captiondelim{: } \begin{figure} % ... \caption{Foo bar} \end{figure} \begin{figure} ...
4
votes
2answers
73 views

How can I insert a line break after the captionlabel (koma-script options)?

On page 125 in scrguien.pdf, the two lower captions have a line break after the label. How can I do the same for my captions? Is that even possible with built-in KOMA options? Looked for a good 15 ...
0
votes
1answer
50 views

How can I force the captions to always have the same margin?

I'd like all captions to have the same margins on the left and right side. How can I achieve that? Picture MWE \documentclass[ 12pt, a4paper ]{scrartcl} \usepackage[T1]{fontenc} ...
5
votes
3answers
122 views

attachfile does not work inside captions

In the caption of some figures I want to link to files using the attachfile2 package. But when I try to compile the following example with XeTeX, MiKTeX and TeXstudio I get the warning ** WARNING ** ...