New answers tagged

3 votes

Changes to textcase and LaTeX kernel in the June 2022 release affecting uppercased captions

This works, although I'm not suggesting you do this in your class, we'll adjust something so this is not necessary... \documentclass[11pt]{article} \usepackage{amsmath,caption}% need backward ...
user avatar
5 votes
Accepted

Fully customized figure template - align figures and text (captions) at will

OPTION 1 This solution uses \usepackage[export]{adjustbox} to adjust the boxes content and to draw the frame for the second figure. The keyvalue export allows to include the options in \...
user avatar
  • 25.9k
1 vote
Accepted

Fitting caption width to table width using nicematrix package

This solution uses the package floatrow to fit the caption and add the footnote. \documentclass[captions=tableheading,captions=figuresignature]{scrreprt} \usepackage{caption} [2022/02/20] \...
user avatar
  • 25.9k
0 votes

Add caption for table designed by tabularray

Can anyone tell me if you can format the title of the tables in a longtblr environment? It turns out that I want the separation between the table number and the description to be a line break, that is ...
user avatar
  • 1
4 votes

Remove period between Appendix letter and figure number in Appendix captions

I suggest you run \renewcommand\thefigure{\thechapter\arabic{figure}} after executing \appendix. Of course, if this numbering style should apply to figure captions everywhere in the document rather ...
user avatar
  • 439k
0 votes

Why is there a small gap between the left margin and the picture?

I reported this issue to the author of caption on Gitlab. If I find the answer there, I'll edit this 'answer' here to solve the problem.
user avatar
1 vote

own defined caption style works differently with same set by \captionsetup

I can't really improve on the frabjous ides (other than bug fixes). I did figure out how to implement it with \DeclareCaptionTextFormat. \documentclass{article} \usepackage{caption} \...
user avatar
  • 70.2k
2 votes

Remove subfigures from list of figures when using tabularray package

I seemed to have fixed this by just including \newcounter{lofdepth}\setcounter{lofdepth}{1} in the preamble, inspired by some code from the tocloft package. I'm not completely sure why this works, but ...
user avatar
  • 63
0 votes
Accepted

Change order of subcaption labels

With use of tblr defined in tabularraypackageČ \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \usepackage{tabularray} \UseTblrLibrary{counter,varwidth} % <=== \begin{...
user avatar
  • 255k
1 vote

Why is there a small gap between the left margin and the picture?

OTOH, do you really need sidecap? I would write a SCfigure replacement, but have no idea what function relwidth serves. \documentclass{article} %\usepackage{sidecap} \usepackage{caption} \usepackage{...
user avatar
  • 70.2k
3 votes

Why does \floatsetup[table]{capposition=top} not work here?

No need to use floatrow and those complicated settings. \documentclass[journal]{IEEEtran} \usepackage{blindtext} \usepackage{booktabs,capt-of} \begin{document} \blindtext \begin{figure} \begin{...
user avatar
  • 992k
3 votes

Why does \floatsetup[table]{capposition=top} not work here?

It works if you use the right command, which is \ttabbox: \documentclass[journal]{IEEEtran} \usepackage{floatrow} \floatsetup[table]{capposition=top} % Table float box with bottom ...
user avatar
  • 261k
2 votes

gaps between horizontal lines in table

With use of the \tabularray and copyright packages: \documentclass[margin=3mm,varwidth]{standalone} \usepackage[T1]{fontenc} \usepackage{tabularray} \UseTblrLibrary{booktabs} \usepackage{copyrightbox} ...
user avatar
  • 255k
1 vote
Accepted

gaps between horizontal lines in table

A solution with the caption and booktabs packages. The latter adds some vertical padding around its horizontal rules. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{booktabs, ...
user avatar
  • 261k
1 vote

Avoiding "\Url Error ->\url used in a moving argument." in a custom environment

Works in the IEEE paper footnote as well. \thanks{This letter has supplementary downloadable material available at \protect\url{https://}, provided by the authors.}
user avatar
  • 11
2 votes
Accepted

Change the symbol after #number in figure/table caption

As mentioned in the comments, you can set the punctuation that appears after the figure or table number using the caption package's labelsep option. E.g., to get a period: \usepackage[labelsep=period]{...
user avatar
  • 36.6k
1 vote
Accepted

Algorithm caption left alignment

A solution that worked Add the code line: \SetAlCapHSkip{0ex} right before \caption{Offine Algorithm}\label{alg:offline} in your code to remove the horizontal space before the caption. The full code ...
user avatar

Top 50 recent answers are included