Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

4 votes

Is there a comprehensive manual regarding floats and their positioning?

Frank Mittelbach has one such TUGboat article: How to influence the position of float environments like figure and table in LaTeX?. And an excellent one at that. It is also available at https://www....
user avatar
  • 11.2k
3 votes

Find out if a figure is positioned h, t, b, or p

Don't forget to run twice. \documentclass{article} \usepackage{refcount} \makeatletter \newcommand{\savefps}[1]% #1 = label name {\bgroup \edef\@currentlabel{\number\@tempcnta}% \label{#1}% \...
user avatar
  • 69.6k
2 votes
Accepted

Tikz-Feynman diagrams overlapping in subfigure

The diagrams are wider than 0.3\textwidth. A simple approach would be to scale them down using \begin{tikzpicture}[scale=0.75,every node/.style={transform shape}] The key transform shape applies the ...
user avatar
  • 24.8k
2 votes
Accepted

Figure with two graphics and one matrix

You can exploit the fact that a tabular is vertically centered with respect to the baseline (actually, not exactly, but it's not so important). \documentclass{article} \usepackage{amsmath} \usepackage{...
user avatar
  • 986k
2 votes
Accepted

Latex3 floating point calculations in longtblr (tabularray)

Although I think it would be better to use functional library to do programming inside tabularray tables, you could still use expl3 if you want. You may compare this answer with another answer for a ...
user avatar
  • 7,921
2 votes

Figures with minipage - how to fit it to text width

For sub-images I would use subfigure environment (defined in the subcaption package), delete hfill on the end of images row and remove minipage around minipages in the second figure row:: \...
user avatar
  • 251k
2 votes
Accepted

Figures with minipage - how to fit it to text width

Try this code. (1) remove the \hfill after the last figure, (2) put the minipages inside a figure environment in the second row, instead of the other way around, (3) put the label after the caption ...
user avatar
  • 24.8k
2 votes
Accepted

Unwanted text in the output when renaming and resetting the counter of figures (for supplementary material)

Since \fnum@figure has a @ in it, you need \makeatletter and \makeatother around it. Also, since you already added S in \thefigure, there is no need to add it again in \fnum@figure. Thus your code ...
user avatar
  • 5,521
1 vote

Tabular environment malfunctioning: incorrect order and whitespace

With use of the tabularray and adjustbox package, font size small and without resizing of table: \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage{tabularray} \usepackage[export]{...
user avatar
  • 251k
1 vote

Putting pictures at a particular place (taking the width of the page)

If I got your question right, you want to force the postion of a figure environment in a specific position on the page. If you really want to do this, you should load the float package and pass the [H]...
user avatar

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