Questions tagged [floats]

{floats} is about the floating environments figure, table and other, custom-defined floats, and concerns issues such as positioning, labelling, captioning, indexing and listing of said floats. For questions specifically about formatting a float caption, consider using {captions}.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Reference to the figure on the word [duplicate]

I would like to put a link to a figure on a specific word. In my case a link on a person's name linking to table figure with his biography. Could you help?
0
votes
0answers
25 views

How to prevent a float from being placed separately on a page?

How can one prevent a float from being placed separately on an otherwise empty page?
0
votes
0answers
14 views

To reduce the gap between bars above characters in a caption

If I define a mybar and mytilde as follows: \newcommand{\mybar}[2][3]{{}\mkern#1mu\overline{\mkern-#1mu#2}} \newcommand{\mytilde}[2][3]{{}\mkern#1mu\widetilde{\mkern-#1mu#2}} Then, I can write $|\...
3
votes
3answers
54 views

Figures side by side: captions and size problems

I'm quite new to Latex and I'm having some problems placing figures side by side. I want the first image to be shifted a bit on left side of the text as well as the second a little bit on the right, ...
0
votes
1answer
27 views

Appendix prefixes in figure names, but not in section heading

I would like to have an A prefix in the appendix figures, but not in the section heading – and include the Appendix in the table of contents. A MWE inspired be this answer. \documentclass[a4paper,...
0
votes
1answer
28 views

graphics in right margin with caption

I want to place images in the right margin with a caption beneath them. I've looked at some of the questions and answers -- only one looked like my problem but when I copied the answer into my project ...
1
vote
0answers
32 views

floats (figures...) does not respect width of adjustwidth

When I use floats in the middle of an environment that uses adjustwidth, the caption takes the whole space instead of simply taking the space allowed by adjust width. The problem is that I want to ...
0
votes
0answers
22 views

Trouble fixing a detail on a Thesis template

I'm currently in the process of writing a thesis and chose a template to develop it. My problem is that the precedent of captions are counting the subsections, which I don't know how to fix. For ...
0
votes
1answer
25 views

Keep section heading with following float

I am writing a book in LaTeX from Python. In each chapter there exists a section Documents; the section contains scans of documents, which are included as \includegraphics[width=\textwidth]{"/...
4
votes
1answer
95 views

How can I make an image full width in the center of page IEEEtran?

I want to make it like this in LaTeX IEEEtran: I got this file at this link. I also tried to apply it in IEEEtran, but it didn't work. I've tried using \twocolumn and \onecolum, but this command ...
1
vote
0answers
23 views

how to position footnote in bottom of page and under figure in ieee trans template?

how to position footnote in bottom of page and under figure in ieee trans template? \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts % The preceding line is only needed to identify ...
0
votes
0answers
36 views

Placing different kinds of tikz drawings side by side with captions

Lots of people have approached this question, but none with the twist I think I am suffering from. I am using diagrams both in regular tikzcd and from quiver. I want to place them side by side and to ...
1
vote
2answers
29 views

Cryptocode: Cref should link to a game, and write its name

I'm using \cryptocode to display codes like: By default, it seems that it's not floating. However, when the games are big I'd prefer to make them float. Moreover, to refer to them, I'd like to just ...
0
votes
1answer
26 views

How can I position an image to the right of my conditions?

Instead of being beneath the conditions, how do I place it to the right? My conditions code : where: \begin{conditions} V & Volume of cone (cm^{3}) \\ SA & Surface area of ...
0
votes
2answers
40 views

Position text boxes on the right or left of the main body text

I frequently need to position a text box containing a small amount of text on either the right or left of the page, and wrap text around it. In this example I attempted to use wrapfig (though i have ...
0
votes
1answer
25 views

Vertically align multiple pictures wider than textwidth

I want to vertically stack multiple images, but for visibility make them as large as possible, therefore exceeding the textwidth. I have tried placing an adjustbox around the individual \...
0
votes
0answers
28 views

Unable to generate caption

After I recently changed to a new computer, I re-downloaded texStudio. But the original tex file started to show errors when it was compiled. Unable to generate caption. I extracted the location of ...
1
vote
1answer
36 views

Bottom-align caption in subfloats

I am trying to align the subcaption of two vertically aligned subfigures of different sizes, this is my code, how can I modify it to obtain the desired result? \documentclass[12pt,twoside]{report} \...
0
votes
0answers
19 views

Problem with xymatrix figure__> error: unknown float option

I have this code (xy and float packages loaded, (do I really need float?)), editor: texmaker: \begin{figure}[h,scale=0.9] \tightdisplaymath \[ \xymatrix{ *+[F]{\text{Adina (x)}} \ar@/^2pc/[r]^{r_{...
0
votes
1answer
67 views

How do I place a figure in class "article"

I use the \documentclass[12pt]{article} to write a CV. I am trying to insert a portrait but the position is always not correct. I use the following minipage to do that: \begin{minipage}[r]{0.48\...
0
votes
0answers
18 views

Figures not staying at the origin place [duplicate]

I am sharing the link to my project so it is better understood. I tried everything from using [h] to [htp] to [h!] and all kinds of variations but it is just not working. if anyone has a clue how I ...
1
vote
0answers
16 views

Wrap text around a centered table in a two-column document [duplicate]

I desire to wrap text around a table in a two-column document like the following: column 1 column 2 --------------------- --------------------- --------------------- ------...
1
vote
1answer
41 views

Adding a figure to footnote as a float with footnote text wrapping around it

I'm trying to do this with the wrap fig package. But the figure float does not rearrange dynamically as I change the text in my document hence the layout, going above page number, out of the margin, ...
0
votes
0answers
25 views

\input{} is putting the files at the end of the document instead of where I put them [duplicate]

I have the following LaTeX file: \documentclass[a4paper, 12pt]{report} \usepackage{fancyhdr, caption, pgfplots, pdfpages, graphicx} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \...
1
vote
1answer
17 views

Center float column on last page in twocolumn mode

My two-column document ends with a page that has a single column containing a single float: \documentclass[twocolumn]{scrartcl} \usepackage{lipsum} \begin{document} \lipsum[1-5] \begin{figure} ...
3
votes
2answers
86 views

Figures with caption inside tabularray (tblr) tables

I am trying to add captions for figures inside a table but am unable to do so. I have looked into this solution but having flexible X columns is not working as described. The current output looks ...
0
votes
1answer
26 views

Removing white space before around tikz subimages

I am trying to place two tikz axes side by side. I currently encapsulate each in a subfigure, but it seems that there are too much white space around the tikz figures that I can barely see the ...
0
votes
0answers
23 views

Floats lost error with figure and tcolorbox

For some reason, whenever I try to insert a figure into this tcolorbox, I run into this error: Float(s) lost.. I've seen examples of tcolorboxes supporting figures, so I'm wondering if it has to do ...
2
votes
2answers
42 views

Place the Caption of a Figure at the Top of a Figure

After trying many of the community's proposals and failing to place the title of the figure at the top. I thought that I could redefine the default figure in latex, specifically the one corresponding ...
0
votes
1answer
27 views

Unwanted break with tcolorbox inside a figure

Problem: I'm trying to use a tcolorbox inside a figure but it looks like my custom maketitle command lets the box break itself. How can I prevent that? Note that I really need the \tcbset{breakable} ...
0
votes
0answers
43 views

latex hbt! not working, jumping to next page

I'm using overleaf as my latex editor. I'm using hbt! for here, below the page, top of the page. But my page jumps to another page. My code looks something like this: \chapter{Train and Comparison} \...
0
votes
1answer
32 views

How can I create a new environment that is the same as subfigures or subcaption then add its lable to the \listofgraphiques

I want this \renewcommand\cftfigpresnum{\figurename~} for the new envirenment. part of answer is here \documentclass{book} \usepackage[demo]{graphicx} \usepackage[T1]{fontenc} \usepackage[utf8]{...
0
votes
1answer
38 views

Wrap figure wraps wrong

my problem is, that the wrapping occurs a bit strange. Maybe someone can help with this problem. The code is: \begin{wrapfigure}{R}{0.2\textwidth} \begin{center} \captionsetup{width=.2\...
0
votes
1answer
47 views

Inserting a figure of entire one page in between two pages

I have multiple big single-page figures/table in my document which is a two-column conference paper. Until now I had put these figures/table at the end of my document. Now that I have finished my ...
0
votes
0answers
21 views

Rotated Side Header Overlaps with Image Content for Nicematrix

I want these two (images Image1 and Image2) to be arranged in 2 X 1 array with rotated side headers but my side header (sd = 1 nad sd = 3) overlap with the y-axis labels` of the images. \documentclass{...
1
vote
1answer
33 views

A global command so that some float environments are not shown at all

I'm using package newfloat to define an additional figure environment (for supplementary figures). A journal asks me to provide these in a separate document. Ideally, I'd just need to set a variable ...
1
vote
2answers
114 views

How do I reduce the size of inference rule?

I am using package mathpartir, with environment mathpar. In the environment I am using command \inferrule to write down some inference rules. The problem is that this rules are just too big, and I ...
1
vote
0answers
35 views

How to put an image after some text without the layout being distorted [duplicate]

my question is quite simple but I haven't found a good solution yet. I want a certain image to be placed after a specified text passage. If I use [h] as the positioning parameter, the image will ...
3
votes
3answers
146 views

How can I get my figure list to only show the first sentence/title of my figure caption?

I have figure captions like this: \documentclass{book} \usepackage{graphicx} \begin{document} \listoffigures \begin{figure} \centering \includegraphics[width=12cm]{...
0
votes
1answer
56 views

wrapping text around an image on top of the page

For my university report, i have to create this in latex. I tried it on latex using wragfig with this code \documentclass[10pt,a4paper]{report} \usepackage[a4paper,vmargin={25mm,25mm},hmargin={25mm,...
0
votes
0answers
13 views

Cannot Position Figures Correctly [duplicate]

I am writing my senior thesis on latex. I've been using latex for a few years but I always have issues positioning the figures. Sometimes, I can place them whereever I want with use of !h, p, t ...
-1
votes
2answers
46 views

generating a table of Figures with labels below the figures

I would like to generate a table of Figures. An excellent example is How to generate a table of figures. Which I have accomplished, however now I would like to add labels below each figure (a), (b).......
0
votes
0answers
36 views

Conflict between babel and graphicx (Tex Live 2019/Debian)

I have a very strange behavior with the following code \documentclass{article} \usepackage[ngerman]{babel} \usepackage{graphicx} \begin{document} \begin{figure}[htb] \centering \includegraphics[...
0
votes
1answer
23 views

How to Arrange Figures as follows for a Journal Paper

I want to add 3 pictures to a journal paper as shown in the image below. I have used the following code: \begin{figure*}[!h] \begin{tabular}{cc} \multirow{3}{*}{} & \includegraphics[...
-2
votes
1answer
39 views

Define text blocks on a static page

I am looking for a way to write own static pages with latex. For this I am mixing environments and commands. Right now I have a very easy Title page which is not working out really good. It should ...
0
votes
0answers
35 views

Problem with figures, captions and the main font in TexStudio

everybody! I have a problem with the "figure" environment. I have inserted several images one after the other \ begin {figure}[htbp!] \ caption {...} \ centering \ includegraphics [...] {...
1
vote
0answers
35 views

Cite caption and figure

I want to cite a figure and directly cite the caption of the text. That means that I copy the figure and the original caption of the figure. Is the following solution correct because someone can think ...
0
votes
1answer
56 views

Overleaf is not recognizing [b] figure placement

I want to get figures to be placed on the bottom of the page, but Overleaf isn't recognizing the [b] for any figures. Here is the figure's code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{figure}[b] % ...
1
vote
1answer
47 views

\listoftables (and figures) STILL won't work (I have tried all I could read about this)

I have been using latex for a few months but still very new to some things, I have read EVERY PLACE and post regarding this issue and tried a lot but still no answer. I used the \listoftables and \...
0
votes
1answer
14 views

Add htbp to all float environments [duplicate]

In short: How can I add the optional parameters [htbp] to all float environments? Ideally, I don't want to define a custom new environment, but add these options "with a hack" like \g@addto@...

1
2 3 4 5
112