{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)

4
votes
1answer
96 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
92 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
49 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
212 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
62 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
78 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
100 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
27 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
163 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
49 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
45 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
75 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
67 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
34 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
117 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
120 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
65 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
73 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
35 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
90 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
178 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
209 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
290 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
77 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
38 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
100 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
41 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
74 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
78 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
75 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
426 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
220 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
84 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
89 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
146 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} ...
2
votes
1answer
64 views

Figure numbering

I have a figure composed by 9 subfigures (3 rows and 3 columns). I divided this figure into 2 blocks using the following commands: \addtocounter{figure}{-1} and \addtocounter{subfigure}{1}. These 2 ...
3
votes
1answer
81 views

Insert 4 figures in a square like structure [duplicate]

I want to insert 4 figures in structure of a square i.e. in two rows and two columns, the structure I talk about is given in the image below; Please help me with piece of code. Thanks.
1
vote
1answer
29 views

Lower page number for selected pages

Is there a possibility to lower the page number at a single page where a large figure (float) with a height nearly pageheight is positioned? So the command must probably be used inside the figure ...
2
votes
2answers
105 views

Previous half of page left blank when floating figure

I have a document where I wish to have a block of text then my figure then a block of text below that. I have tried using the [H] option along with the float package. While this does what I want it is ...
2
votes
1answer
27 views

How to chang the colon after figure number to another symbol?

I want to change the colon in the caption to another symbol e.g. Figure 1: this is figure to Figure 1 | this is figure How can I do this?
3
votes
1answer
81 views

Put two figures side by side

There are already several threads that deal with this: they suggest having one figure and putting putting minipages inside, or using the subcaption package and having subfigure environments. However, ...