Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
19 views

Figure “name.jpg” mysteriously shows up! [duplicate]

Hi I'm debugging my Schools Thesis template, and name.jpg of figures I import are mysteriously showing up. I have included the caption definition (I think) and the code I used to input image. thesis....
1
vote
1answer
15 views

Caption in Sweave after an R plot

I have the following R chunk: <<echo=FALSE>>= par(mfrow=c(3,1)) #cas basal: no negra no fumadora sense prematurs ni hipertensi? lwt.pred<-seq(80,250,1) prob.pred<-0+model.final$...
1
vote
1answer
42 views

Figures, texts and captions outside margins

I'm having problens in adjusting figures inside the expected space for the text, since they are getting outside the margins. The captions and some lines of text have the same problems. Here's my code:...
0
votes
0answers
36 views

\caption cannot be used with latex template

I am trying to use this template to write my thesis. In the overleaf link, both tex and sty files are provided. In tex file, when I tried to add \caption in \figure, I got this error: Use of \...
1
vote
1answer
39 views

Tkz Euclide problem

\documentclass[a4paper,11pt,openany]{book} \usepackage{float} % figure wont float anymore \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{xcolor} \usepackage{geometry} \...
2
votes
1answer
28 views

Algorithm inside a tcolorbox: how to put a label to the algorithm but the caption as title of tcolorbox?

This question comes after a question about algorithms inside tcolorboxes. Before the question, is better to explain what I have now. I have a file with the algorithm that is q-learning.tex. \...
0
votes
0answers
31 views

Figures with \only in Beamer with captions updated [closed]

I am unable to get the figure environment to work with \only in beamer along with updating figure caption. Here is sample code: \begin{frame}{VERIFICATION \& VALIDATION} \begin{columns} ...
0
votes
0answers
32 views

Make the figure captions all empty in memoir

I'd like to suppress the text in all captions (ie. make all the captions empty, but leave the figure numbers) in in a document that uses the memoir class. I can do this if I use the caption package by ...
4
votes
1answer
33 views

inconsistent space between subfloats in subfloatrow

There is an inconsistent space between the second and third subfloat in subfloatrows. I don't understand where it comes from and how to remove it. (OMFSM, MWEs can take a really long time to assemble!)...
1
vote
1answer
33 views

Use short description of caption in figure title

I just wrote a long 200 pages documents with Latex, and realized a small issue. All my figure have the following format: \documentclass[a4paper,11pt,fleqn]{book} \usepackage[T1]{fontenc} \usepackage[...
1
vote
1answer
18 views

Delete the author of figure in table of content

I want to put the author of the image but I do not want the author to appear in the Table of Contents, how do I delete it from the table of contents to the author? \documentclass{article} \usepackage{...
0
votes
0answers
11 views

Tikzdevice with ggplot: centering a caption

I have the following R code to generate a tikzdevice plot: tikz(file = "plot_CIs.tex", width = 5, height = 5) par(cex = 0.8) ggplot(confidence_interval, aes(x = Statistic, y = Values, group = 1)) + ...
0
votes
1answer
21 views

Tikzdevice with ggplot: overfull hbox

I have the following R code to generate a tikzdevice plot: tikz(file = "plot_CIs.tex", width = 5, height = 5) par(cex = 0.8) ggplot(confidence_interval, aes(x = Statistic, y = Values, group = 1)) + ...
1
vote
3answers
68 views

Can I change caption of a figure from “Figure” to “Table”

The captions of the figures in latex start with Figure 1 or Figure 2. However, I am inserting a table (which I have drawn using powerpoint). I do not want the caption "Figure". Instead, I want the ...
0
votes
1answer
64 views

List of Figures & Tables - how to move caption label into caption itself

I'm using the article document class (as a base) and the caption package. I essentially need to change my LoF format from the default List of Figures 1 Multiline caption multiline caption multiline ...
1
vote
0answers
15 views

change \figurename when using babel [duplicate]

Consider this example: \documentclass{article} \usepackage{graphicx} %\usepackage[latvian]{babel} \...
0
votes
1answer
30 views

Removing Trailing Dot in Figure Caption

How do I remove trailing dot in Figure Captions. I am getting Fig. 1.1. but I require it as Fig. 1.1 I have seeing solutions for other classes of document(Scrreport).I am using report class.
2
votes
1answer
28 views

Alignment of text in Fig footer

I want to align the fig footer text in figure caption to left in double column image. Use of following code giving center alignment. cta_author latex file is available at:CTA \documentclass{cta-...
0
votes
0answers
24 views

Indent caption when text above is also indented by itemize or enumerate

This is the current behaviour: How it should behave: All I want to achieve is, that when I use a listing in an itemize, the caption should also be indented by the same amount the itemize indents the ...
0
votes
1answer
39 views

Consistent spacing between caption and TikZ and EPS figures

The problem I have is that spacing between a TikZ figure and its caption is bigger that between any other type of pictures and their spacing: Obviously, it can be solved by hardcoding \vspace{} or ...
2
votes
1answer
27 views

Setting up different font sizes for captions in each figure

I try to change font sizes od figures caption separately for some figures. I read that: Changing Figure caption text size. But using this solution sets it globally for whole document not for selected ...
0
votes
1answer
19 views

Number of figure and description, between them “-”

I have the following problem, I have a figure with its number and description like this: but I wish to delete the after the "2": In order to have a thing like this: Figure3.2 - Simple tables ...
4
votes
1answer
26 views

align graphic and caption with text width using beside caption

I am trying to align my figure with the \captionbeside within the textwidth. The figure and the caption next to it should be each 0.5\textwidth and should not go beyond the textwidth in the margin. ...
2
votes
1answer
30 views

Problem using sidecap in beamer

I am using Texmaker 5.0.2 (beamer class) to prepare a conference presentation, I want to put a figure caption in the right side of the figure, I used the code below but when I compile, the editor ...
0
votes
1answer
34 views

Adjusting the figure caption

When leaving the caption empty, I get something like "Figure 11-". How do I remove all the dashes "-" from empty captions. \documentclass[a4paper,11pt]{book} \usepackage[francais]{babel} \usepackage{...
1
vote
1answer
42 views

Why does latex throw an error when there is empty lines inside the caption environment

Here is an effect i've irritated me on for a while. When creating a figure environment with a caption like the one below \begin{figure}[ht] %%%Some figure \caption{Some text some more text some ...
1
vote
2answers
33 views

How to change the font size of the image caption for different images?

I am searching for a way to adjust the size of the caption. All the solution I have found deals with the caption package and uses something that changes the size globally. I wish to adjust each of ...
0
votes
0answers
13 views

How to put caption on the side of the figure without using SCfigure or Sidecap [duplicate]

I need to put caption to the left side of a figure. But I must not use SCfigure or Sidecap package. Those loads forever for some reason. Unfortunately, many of the the available solution online are ...
0
votes
1answer
52 views

Extra }, or forgotten $. … \z@ $\relax $ seqstrict}}{39}{figure.4.7} and so on

this time I have a strange problem. Following code is from the *.lof file: \babel@toc {german}{} \addvspace {10\p@ } \contentsline {figure}{\numberline {1.1}{\ignorespaces Architektur des $\mathbb {K}...
1
vote
1answer
28 views

Table without long caption but short caption in list of figures

I have a table which I would like not to have a caption (at all), but I would like to be able to insert a short caption so that the table would appear in the list of tables. How can I do this?
1
vote
1answer
17 views

Normal text should be separated from caption title

I need to know how normal text can be separated from caption title. \documentclass{article} \usepackage{amsmath,mathtools,amssymb,array,arydshln} \usepackage[german]{babel} \usepackage[latin1]{...
1
vote
1answer
38 views

I tried to set both font family and font size for caption, using DeclareCpationFont in XeLaTeX

I made a lot of research ins this forum, readjusted and tried all commands, but setting both font family and font size together, using DeclareCaptionFont does not work. 1st code, by me: \usepackage{...
2
votes
2answers
31 views

How to change the text size and line gap in caption of the figure?

I'm trying to change the text size and the gap between lines of caption of figure but it's not working. I have tried these solution given by people in these questions How to adjust the gap between ...
0
votes
1answer
25 views

\subcaption does not work

I am using the following code to list 3 figures in one line. It is working well and showing the figure if I remove the \subcaption for each figure. However, when I include the (\subcaption)s, it shows ...
1
vote
1answer
17 views

Unresolved references label within caption for STATA tables

I am using stata to generate a table. This STATA generated tex table has label defined within \caption{} command. This labeling should work. But it gives me unresolved references (Table ??). When I ...
2
votes
1answer
25 views

Odd subfigure indexing with minipages

I have two figures in this document. The second uses minipages to keep its subfigures together with a table (as suggested in this answer), unfortunately the subfigures of the second table are not ...
1
vote
1answer
32 views

Missing $ inserted. …3mm]{\includegraphics[width=4.002cm]{6a}}

I can not remove this error: Missing $ inserted. ... I have already used: \usepackage{subfig} \usepackage{graphicx} \graphicspath{ {D:/Users/test/} } and my code is: \begin{figure}[t] \...
1
vote
1answer
33 views

How do I select a Chinese font for caption label?

I am writing a document in Chinese and would like to choose a font for the caption label, different from that is used in the main text. I know it is tricky to work with Chinese font in LaTeX, but I ...
0
votes
2answers
68 views

Captions of figures in minipage

I am trying to have two image on the same line. I found some solutions online which seems to work pretty well, and i've decided to use this one: \begin{figure}[!ht] \begin{minipage}[c]{8cm} \...
1
vote
1answer
12 views

Multiple bibliographies with BibTeX and IEEEtran: error with citations INSIDE captions [duplicate]

I am writing my PhD thesis and I am using an adapted version of the memoir-class + IEEEtran.bst for the bibliography style. The idea is to create a specific List of Publications exclusively with the ...
1
vote
1answer
41 views

How do I specify a font for labelfont in caption?

I would like to set the font for the caption label, not just its series, shape or size, I would like to set the font itself. For example, my document's font is set to be Times New Roman, but I would ...
1
vote
1answer
51 views

Package caption Error: No float type 'noticebox' defined

I took the NIPS 2018 paper template from here, which I can compile (via pdflatex). However, when I add this package (before \title): \usepackage{caption} I get the error: ! Package caption Error: ...
0
votes
1answer
35 views

Why does caption throw an error?

I used the solution from here which works kind of but throws an error: pdflatex> ! Argument of \@caption has an extra }. ... pdflatex> ! Paragraph ended brfore \@caption was complete. Here is ...
0
votes
1answer
52 views

How to put images side by side using subcaption and caption packages?

I'm trying to put several images side by side. I've seen some examples (such as this) and the first image that I have is working correctly. The others are not and I can't understand why, since the ...
0
votes
1answer
12 views

Rotate Figure Caption in Sidewaysfigure

I am using sidewaysfigures because it works with me figure ratios better. Since I made some figures using tikz, it would be too much work to get back and redo them in the right orientation. When I use ...
2
votes
2answers
51 views

subcaption - How to use 'Figure x' instead of alphabet numbering?

My current table of images looks like: However, instead of (a), I'd like the caption to include 'Figure' and continue numbering from previous figures. How would I do this? A MWE: \documentclass{...
1
vote
2answers
29 views

footnote in caption is not in the same place as footnotes in the regular text?

I want to add a footnote to figure caption. I'm using the svjour3 document class. \RequirePackage{amsmath} \documentclass[natbib]{svjour3} \usepackage{appendix} \usepackage{graphicx} \usepackage{...
3
votes
1answer
54 views

Getting rid of unnecessary space between letters and equal sign in caption [duplicate]

Suppose we have this code \begin{center} \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto] \node[state,initial, accepting] (q_0) {$q_0$}; \node[...
0
votes
1answer
13 views

Change numbering of figures in all chapters

I'm having troubles changing the numbering style of figures in my chapters, the one that appears in the table of figures are displayed as I want but the numbering in the text is not. The caption of a ...
1
vote
1answer
51 views

“Can't use \vadjust in internal vertical mode” triggered by two-line hanging caption, using adjustbox, caption packages

I want: a floating table with caption (with hanging indent), such that both the table and caption are surrounded by a frame filled with a background color. My environment hierarchy is table » adjust ...