Questions tagged [captions]

{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.

Filter by
Sorted by
Tagged with
2
votes
1answer
22 views

warning when using caption with hyperref's localanchorname option

The MWE below gives a warning: "warning (pdf backend): ignoring duplicate destination with the name 'section.1'". The warning disappears when commenting out either the option "localanchorname" or \...
1
vote
2answers
31 views

How to include an \index item within a figure \caption

I would like to create an \index{} item specified within a figure \caption, as posted in this question, which was closed because it did not contain a minimum example. Here is code that illustrates ...
0
votes
0answers
17 views

Backgroud colour of picture captions

How does one change the background colour of the picture caption? For example, \begin{figure}[h!] \begin{center} \includegraphics[scale=0.5]{model_II_spec.png} \caption{Model II Species} \label{...
0
votes
1answer
17 views

Conflict of hyperref with \addtocounter

For some reasons, I need to define the captions before the tables with the help of the capt-of package. When I am trying to use the hyperref package, a conflict occurs with \addtocounter and the ...
1
vote
1answer
44 views

Text in image scaled to same size as body text

I am working on a research submission and my supervisor requires that any text on my graphs (e.g. axis labels, tick marks etc) are the same size as text in the main body of my report (including ...
0
votes
0answers
19 views

Problem with polish figure captions in Rnw

Can anybody help me with figure caption in Rnw? I think the problem is with encoding. <<wDensityGamma2,fig.keep= TRUE, echo=TRUE, fig.cap="Wykresy gęstości rozkładów gamma">>= curve(...
2
votes
2answers
16 views

Problems with subcaption in frontiers documentclass

If I use the subcaption package within the frontiersSCNS documentclass, the subfigure counter seems to be not reset properly. The MWE \documentclass[utf8]{frontiersSCNS} \usepackage{subcaption} \...
0
votes
1answer
18 views

Change position of the caption with the all lstlisting

I have a problem with the position of the caption with the lstlisting. This is a minimal example \documentclass[12pt]{toptesi} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ...
2
votes
1answer
19 views

Remove indent from figure caption when using arsclassica option for classicthesis

I have the following MWE: \documentclass{article} \usepackage[style=arsclassica]{classicthesis} \usepackage{graphicx} % ------------------- \begin{document} \begin{figure} \includegraphics[width=\...
0
votes
0answers
34 views

how to let caption adjust text to fill up the line

\documentclass[aps,prb,twocolumn,floatfix,superscriptaddress,notitlepage]{revtex4-1} I am using \usepackage{subfig}. Problem arises after I use this package, the main caption look different than ...
2
votes
1answer
34 views

algorithm2e - Caption without text

In the following code I would like to have a caption without text. In the following MWE there are unwanted colons because the caption is Algorithm 1: . How can I fix that ? \documentclass[12pt]{...
1
vote
1answer
26 views

caption-justification in subtable (subfig package)

I am using the \begin{table} \subtable[] \subtable[] \end{table} on two related tables, that are tiled horizontally(one above the other). The problem is that I wish the (sub) captions (a) and (b) to ...
1
vote
1answer
35 views

Caption issue with Latex Figure numbers

I'm working with Overleaf (Online Latex Editor) and I have an issue with captions when I add a new figure. It generates automatically the figure number but it's bad written. This is my code when I ...
0
votes
0answers
23 views

Problem displaying the FIGURE number when using dgruyter.sty

I'm writing a journal article that uses De Gruyter style. The problem I wasn't able to solve is the following: When I include a figure, it is displayed correctly, but in the caption the legend "...
0
votes
1answer
28 views

Remove trailing period from captions in ToC

Every figure, table, formula and listing in my document has a caption that ends with a period. The problem is, that these periods are also displayed in the ToC, which they shouldn't. I found a ...
0
votes
0answers
36 views

convert uppercase numbers with otftotfm [duplicate]

I'm trying to get uppercase numbers for Linux Libertine/Biolinum with PdfLaTeX because Libertine font numbers have a different height than text and I think it doesn't look nice in headers and captions....
1
vote
2answers
48 views

Table caption: place “Table” label above caption

I require a method for captioning tables according to IEEE standards as follows: Specifically, "TABLE I" must be above the caption itself. For the record, I am aware of the \documentclass{ieeetran} ...
0
votes
0answers
18 views

Large figure preceded by small text, small caption under figure, large caption on next page

I would like a large figure to be preceded by a bit of text, to be followed right below by "Figure X: (Caption next page)", and then have the large caption on top of the following page. Here is what ...
0
votes
1answer
20 views

Figure preceded by small text, long caption on next page

I have a figure caption that is too long to fit in the same page of the image. I would like to precede the image with a little bit of text and start the next page by the caption, then followed by text ...
0
votes
1answer
34 views

How to put large figure caption on separate page from figure but not separate from the rest of the text

I have a large figure and I would like to put the caption on the next page. When I use what I have found "How to put large figure caption on separate page from the figure", it works with \usepackage[...
0
votes
0answers
20 views

Algorithm exceeds page, short captionof form in TOC needed

I know this has been asked a couple of times, however the usual advices in using only the algorithmic environment without algorithm doesnt seem to work as i lose my algorithmn numbering and the short ...
1
vote
1answer
83 views

uppercase numbers in chapter headers and captions

I'm trying to get uppercase numbers for Linux Libertine/Biolinum with PdfLaTeX because Libertine font numbers have a different height than text and I think it doesn't look nice in headers and captions....
1
vote
1answer
62 views

Caption Longtable Error

I get this error when trying to compile my longtable caption. Without the caption it all work fine. I also included the \\ after the caption. !Undefined control sequence. I tried everything related ...
1
vote
2answers
19 views

How to align a caption to the left side of a table in an wrapped environment

I am trying to find a solution for the following problem: I have a table in a wrapped environment (wraptable). I need my table caption to be left aligned with the table. Also, I don't want the ...
5
votes
2answers
47 views

Align picture to the right

Consider this MWE \documentclass[12pt,a4paper]{article} \usepackage[showframe]{geometry} \usepackage[demo]{graphicx} \usepackage{lipsum} \usepackage{floatrow} \usepackage{caption} \captionsetup{...
1
vote
1answer
34 views

How to fill landscape page with four images

I have huge set of weather related images with are plotted for 12 months for various cities. I would like to present these images to the users in the form of pdf in landscape layout in an organised ...
1
vote
1answer
41 views

Box spanning multiple pages as a float

I am trying to create boxes spanning over multiple pages considered as floats. I defined boxes as floats which I can refer to using a \DeclareFloatingEnvironment. It works well. I find a way to ...
0
votes
0answers
19 views

Error in tables numbering [duplicate]

i have an error in the numbering of the tables. some of the number are missing and don't know what is the problem. the following picture illustrate the problem. please i need your help!
2
votes
2answers
30 views

Using width for caption introduces offset of said caption

I wanted to use \usepackage[width=0.75\textwidth]{caption} To adjust the width of my caption to the width of the table. However, it introduces a significant offset of the caption. Without the ...
1
vote
0answers
24 views

How to reduce the space before and after minted text with captions (listing)?

I have to write an article with many blocks embedding equations and code and decided to use the package minted. I would like to reduce the spacing (margins) before and after each minted block, just ...
1
vote
2answers
28 views

captions: combining justification=centering with format=hang?

is it possible to combine justification=centering with format=hang? In standard mode, the caption package sets multiline captions as justification=raggedright. I would like to have all captions ...
1
vote
0answers
36 views

caption and longtable forcing text out of margin [duplicate]

Consider this example \documentclass{report} \usepackage{graphicx} \usepackage{caption} \usepackage{longtable} \usepackage{lipsum} \begin{document} \begin{figure}[htbp] \centering \...
2
votes
1answer
23 views

Figure and caption side-by-side with multiple includegraphics commands

I am trying to adapt this solution (top option) for placing captions beside the figure. If I have one figure it works as expected, but when I try to add a second \includegraphics command to get an ...
1
vote
1answer
59 views

Error caption outside float when trying to caption a table

I am trying to produce a caption to describe a table in LaTeX, however am getting an error: ! LaTeX Error: \caption outside float. The formulation of the table is: \begin{center} \begin{tabular}{c| ...
1
vote
1answer
50 views

How to make a table/figure not to be placed in middle of a paragraph in a new page?

Is there a way to make table/figure not located in the middle of a paragraph in the new pages? I had tried: \begin{table}[htp!] and \begin{table}[h!] \documentclass[12pt,oneside]{book} \...
3
votes
1answer
35 views

How to change caption style for new float in memoir?

i defined a new float in memoir class. everything works fine, except i can't manage to change the caption font style. if i declare \captionnamefont{\bfseries}, the font changes only for default float ...
1
vote
1answer
27 views

Align generated maps and put captions

I'm generating Karnaugh Maps with the karnaugh-map package. How can I control the alignment of the maps and how can I put a caption under each map? The result I'm getting now is this: I want the ...
0
votes
0answers
23 views

Regarding incompatibility of the caption package with IEEEtran class

When trying to load the caption package with the IEEEtran class, I get the following warning Unsupported document class (or package) detected, usage of the caption package is not recommended. See ...
0
votes
0answers
15 views

Alignment of caption in sciposter

Sciposter redefines figures and similar stuff. Sadly the captions are no longer centered and things like \captionsetup{justification=centering,margin=Xcm} or format=hang do not work, becaust ...
0
votes
1answer
19 views

Caption - more lines align

\documentclass{article} \usepackage{fontspec} \usepackage{caption} \setmainfont{Segoe UI}% [BoldFont=Segoe UI Bold] \usepackage[tablename=TABLE]{caption} \captionsetup{labelfont=bf} \usepackage[...
1
vote
1answer
17 views

Adapting a document to tglat2e style and its conflicts with amsthm and caption

I am trying to adapt my document to the tglat2e-style of this journal. Please take a look at this MWE: \documentclass{tglat2e} \let\proof\relax \let\endproof\relax %This trick is due to David ...
0
votes
2answers
41 views

Label table without table environment

I'd like to label a table without putting it into a table environment. From this I know that this wont work, but the solution offered there does not work either, because, if I put my table (tabularx) ...
1
vote
1answer
36 views

enotez loses an endnote placed in a figure caption when using endfloats

My MWE is this: \documentclass{article} \usepackage{endfloat} \usepackage{enotez} \begin{document} \endnote{First endnote} \begin{figure} \caption{Hi! \endnote{Second endnote}} \end{figure} \...
2
votes
1answer
51 views

What is the difference between subfigure and subcaptionbox both from package subcaption?

I was recently searching for a way to place subfigures into one overall figure. As I found out, today we should make use of the subcaption package rather than usig subfig or something else. However, ...
3
votes
0answers
42 views

Add captions and labels to custom tcolorbox listing?

I am using following solution to display code which should look like the code from Jupyter Notebook. I got it from here: IPython Notebook cells with listings The result looks like this: (Source from ...
0
votes
0answers
24 views

Table Caption style not updated in Tcolorbox

We defined caption style using caption package, caption style not updated in the tcolorbox, please help us to resolve. Please find MWE file: \documentclass{book} \usepackage{tabu} \usepackage{...
4
votes
3answers
109 views

Table caption in the middle of the table

I managed to make a table but the caption (or any text I add after it) is in the middle of the table, as if the table ended after the second row. I couldn't find a similar question so I decided to ask ...
4
votes
2answers
54 views

KOMA script: change caption font for only one type of float

I set up a new type of float. Using the fontspec package in scrreprt, how do I change the caption font only for that one type of float? Right now, I'm using \addtokomafont{caption}{\gillfont} and \...
0
votes
1answer
48 views

Caption modification conflicts with babel french and changes

Following a previous question regarding caption modification in a long document (with a nice solution proposed by @egreg), I ended up using the changes package to handle corrections. As my document ...
0
votes
0answers
7 views

subfigure with caption on the side, solution not working

I am having trouble with a figure that has three vertically-aligned sub figures (each with subcaptions below) and the figure caption to the side. I tried using the structure from this thread: ...