Skip to main content
6 votes
Accepted

How can I represent a math formula as a figure?

Despite the name, the figure environment can contain anything. For instance an equation, a picture, some text, whatever. \documentclass{article} \usepackage{mathtools}% Loads amsmath \usepackage{...
egreg's user avatar
  • 1.2m
5 votes

Problem with captions in apa-style

The apa class has not caught up with fact that \contentsline has four arguments with hyperref (and for a few years also with LaTeX). Try \makeatletter \long\def\@@contentsline#1#2#3#4{ #2 }\...
Ulrike Fischer's user avatar
5 votes
Accepted

Package caption incompatibility: biblatex citecounter double-counts references inside table captions

The content of the caption is processed twice because of the singleline check. You can either disable the check: \captionsetup{singlelinecheck=false} or disable the citetracker during the check. ...
Ulrike Fischer's user avatar
5 votes

\verse in a \caption

I don't think you want a poem in a caption. That's rather like a footnote, otherwise you'd place the poem in the text describing the image. Here are two possibilities: one with a short caption for the ...
egreg's user avatar
  • 1.2m
5 votes
Accepted

Text in captions not indented after a line break when using ragged2e (caption, tabularx)

Your posting raises several issues, and it's not clear to me which ones are (most) important to you. If you don't like the "weird indentation" of long captions, don't specify the option ...
Mico's user avatar
  • 519k
5 votes
Accepted

Include clickable 'Fig.'/'Table' in \ref without duplication in captions

I want [cross-]references to include 'Fig.'/'Table' before the number so they are clickable and in link color. In addition to employing the hyperref package (which you do already), you only need to (...
Mico's user avatar
  • 519k
5 votes
Accepted

Width of figure caption within an 'outline' environment

I'm not really sure what is the appropriate fix. Maybe for the caption to have the same width as the current bullet point I am on, In general, how might your readers know what the width of the "...
Mico's user avatar
  • 519k
4 votes

Create a new math symbol

Old question, but the given answer has the defect of forcing MnSymbol which is rarely desired. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \NewDocumentCommand{\triangleLeft}{}{%...
egreg's user avatar
  • 1.2m
4 votes
Accepted

Add the word "Supplementary" in the caption title of longtblr

I would like to add the word "Supplementary" just before the word "Table". How can I do it? tabularray, specifically with longtblr as well as talltblr works along templates. Each ...
Celdor's user avatar
  • 9,484
4 votes

Caption outside tcolorbox

Hope this is the one you expects: \documentclass{book} \usepackage{tcolorbox} \usepackage{listings} \usepackage[labelfont=bf,font=footnotesize]{caption} \captionsetup{format=plain} \usepackage{capt-...
MadyYuvi's user avatar
  • 14.7k
4 votes
Accepted

How to rotate figure with caption

You can use hvfloat package. You can see that is rotated both the figure and its caption into a text. \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \usepackage{hvfloat} % for ...
Sebastiano's user avatar
  • 56.8k
4 votes
Accepted

With `floatrow`, how to put a caption in the first row of the table?

Wrapping the \captionof in floatrow command \RawCaption does the trick: \RawCaption{\captionof{table}{Table Title 1}\label{tab:title1}} From floatrow's package manual (v0.3b, 2009-08-02), sec. 2.4.1 &...
muzimuzhi Z's user avatar
  • 27.2k
4 votes

Width of figure caption within an 'outline' environment

The current indentation for text in a list is given by \@totalleftmargin, although it is not passed to a figure. The bullet itself depends on several additonal values (see figure 1 in the enumitem ...
John Kormylo's user avatar
  • 82.2k
4 votes
Accepted

Align pictures vertically at bottom in mosaic grid using subcaptionbox

You were almost there. \documentclass{article} \usepackage[position=b]{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \centering \begin{tabular}[b]{@{}c@{}} \subcaptionbox{...
egreg's user avatar
  • 1.2m
3 votes
Accepted

Different caption setups for different figures/tables

To long for the comment ... What you after is standard features of caption. You not need to declare separate caption setup: \documentclass{article} \usepackage{graphicx} \usepackage[format=hang,...
Zarko's user avatar
  • 302k
3 votes
Accepted

Why are figure numbers not showing in captions on minipage?

Your example does not define \captionof at all but if the example is fixed to be \documentclass{article} \usepackage{capt-of} \begin{document} \section{Disability}\label{sect:Disability} \begin{...
David Carlisle's user avatar
3 votes
Accepted

Whether bookmarks duplicates or not is dependent on engine and `caption` package

A bit late to the party, but I just came across this question. The behaviour is engine dependant as xelatex uses a \special to create a bookmark and that does nothing when you do only trial ...
Ulrike Fischer's user avatar
3 votes

Cite references ( \cite{} ) in Tables/Figures

\caption only has one mandatory argument, I assume you meant \caption[Gram Negative Bacteria.]{\cite{Bacterial_Classification}} not \caption{Gram Negative Bacteria.}{\cite{Bacterial_Classification}}
David Carlisle's user avatar
3 votes

How to rotate figure with caption

You could place your image in a minipage rotate this minipage: \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \lipsum \begin{figure}[htbp] \centering \rotatebox{...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Removing label bit from caption is not working

The immediate cause of the problem is that the multicol package and its multicols environment do not permit the use of table and figure floats. Full-width figure* and table* are permitted; however, ...
Mico's user avatar
  • 519k
3 votes
Accepted

Table caption cannot be justified using the caption package

The caption package normally justifies captions which are longer than one line and centres the ones with only a single line. If you don't like this, you can switch this check off like this: \...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Caption label font / how to write caption with bf and sc

You could switch back to computer modern font for the caption label: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} \usepackage[T1]{fontenc} \...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Why do `ftcap` and `caption` produce different vertical spacing?

The implementation of caption and ftcap are different. As far as I can see, the difference is caused by caption adding a strut in the caption, which is not done by ftcap that doesn't modify the \...
egreg's user avatar
  • 1.2m
3 votes

Subfigure customization

This uses the fact that the "short caption" is accesible using \nameref. \floatsep is the distance what would be placed between two figures. It looks slightly lopsided, but that is an ...
John Kormylo's user avatar
  • 82.2k
3 votes

Subfigure customization

I don't think you need subfigure for this job. \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \usepackage{booktabs} \begin{document} \begin{figure}[htp] \centering \...
egreg's user avatar
  • 1.2m
3 votes

\verse in a \caption

You can put the caption in a box, but you will certainly want to provide an alternate caption if using links or a table of contents. \documentclass{scrartcl} \usepackage{caption}%formating captions ...
cfr's user avatar
  • 211k
3 votes

Double caption on Listing (one on top and one below but I just want the one below)

The captionpos key takes either t or b as value, not bottom: \documentclass[% fontsize=11pt, % Schriftgröße twoside=off % kein einseitiges Layout ]{scrbook} % Dokumentenklasse: KOMA-Script ...
samcarter_is_at_topanswers.xyz's user avatar
3 votes

Caption in tabularx environment

I would use longtblr of tabularray package. Using it the code for table is simpler and shorter: \documentclass[a4paper,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \...
Zarko's user avatar
  • 302k
3 votes

Underfull \hbox with image

"Badness" is a measure of how much white space has been stretched. There are user-settable tolerances on this and if you look at the caption You can see its first line has been over-...
David Carlisle's user avatar
3 votes

Underfull \hbox with image

Underfull or overfull box issues are most commonly solved by rewording. In your case, “Montage dosage pHmétrique” has no really good place for line breaking is a very narrow column. In my opinion, two ...
egreg's user avatar
  • 1.2m

Only top scored, non community-wiki answers of a minimum length are eligible