New answers tagged captions
0
votes
Is there a way to prevent caption package from changing counters beforehand
I guess you want subcaption and its subcaptiongroup, \phantomcaption and subref features.
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\...
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 (...
3
votes
Include clickable 'Fig.'/'Table' in \ref without duplication in captions
Maybe you can use the cleveref package.
\documentclass[12pt]{article}
\usepackage[colorlinks,citecolor=blue, linkcolor=blue, urlcolor=blue]{hyperref}
\usepackage{cleveref}
\crefformat{figure}{#2Fig.~#...
1
vote
Accepted
Is there a way to prevent caption package from changing counters beforehand
The problem is, that caption need to internally typeset the caption more than once, to do the single line check and either print the single or the multi line caption. So with option singlelinecheck=...
2
votes
How to achieve the layout of figure with vertical and horizonal placement?
This solution uses a tabular to align what can be aligned without changing the images.
\documentclass[12pt]{ctexart}
\usepackage[margin=2cm]{geometry}
\usepackage[export]{adjustbox}% for valign
\...
1
vote
Accepted
adjustbox gives "Undefined control sequence" error only in a figure caption, but not in a subcaption or normal text
This is because the argument of regular \captions are fragile in the sense that they move; they eventually end up in the List of Figures (or Tables), and therefore need to be written to the .lof (or ....
0
votes
Font size of Figure Caption Header
The reason that sciposter's code isn't working is that in more pedantic systems it requires:
\usepackage[font={small},labelfont={bf}]{caption}
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}{}{%...
0
votes
Problem compiler error about figure/subfigure ' caption using latex IEEE ACCESS template
I think the best approach is to just use caption and subcaption and configure those packages to create captions that look like IEEE Access preferred style. Here is how I do it:
\usepackage{caption}
\...
0
votes
Tabular: title above and caption below?
There are already great solutions on this page, though they are a bit too complex for my taste. Here is a very simple solution that delivers most of what you asked for but not all:
\usepackage{caption}...
0
votes
Aligning legend with figure width memoir class
I don't think that \legend is the right tool: it just uses the \caption mechanism, without adding a label.
\documentclass{memoir}
\usepackage{graphicx}
\NewDocumentCommand{\simonincludegraphics}{O{}...
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 ...
2
votes
Accepted
Caption of a figure aligned to right-hand margin with `minipage`
It's not really clear what you are asking for, I added babel so that Italian hyphenation rules are used and you have a chance of reasonable line breaking, then in the second example I added \...
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 ...
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-...
1
vote
Accepted
Black captions are CMYK, not RGB
The problem in this case was the figures themselves. I used PNGs in an RGBA configuration, which had the unintentional effect of adding color coding on the black caption text. I am not sure why this ...
Top 50 recent answers are included
Related Tags
captions × 3794floats × 887
tables × 614
subcaption × 298
subfloats × 297
graphics × 207
horizontal-alignment × 203
longtable × 201
table-of-contents × 189
cross-referencing × 166
listings × 162
spacing × 143
tikz-pgf × 128
minipage × 118
numbering × 113
positioning × 104
beamer × 93
formatting × 84
floatrow × 84
memoir × 76
koma-script × 72
hyperref × 70
labels × 69
footnotes × 65
errors × 59