2022 Developer Survey is open! Take survey.
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 ...
user avatar
  • 251k
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 ...
user avatar
  • 24.5k
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} \...
user avatar
  • 251k
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 ...
user avatar
  • 25.5k
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 ...
user avatar
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 ...
user avatar
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[...
user avatar
  • 1,748
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} \...
user avatar
  • 985k
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. \...
user avatar
  • 802
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}
user avatar
  • 25.2k
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; \...
user avatar
  • 251k
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 ...
user avatar
  • 29.6k
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 ...
user avatar
  • 802
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 ...
user avatar
  • 1,748
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. ...
user avatar

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