{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}.

learn more… | top users | synonyms (2)

2
votes
1answer
60 views

Prefix “Figure” and giving reference to figures

Is it possible to adjust the font size of the prefix Figure when captioning an included image? Furthermore, is it possible to refer to a picture in a meaningful way without using a caption; I tried ...
1
vote
1answer
79 views

How to allow page break inside a float environment?

I'm using new float enviroment to show some examples in my document. This enviroment contains tcolorbox which provides a gray background. The main text in the enviroment is a mixture of plain text ...
5
votes
4answers
119 views

Subfigure captions appear too close together

Is there anyway to avoid what is observed below with the subfigure captions appearing too close together? I would rather not use the minipage environment as a solution. \documentclass[]{article} ...
7
votes
4answers
112 views

Proper alignment of three boxes

I want two text boxes to appear next to a photo which is 5cm wide. The combined height of the boxes may be greater than or less than the height of the photo. If the combined height is less than the ...
2
votes
1answer
41 views

Redefine table caption

I'm writing a paper in IEEEtran twocolumn format. When putting pictures in my paper I prefer to use the Table environment over the Figure environment. I feel that the Table environment does a better ...
2
votes
1answer
58 views

How to make a non-float subfigure environment? [duplicate]

I am writing a document class report that has a maximum page limit. I tend to stay away from float environments for tables and figures since I like to have them where I code them in (I try [h], and ...
4
votes
1answer
90 views

How can I vertically align subfigures of different size without affecting subcaptions?

Please consider the following MWE \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \begin{minipage}[c]{0.45\textwidth} \centering ...
4
votes
1answer
88 views

Place numbers on edges between nodes in tikz

I am creating a graph of connected nodes and I want to have numbers on all edges that connect the nodes. At the moment it looks as follows: \begin{figure}[H] \begin{tikzpicture} \node[shape=ellipse, ...
1
vote
2answers
46 views

How do I force a picture to be placed on a page, disregarding margins?

I have a picture that I would like to place on the frontpage of a student paper that I am working on, and it is being pushed on to the next page by LaTeX. I want it to be placed in a specific place, ...
2
votes
1answer
179 views

Floating figures and tikzposter

I'm trying to use the class tikzposter to write a scientific poster. I need to link the figures to my text, therefore I need to use \caption and \label commands. It seems impossible to use floating ...
6
votes
0answers
51 views

Do not place here [duplicate]

In a document containing theorems with proofs and floating objects, LaTeX automatically places the floating object between the theorem and its proof (because the proof is on the next page). Is there a ...
5
votes
1answer
54 views

How to force every float (figure/table) in the appendix to be placed on a separate page

How to force all floats (figure/table) in the appendix to be placed on separate pages. I mean only all floats in appendix to be placed in one page each. Floats in the main text should not be ...
3
votes
2answers
77 views

How to set the default float position, e.g., set it to be H? [duplicate]

Is there a way to set the default position option for floats? I want all float to by default to use the option H. Then I only need to set position parameter for those floats that I do not want to use ...
0
votes
0answers
30 views

Stubborn single image insists on getting its own page [duplicate]

Any ideas why this image (lower entry) gets its own picture while the other one (upper entry, not visible) does not? Tried using scale=0.5 instead and it got inline instead. Probably some funky ...
2
votes
0answers
84 views

mdframed box spanning over page break: prevent images in between

I've run into a problem in a bigger documents where pictures get in between the breaks of mdframed boxes. So the scenario is that the mdframed box should break at pageend if it's to large and not ...
1
vote
1answer
25 views

Referencing a figure in the text before the figure

I'm wanting to reference a figure, but I know that the usual way of doing it: \begin{document} \begin{figure}[h!] \centering \includegraphics{image.png}\\ \label{fig:fig1}} \end{figure} ...
2
votes
2answers
138 views

Full page floating figure with TikZ overlay in twocolumn document?

I have a peculiar problem with my LaTeX document. I have a twocolumn document and would like to include a figure that is spread over an entire new page and contains a TikZ picture (where I can input a ...
1
vote
0answers
21 views

Which macros define spaces around table and float environments? [duplicate]

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using \setlength{\intextsep}{0cm} \setlength{\floatsep}{0cm} ...
1
vote
1answer
28 views

How to direct all sub-captions of the subfigures in a central caption

Is there a way to direct all the \caption{}'s found within multiple nested subfigure environments within a central \begin{figure} environment given as \begin{figure} ... ...
2
votes
1answer
43 views

Help on imsart.cls: correctly creating list of figures

I am having trouble generating List of Figures correctly with the class "imart.cls". The basic command "\listoffigures" creates the following, see, snapshot: Could you please help saparate "List of ...
1
vote
1answer
40 views

Entering figure in the header in exam class

I am using the exam class for preparing a question paper. Can anyone tell me how to insert a figure in the header? My aim is to insert the university's letterhead at the top of the paper. regards Leo ...
4
votes
1answer
73 views

How to make the subtitle (a or b) of an image position correctly?

I want the following subtitles (a or b) to be shown correctly not like the current view as shown in the following image: Also how can I add more spacing between the two images? \begin{figure*}[htp] ...
0
votes
0answers
60 views

Figure placement in XeLaTex

I am attempting to place a figure in my report. I have switched to XeLaTex but the figure doesn't seem centre and is overlapping the text. I have tried countless things but no luck. I've attached a ...
2
votes
0answers
32 views

Placing the floats in the current page or in the previous page

I would like the floats to appear, if possible in the top (or bottom) of the same page where they are defined, or in the bottom of the previous page otherwise (or wherever it fits as near as possible ...
3
votes
2answers
116 views

Numbering equations with figures

I need to asign a number to equation which contains figure. My code is \documentclass[12pt,a4paper]{article} \usepackage[slovak]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
0answers
115 views

Placing a figure that occupies 2 columns

Thanks for reading my thread. I have a two-columned IEEE format journal latex, and I want to insert a wide figure. Here is my code \begin{figure*}[ht!] \centering \begin{overpic}{profiles.eps} ...
2
votes
1answer
61 views

Get rid of the chapter number when I refer to table [duplicate]

I use the following code for referring to an equation and table. \let\originaleqref=\eqref \renewcommand{\eqref}{Equation~\originaleqref} \newcommand{\tref}[1]{Table (\ref{#1})} When I refer to an ...
0
votes
1answer
31 views

Figure on the left and some complex comments on the right

As the title described, I would like to put a figure on the left and make some complex comments parallelly on the right. I write some code, but I feel the code is not "clean" . Sometimes works but ...
6
votes
2answers
71 views

How to get two logos side by side

I need to put a logo left side aligned and a logo on the right side, I also need to add text between both logos? I've reviewed the questions about figures side by side, subfigure and minipage, but ...
4
votes
1answer
34 views

How to save a figure with multiple sub floats to a single pdf file

How to save a figure with multiple sub floats to a single pdf file. Here is the code: \documentclass[12pt]{article} \usepackage[percent]{overpic} \begin{document} \begin{figure}\centering ...
2
votes
1answer
36 views

Float(s) lost in newly defined environment (possible \vbox/\hbox problem)

The following gives me LaTeX Error: Float(s) lost. I saw on Lost float in exam class that this might have to do with the \vbox. Replacing it with an \hbox gives Something's wrong--perhaps a missing ...
4
votes
1answer
87 views

Image vs Text Arrangement [duplicate]

When I write a multi-page paper with imported images, I usually try to group the picture with the text referencing it. Sometimes, there is not enough room at the end of the page for the picture, and ...
1
vote
2answers
37 views

How to layout figures/tables close to each other from the top

How to layout figures/tables close to each other from the top. Here is the test code: \documentclass[12pt]{article} \begin{document} \begin{figure} \caption{A very long caption!A very long ...
11
votes
2answers
176 views

How can I move floats that aren't tables or figures to the end of a document (endfloat for listings)?

I use endfloat to move all figures and tables to the end of my document. I want to apply the same to other floats that I have in my document, for example listing environments. Is there some hack that ...
4
votes
1answer
31 views

Figure caption within quote environment

In order to provide visual contrast, I have decided that I would like to have a certain section of a document I'm writing indented. To achieve this, I've simply been using the quote environment ...
9
votes
1answer
193 views

What are the default placement options for a floating figure in Latex?

The document Using Imported Graphics in L A TEX and pdfL A TEX talks about the different ways to affect where a floating figure is placed [htbp]. But these arguments are optional ... So how is the ...
2
votes
1answer
241 views

Subcaption package error, even without the use of the subfigure package

I have read countless instructions on how to use the subcaption package, and tried several examples. Each time I get two types of errors, which I will post further down. This is my premable: ...
2
votes
1answer
73 views

Float error with PNAS template

I'm attempting to use the PNAS template at writelatex.com however I'm encountering a strange compiling error when the default title is changed to one that is long enough to require a second line, and ...
6
votes
0answers
36 views

Figures on report counter page (without styling) [duplicate]

Context : I am writing a report with article style in latex and I am wondering if it is possible to have : on right page : my usual text, my full report without figures ; on counter page (left ...
6
votes
1answer
95 views

How to show figure captions in Arabic language?

I want to show the caption of the figure in Arabic language. Given the unpredictable interactions with other packages, I tended to keep them in the preamble of the MWE. Questions How to set the ...
1
vote
0answers
40 views

Displaying two plots side by side not displaying titles correctly [duplicate]

I’m writing a report and using the following code to display a bode-diagram. To save some space (I have several of these figures), I’ve displayed them side by side, but the title of the right plots’s ...
0
votes
0answers
69 views

LaTeX - Letter 'f' being swapped with theta symbol

I am rewriting a thesis paper of mine in LaTeX and have been looking around for some good templates. I'm an experienced developer, but have little experience with Tex. Sample Template: ...
8
votes
1answer
76 views

Two identical diagrams inserted with subcaption box come out at different scales

I have two diagrams that are 100% identical except for a red line in the other one. However, when they are included in a figure as two subfigures with subcapionbox, the one with the red line is ...
7
votes
1answer
74 views

How can one make border of text for a figure?

I want to take text and wrap it around as the border of a figure. That is, text on the top, wrapping to sideways text running down the right, wrapping to upside down text on the bottom, wrapping to ...
4
votes
2answers
424 views

How to create this figure?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, tikzpicture, pstricks and multido usepackage. Can you maybe help me? I would really appreciate ...
1
vote
3answers
204 views

An image side by side in latex

I would like to have two figures side by side in my document. I found an example on here with the following code \begin{figure} \centering \begin{minipage}{.5\linewidth} \centering ...
0
votes
0answers
80 views

Gantt chart is going to beyond the page boundary

I draw a gantt chart under the figure but it is going to beyond the boundary of page. I show my code below; \begin{figure}[h] \begin{center} \begin{landscape} \scalebox{0.6}{ ...
1
vote
1answer
87 views

How can I avoid blank spaces when I insert a pdf figure?

in the following piece of latex code, I would like to place a pdf figure called sharpideq2 at page 1 among the text rows, avoiding blank space. What I get instead is the figure placed alone in the ...
3
votes
0answers
24 views

Dealing with columns while placing a figure at the top of next page [duplicate]

I am using ACM template and having problem while placing the figure at the top of next page. I read threads here, but still instead of placing the figure at the top of whole page it only places it at ...
2
votes
2answers
135 views

How to make table floats work with preview/standalone environment?

Couldn't make a table float work inside the preview environment: \documentclass[fontsize=16pt]{scrartcl} \usepackage[active,tightpage]{preview} \setlength{\PreviewBorder}{25pt} \begin{document} ...