{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}.
4
votes
1answer
43 views
Dirtree and lstset side by side
A \dirtree and a \lstset should be shown side by side. With the code below the \dirtree is vertically not on the same level as the \lstset (above the \dirtree is some empty space). How can I fix that?
...
1
vote
1answer
85 views
How to force a figure and a table to stay on the same page in LaTeX? [duplicate]
I have an image and a table that I want to display on a page. Each eats up little less than half of the space available so there's not much room for any other stuff on that page, but I know there is ...
1
vote
1answer
33 views
Figure not automatically being placed on two pages
My figures are not being placed on 2 pages, instead they are disappearing off the end of the first page.
\documentclass{amsart}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
...
2
votes
1answer
74 views
How to remove the vertical space between two images latex
I know this topic is allready discussed but I still don't manage to solve this problem. I have 2 pictures in my document. I would like to delete the white vertical space between them. I found ...
3
votes
2answers
74 views
Caption issue when placing figure side by side
I placed 2 figures side by side using the minipage method from this post, and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how ...
0
votes
1answer
65 views
Compile chokes on floating table. “Missing number, treated as zero. <to be read again>” error [closed]
I'm compiling a doc and I get the following error no matter what I try.
LaTeX Warning: Reference `LastPage' on page 4 undefined on input line 256.
<use logo.jpg> [4 <./picture4.png> ...
3
votes
1answer
89 views
How do you put in a graphical abstract?
I tried adding figure environment inside the abstract area but it generates an error. How do I add a graphical abstract as well as a textual one?
1
vote
0answers
92 views
ieeetran two column figures
How can I have a figure span the full width in ieeetran two column?
I have googled and seen people say use \begin{figure*}\end{figure*} but when I do that there is no figure. I want the figure to be ...
3
votes
2answers
71 views
Too much space around wrap figure
I am using the wrapfig package to have my text around the figure but there is too much space around it as you can see below.
Here is the code that I am using, I looked at the wikibook on LaTeX for ...
0
votes
1answer
36 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
...
0
votes
0answers
33 views
Why does \begin{figure} center my image vertically? [duplicate]
If I insert image into my document as such:
\includegraphics{spss24fore.png}
The image is aligned at top of the page, but when I use:
\begin{figure}
\includegraphics{spss24fore.png}
...
1
vote
0answers
41 views
Table caption above, figure caption below [duplicate]
In a LaTeX article, I would like to place table captions above the tables and figure captions below. Is this possible?
2
votes
3answers
52 views
Side by side tables as one figure
\begin{figure}
\begin{minipage}{0.5\textwidth}
\centering
\caption{***}
$\begin{array}{cccccccc}
T_1: & c_{12} & & c_{23} & & c_{34} & & c_{45}\\
...
1
vote
2answers
69 views
Get a table and figure on the same page with captions & labels
Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
1
vote
0answers
79 views
LaTeX creating unnecessary space
I'm getting unnecessary white spaces as in the snapshot.
It's mainly because of my figures. I'm putting my figures as
\begin{figure}[H]
\centering
\input{figures/,,,,,,.tex}
\caption[h]{....}
...
3
votes
1answer
56 views
Is that possible to put one figure in the top and one two-column figure in the bottom of a same page?
I am adding figures into a two-column LaTeX file. In one page, I need to put a one-column figure and a two-column figure in a same page. The one-column figure should be in the top of the page and the ...
1
vote
2answers
63 views
LaTeX align minted code fragments
I would like to align the first lines of the code and the captions in the following listings. This is my LaTeX code. I've also uploaded an image of the output.
\begin{figure}[H]
...
3
votes
2answers
78 views
How to arrange floating image top centered?
I am using image in my report as follows to make it top centered.
\documentclass{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{graphicx,caption}% ...
1
vote
0answers
42 views
How to add a caption to a listing with minted?
Package minted provides a way to add captions and labels to a listing wrapping it around with listing environment. With this environment the code block is put inside a floating box which won't break ...
1
vote
1answer
53 views
PDF files in Appendix are ill placed
I'm writing up my bachelors thesis. I have used the appendix{} command i.e.,
\newpage\chead{Appendix}\begin{appendices}\numberwithin{equation}{section}
and I have a lot of sections in the ...
0
votes
0answers
23 views
Figures after reference in text [duplicate]
I'm using LyX and I'd like to ensure that figures do not appear until after they are referenced in the text, ideally at the top of the following page. Is there any way to do this in LyX or LaTeX? I ...
2
votes
1answer
74 views
How to share a one column figure with two column text on same page
I am writing an article that is composed of a two column body. But on one page, I want a figure that takes up both columns at the top and below I want to continue writing in two column text.
So far I ...
2
votes
1answer
43 views
resizebox fails for tikzpicture when used in conjunction with listing package
Here is the example that fails
\documentclass{standalone}
\usepackage{tikz}
\usepackage{float}
\usepackage{listings}
\usepackage{color}
\usepackage{textcomp}
\usetikzlibrary{shapes,positioning}
...
1
vote
0answers
44 views
Positioning images in titlehead
I'm trying to position four images inside the corners of the \titlehead environment. My approach didn't work.
\titlehead{
\centering
\includegraphics[height=20mm,keepaspectratio]{upper_left}
...
2
votes
1answer
40 views
How can I draw a line in a figure environment?
I have put together a figure in Inkscape, however, for the last four lines I wanted to add, the program has for some reason not allowed it.
I'm putting this figure into a LaTeX document in the ...
1
vote
0answers
28 views
Listing not handled as a float in SIG ACM document type
My document starts with
\documentclass{sig-alternate}
\usepackage{listings}
and it includes listings like this:
\begin{lstlisting}[label=samplecode,float=tb,caption=My super code]
// code
...
0
votes
0answers
32 views
How to move a figure below such that in doesn't overlap a previous figure's caption? [closed]
I have two figure the one under the other one. Inside each figure there is an adjustbox. The problem is that the beginning of the the second figure overlaps a bit the caption of the previous figure. ...
2
votes
1answer
25 views
Why does ltablex skip a number in captions?
The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the ...
1
vote
0answers
34 views
Figure positioning in Sweave
I starting learning Sweave today, and I am having difficulty positioning my figures correctly. I am finding that when I use the figure environment, the position of the figure doesn't correspond to its ...
2
votes
1answer
82 views
Typesetting errors with two wrapfigures on one page?
I have a document with the book documentclass, and I'm trying to include two wrapfigures on the same page, one on each side (ideally in adjacent paragraphs, but at this point I'm just trying to get ...
1
vote
1answer
56 views
How to properly space multirow subfloats
I have 3 subfloats, but they will not all fit on one line, so I have two in the top row and one on the bottom row. My first problem is the floats are all different sizes and they are not being spaced ...
2
votes
0answers
64 views
Beamer - Optimal figure size given there is a caption, frametitle, etc
This question is inspired by an almost complete solution. My aim is to have the figure (placed in a figure environment) occupy the maximum place possible given that it has a caption (without ...
3
votes
1answer
35 views
figure and table kept together
I have a table and a figure, both with captions, that I want to keep together, problem is that when
\begin{figure}[htbp]
...figure code, graphics, plot, whatever
\caption[small caption]{figure ...
1
vote
2answers
40 views
genuine way to give an image an emphasized and normal caption
In my work I give each image a small description (usually in emphasized style) and a long description in normal font. To achieve this I have to write
\usepackage{subcaption}
\begin{figure}
...
4
votes
1answer
74 views
List of Figures sorted by Figure number
I am using
\usepackage{imakeidx}
\usepackage{hyperref}
and the command \listoffigures to get the list of figures. Some figures are double-column, some are single-column, and LaTeX does not ...
3
votes
2answers
39 views
How to get dpfloat to take odd pages to be on left
This is a followup to the question: How to ensure that 2 couples of figures are on 2 facing pages?.
The answer there was to use dpfloat. However, dpfloat assumes that even pages are on the left. In ...
4
votes
2answers
49 views
Force position of full page sized figure
I'd like to have text that is placed after a figure which occupies a whole page also to be placed after that page in the produces PDF file.
Imagine this (pseudo latex, not necessarily a working ...
0
votes
1answer
110 views
LaTeX figure position center of page AFTER text
I'd like to know how to position my LaTeX figure in the middle of the page.
However, I've written an abstract at the top of the page, so essentially, I'd like to position it in the center of the ...
3
votes
1answer
55 views
can't put figures in a box
The other day I had a problem in creating an example that contained text and listings, I asked about that here: lstlisting in a box? David Carlisle found a very good solution for it, and after toying ...
2
votes
1answer
45 views
Float erroneous placement in two column document
First of all, I need to apologize to transcript the almost the whole document here. But without it I could not present what I wanted to show. If you compile the document, there is one table that goes ...
3
votes
1answer
58 views
Vertically center a float in the remaining part of a page
How do I vertically center a table in the remaining part of a page? Specifically, I want to put a large table on a single page but I also want to have a subsection title line at the top. However, ...
0
votes
0answers
60 views
Alignment of long algorithms and theorems [closed]
I'm writing a document with relatively many algorithms (using algorithmicx) and theorems. I have noticed that if a theorem starts in the end of a page, which also includes a floating algorithm that is ...
2
votes
0answers
37 views
Problems with multiple \starthanging \stophanging in ConTeXT
I'm trying to place multiple figures with additional side text using ConTeXT one after the other.
When there are two figures in a row they overlap. How should they be separated?
The following ...
2
votes
2answers
91 views
Two pictures, side by side on even and odd page
I am formatting a twopage book on latex and I have a diagram divided on two almost page size images. (Two captions).
What can I do for putting the first image on an even page and the second on the ...
2
votes
1answer
51 views
Figure is put in the center of the page
I made a figure containing subfigures, but it keeps appearing in a whole page, so lots of white space. I don't know why.
This picture explains what i mean:
This is the code used:
\clearpage
...
7
votes
1answer
251 views
Insert A3 page with figure into A4 document with active references
Based on the first answer from a previous post "Insert foldable A3 pages in an A4 document with active references", I tried to get a figure on an A3 page in my thesis. However, it does not turn out as ...
13
votes
1answer
217 views
Spacing, subfigures and right captions (Creating a bar menu)
I am trying to create a bar menu for a student place I am part of.
Now since we are studying CS, mathematics and or physics of course he have to use latex to create our barmenus or drinking lists. An ...
3
votes
1answer
74 views
Big figure has 4*3 subfigures
I have big figure that contains 4*3 subfigures but its not appearing correct. It's taking alot of space. So if anyone could advise. This pics shows the output and this is the script used
...
1
vote
0answers
57 views
What is [htbp] used for? [duplicate]
When I try to input a macro for tables or figures, I usually get [htbp] beside the command... e.g.
\begin{table}[htbp]
What is the use of it? Can I remove it?
3
votes
1answer
72 views
Inaccurate table numbering with LyX
I'm using LyX to create some tables, but the numbering is complete borked.
In the LyX window, the table numbers are accurate. However, when I render to a PDF, they are evens only: 2, 4, 6 etc. (I'm ...


