7
votes
Accepted
Align figure and caption
Sine you prescribe smaller width of images than is width of subfigure, you need to insert \centering instruction in each subfigure.
Please avoid to use H figure position options. It can cause ...
2
votes
Cropping figures cuts the upper caption
I downloaded the full figure following your code and applied trim and clip to eliminate all text and space around the center map.
I also removed the unneeded \caption*. (In your code a comma is ...
2
votes
using xltabular to break over multiple pages results in a list of tables with multiple entries for the same table
By using (relative new) package `tabularray your problems cannot happen:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{lipsum}
\begin{document}
\...
2
votes
Accepted
Creation of a new command so that you do not have to write a certain caption by hand
I don't believe you really need an optional parameter. As far as I understand you want the first argument of your \captionauto to be used as short caption, and then as long caption followed by the ...
2
votes
Accepted
Why are my captions sometimes italicized and sometimes not when using the same structure of code?
It's because it's inside \begin{ex} ... \end{ex}. Put it after \end{ex} You can see that other captions are ok.
Don't use \begin{center} ... \end{center}. Use \centering inside if needed. Don't put ...
2
votes
Accepted
Side caption in place of one subfigure
You could achieve this by using minipages within the figure.
Therefore you put the subfigures you want to have below eachother in one minipage. Also set the width you want to have at the begining of ...
1
vote
Accepted
How to create a picture composed of 4 sub-sub-figures with 4 sub-sub-captions and 2 sub-captions?
There are a lot of ways to achieve this. This is a example using subfig package:
\documentclass{article}
\usepackage{subfig}
\usepackage{mwe}
\begin{document}
\begin{figure}
\centering
\subfloat[...
1
vote
Table captions default to foreign language
For just a few words in Vietnamese (names, for instance) you don't need to load babel, but just the correct output encoding, namely T5.
\documentclass{article}
\usepackage[T5,T1]{fontenc}
\...
1
vote
Accepted
Changing/Adding the Caption label
Here's a solution with two packages: caption to provide the ability to switch between two 'sorts" of caption labels, and newfloat to provide the ability to create a custom caption label.
\...
1
vote
Accepted
Figure caption with long description, but description not in list of figures
Use
\caption[ToC entry]{Float caption which will be different from ToC entry}
1
vote
Figures Assigned Rogue Numbers When Adding \caption
Let me spell out my above comment:
\documentclass{article}
\usepackage{graphicx}
\usepackage[font=small,
labelfont=bf]{caption}
\begin{document}
Figure produced with your code fragment;
\...
1
vote
Accepted
Redefine \label and \ref commands so that they also work without having to be next to a \caption or \captionof
The \label command stores a value for the label based on the internal macro \@currentlabel. This macro is set by commands like \section and environments like \begin{figure}. However, you can also set ...
1
vote
Accepted
How can I remove extra white space of a caption when listing wrap inside a figure?
Your MWE shouldn't rely on external files. If possible, please provide a standalone code that can be copy-pasted.
However, a possible solution is to use the caption feature of listings, instead of ...
1
vote
Accepted
How to put some commands into longtable by \AtBeginEnvironment?
I might be wrong. I think you cannot use the \AtBeginEnvironment hook to set the longtable environment.
See etoolbox package P.5:
\AtBeginEnvironment{<environment>}{<code>}
Appends ...
1
vote
Dirtytalk's \say for quoting doesn't work in captions
Another why to get around this is to use the csquotes package instead of dirtytalk and replace all \say commands by \enquote as suggested here.
The \enquote command works in captions by default.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
captions × 3457floats × 829
tables × 553
subfloats × 284
subcaption × 269
graphics × 186
horizontal-alignment × 185
longtable × 181
table-of-contents × 166
listings × 150
cross-referencing × 149
spacing × 133
tikz-pgf × 115
numbering × 104
minipage × 103
positioning × 99
beamer × 89
floatrow × 77
formatting × 73
memoir × 73
koma-script × 70
labels × 63
hyperref × 62
footnotes × 62
fontsize × 55