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

6
votes
1answer
32 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 ...
0
votes
0answers
38 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: ...
11
votes
1answer
3k views

center /verbatim text in /figure

I'm trying to center a the content of a figure that has verbatim text in it, but the verbatim text is always right-aligned: \begin{figure} \centering \begin{verbatim} some text here ...
4
votes
2answers
338 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 ...
7
votes
1answer
51 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 ...
0
votes
2answers
48 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 ...
2
votes
2answers
82 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} ...
9
votes
1answer
418 views

Context: Placing float (figure) and text-top at same height

I would like my figures to be flush with the text line beside them if they are positioned left or right and top. Currently the top edge of the figures are roughly flush with the 2nd line. This seems ...
1
vote
1answer
48 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 ...
0
votes
0answers
36 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}{ ...
3
votes
0answers
18 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
1answer
42 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 ...
5
votes
1answer
11k views

Vertical space between figures

I really want to get rid of some of the whitespace between figures and subfigures, it is completley unecessary and sometimes causes a page of figures with a third landing on page two with text, while ...
3
votes
2answers
1k views

Referencing a table vs. a figure in LyX, format

Currently, when I reference things using labels I have setup LyX simply inserts the table number. I would like it to insert Table N where N is the table number. Similarly, I would like it to insert ...
5
votes
3answers
272 views

How to create simple funnel in LaTeX?

I have a problem trying to create a simple funnel, as it can be seen on the attached file: I have tried to look at the internet, trying to write the lines, but it won't work. I am using TikZ. The ...
2
votes
1answer
36 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
22 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 ...
1
vote
1answer
157 views

Expand page to use full page height with fancyhdr

I use fancyhdr package and would like to print a large float that exceeds the textheight. Hence I would like to remove the headers and footers. And have the float verticaly centered. I tried ...
1
vote
1answer
26 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
22 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?
2
votes
1answer
30 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, ...
5
votes
1answer
59 views

Preventing a code listing of multiple pages to be split to several parts

I have a lstlisting that doesn't fit on one page. It continues correctly on another page but instead of putting the last lines in the beginning of the next page it actually splits into three parts on ...
1
vote
0answers
68 views

Importing plots from MATLAB to LaTeX

This is my first time trying to import plots created by MATLAB into LaTeX and it's not turning out very nicely. I have saved my MATLAB plot as a .png file here and an .eps file here. Using the .eps ...
17
votes
1answer
302 views

Optimal arrangement of pictures/boxes in a page

Does anybody come up with a way to automatically arrange a few figures or boxes in a larger rectangle or page? Here it is a real world example: One is producing a beamer presentation. One has 4 or 5 ...
54
votes
9answers
37k views

Using \footnote in a figure's \caption

Maybe this is an easy one, but I struggled with this now too long :) I want to have a footnote in a caption of a figure, see the example. \begin{figure}[!ht] \caption{a figure ...
8
votes
4answers
186 views

Floats in the middle of paragraphs

How would you place a float like this with LaTeX? Note that it's in the middle of a sentence. Normal float placement rules could only find the right page to put the float on. Then it's a matter of ...
3
votes
1answer
57 views

\input in figure environment not centering

I'm making a presentation with beamer, and I've drawn some figures in TikZ that I'm inserting into the presentation using \input{footikz.tex} For some reason the tikz picture is appearing off to the ...
2
votes
2answers
55 views

How can I remove an empty caption line

I'm generating LaTex automagically from a lengthy document that is written in the multimarkdown language, compiled by a software package called Scrivener. It's a workflow that works well, but this is ...
1
vote
0answers
19 views

Why is space inserted at beginning of table or figure caption when using macros to define caption label? [duplicate]

Here is my MWE. As you can see, the problem only happens when we use the macro \suppOrApp. \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{caption} ...
0
votes
1answer
23 views

Shifting (sub)figure caption in case of merged figures

I have a small piece of code that merges two figures: \begin{figure} \centering \begin{minipage}{.5\textwidth} \hspace*{-1.5cm} \includegraphics[scale=0.45]{images/Figure1.pdf} ...
0
votes
0answers
23 views

Titles directly below a float is causing spacings below the float to increase

I'm using \begin{figure}... \end{figure} with memoir class, and if there is a title (\section, \subsection, \subsubsection) right below the figure, the spacing below the figure is greatly increased. ...
3
votes
0answers
42 views

font size and type in asymptote

I am struggling to find font sizes and types for labels on my math figures in asymptote. I am creating two images which should be essentially the same, but for a sphere and cylinder. I haven't been ...
12
votes
2answers
14k views

Remove space after figure and before text

I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the ...
5
votes
3answers
71 views

Figure number adjusted with theorems

I am trying to adjust the figure numbers linked to the theorem it is displayed in. In case of a theorem contains exactly one figure, the figure number will be theorem number; for multiple figures, the ...
1
vote
0answers
48 views

pgfplot same size font in figures and same size figures

Hi I've created figures with standalone and pgfplot package. The figures output size are different to one another but more importantly the font size are different. I would like all figures to be of ...
5
votes
3answers
133 views

How to include addcontentsline on blank page into TOC

\addcontentsline is written to the toc when the page is "shipped out". If the command is on an empty page which is not written to the pdf or dvi it gets lost. Question: How do I get \addcontentsline ...
2
votes
2answers
68 views

latex placing image - how can I put image wherever I want [duplicate]

I am trying to insert an image in the middle of the page, but it is going to the top of the page. why the hell is it happening? I tried this: \begin{figure} \begin{minipage}{\textwidth} ...
4
votes
1answer
63 views

How do I put a figure* before my abstract?

I'm sadly not using double-column abstract, just single-column. This is based on the sigchi document class: https://code.google.com/p/sigchi-latex/ The obvious thing: \documentclass{sigchi} ...
0
votes
0answers
27 views

Table won't stay anchored in two colums article [duplicate]

I'm trying to put a table placed in the two columns of an article. This I can do. The problem is it won't stay in the middle of the text. Here is my code, \documentclass[11pt, twocolumn]{article} ...
3
votes
1answer
62 views

Wide float positioning in two-column document

I am writing a lab report formatted in two columns. It is set to two columns at the beginning by\documentclass[a4paper,11pt,twocolumn]{article}, rather than using the multicols package, because I use ...
18
votes
2answers
2k views

subfigure and subfig packages deprecated

I was using the subfigure package to align multiple small images in a document. However, WikiBooks states that "the subfigure and subfig packages are deprecated and shouldn't be used any more" ...
2
votes
1answer
23 views

How to set the pagestyle on the page a particular float ends up on?

Sometimes, a float is just a tiny bit too large for one page and one would like to remove the page number and hope that nobody notices. \documentclass{article} \usepackage{mwe} \begin{document} ...
1
vote
0answers
20 views

Last element in each row of a matrix getting pushed to next line [duplicate]

The following matrix is not displaying all elements in each row on the same line, the last element in each row is getting pushed to the next line. If I delete the last element then the matrix displays ...
7
votes
3answers
2k views

avoid that figure gets its own page

I have a couple of floats in my document, which contain large Images (it consumes the half of the page). In this case, the figure get's its own page and no text goes on this page. How can I configure ...
5
votes
2answers
69 views

How to place a multicolumn table above a multicolumn figure?

I have a table that spans two columns of a page. I have a figure that also spans two columns. I tried adjusting the h, t and the * in different fashions, but I couldn't get it to work. The figure ...
3
votes
3answers
127 views

Centering a matrix in a figure?

I have a matrix that I would like to be centered in the middle of the page, however it is showing up left-aligned. \begin{figure}[ht]$ \centering \begin{bmatrix} 0 & C_l ...
8
votes
2answers
182 views

Looking for three images on top of each other with text underneath each

I need to place three images on a page with text under each, and then one 'overall' caption for the figure. This code puts the images on top of each other but the text is to the left of the images, I ...
94
votes
2answers
153k views

Force figure placement in text

I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code: \begin{figure}[ht] ...
9
votes
2answers
248 views

Three tables side by side, want only one caption

I have three tables and I want to use one caption under them. I tried the following but then nothing prints except the caption - \begin{figure}[!h] \begin{table}[h] \centering ...
2
votes
1answer
22 views

List of <newfloat> with zero caption in text

new Float type: Illustration How to make a list of illustrations, with captions in the list, but for the illustrations to appear in the text with zero captioning - image only.