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

3
votes
1answer
739 views

How to fix caption in moderncv?

I'm using moderncv and I want to add a caption to an inserted graphic. I'm currently using this code \begin{minipage}{.5\textwidth} \centering ...
1
vote
1answer
135 views

How to arrange a figure consisting of four subfigures?

Two subfigures in one page. This figure take two page. (a) (b) Page 2 (c) (d) figure 1. The caption of this figure.
3
votes
1answer
161 views

Float placement: how can I prevent a float from splitting a paragraph?

I want to use floating figures within my thesis to improve the layout; however, when the float will not fit in the text, it is placed at the top of the next page. This can often be in the middle of a ...
5
votes
2answers
401 views

Wrong position (on separate page) of sideways figures in amsart

I run into a problem when running sidewaysfigure in amsart. The code below illustrates \documentclass[a4paper,reqno]{amsart} %\documentclass{article} \usepackage{graphicx} ...
6
votes
2answers
405 views

setup of 5 figures as 2x3 table with 6th cell having the caption

I want the figure to look like the following. Cant figure out how to do that using graphicx or subfloat. :s please help :) After the discussions: \begin{figure}[htb] ...
3
votes
1answer
530 views

Inserting floating text near decision tree arrows

How do I insert Yes and No beside the solid arrows? I tried putting node [near end, right] {Yes} after each node and child declaration but this just messes up the flow of the decision tree. Code ...
2
votes
1answer
147 views

How to make the space between figures on a line small when using command 'figure'?

\begin{figure}[H] \centering \subcaptionbox{}{\includegraphics[width=6cm,height=3cm]{gaussian.eps}} \subcaptionbox{}{\includegraphics[width=6cm,height=3cm]{star.eps}} ...
2
votes
0answers
93 views

extra line in table of figures [duplicate]

After the last figure of each chapter adds an extra line for me is bad. How I can fix? Attached my configuration. Thank you. \documentclass[letterpaper,11pt,twoside,openright]{book} ...
1
vote
1answer
308 views

Inserted images come before text and code [duplicate]

I am typing up some loose ends in my LaTeX code, and I have come far with help from here. The last things I need help with are some formatting subtleties that I cannot solve. Basically, I am trying ...
1
vote
1answer
120 views

Pop-ups for a preview of raster images (.jpg,.tiff etc.) as they are while writing LaTeX code

I usually have a lot of figures to comment in my latex document sometimes for me would be helpful have a look to the figures as they are (not a preview of the final formatted results) just a very fast ...
3
votes
1answer
219 views

How to wrap text around framed floats in ConTeXt?

The goal is to embed an image into a coloured box with text. I tried with \placefigure and \starthangaround. They work fine outside a frame, but once put inside a frame the text collides with the ...
1
vote
1answer
117 views

Different heights of elements of subfloat

I am using "subfloat" to visualize both an image and a table inside the same figure as follows: \begin{figure} \centering \subfloat[Summary statistics\label{subfig-1:tab}]{% ...
1
vote
0answers
41 views

Wrap text around non rectangular image [duplicate]

Is it possible to wrap text around a circle or around a polygon? Or do I have to insert linebreaks manually to the right places?
10
votes
1answer
52 views

Is there any way to change the caption of a table after its declaration?

I have some tables that are generated automatically by a third-party program. I would like to change their captions without editing their text. Is there any way to change the caption of a table after ...
1
vote
1answer
3k views

How to change figure caption to Fig. 1. in stead of Fig. 1: [duplicate]

My Figure caption is now like this: (Fig. 1:Caption of figure) and I want to change it to (Fig. 1. Caption of figure). Also in the Table caption I want to get it like this: (Table II. Title of ...
3
votes
1answer
88 views

Inserting existing table in a float

I have a lyx file with tables which are not in a table float, I need to put them in a new table float . It seems it is impossible to do this in the GUI of lyx, So what are the workarounds to achieve ...
3
votes
1answer
152 views

How to put a series of figures in annex

I want to put 51 figures , with names 0001.png ,....., until 0051.png, in annex ans I'm wondering if I can do something similar to this in latex . for i series_of_figures; put figure in annex , with ...
2
votes
2answers
1k views

How can we import the gnuplot output in LaTeX?

I am using the gnuplot and create the myploy.tex as following: set terminal epslatex set output 'mplot.tex' set xlabel "Avg. No. of demand duration (slot) " set ylabel "Acceptence rate (%)" ...
5
votes
2answers
442 views

Using \MarginFigure command

Someone wrote a command called \MarginFigure for putting figures in the page margins. Unfortunately, I haven't been able to get the \includegraphics to work. Specifically, I have figures that I've ...
2
votes
1answer
272 views

Insert margin images in LaTeX

I am using a two sided layout in LaTeX and have several places where white space could be filled with images instead of being included in the text flow. I cannot get a working figure with caption ...
2
votes
1answer
100 views

Table too wide for page in standalone file?

My goal is to create a standalone TeX file containing tabulated figures. No matter what value I set for image width, the resulting table is always too wide for the page. Here is a MWE: ...
2
votes
1answer
404 views

Hyperref and the float package

There is an issue when using the hyperref package, which provides links and bookmarks, together with the float package, which implements changes in float placement in the document. Loading both has ...
5
votes
1answer
281 views

Splitting figures/tables into separate files

I'm preparing an article for submission in a journal and it requires that the PDF of the text be uploaded without figures and tables and each figure and table should be it's own PDF file complete with ...
3
votes
1answer
342 views

How to have center title in listings when you have subcaption (workaournd conflict between listing caption and subcaption class)?

I want to use listings package (\usepackage{listings}) to show a matlab code in a paper (using elsarticle class) but the title is not aligned in center below the code. This happened after I added ...
3
votes
1answer
90 views

Extra page while using simultaneously minitoc and float

I have a problem for a while now: there is always an extra page at the end of my documents. I notice that this happens when I use simultaneously minitoc and float. I track this issue down to this ...
4
votes
1answer
112 views

Selecting a subset of the list of figures produced by \listoffigures?

I'd like to generate a table-of-contents style list of a hand-selected group of figures---that is, a subset of the list captured by \listoffigures. Although obviously I can open the .lof file ...
3
votes
1answer
116 views

LyX linguistics module - table within example

Using LyX with the linguistics module. I want to have a table as a Numbered Example. When I insert a table float after the example, the number appears after the table on the PDF, rather than before ...
2
votes
1answer
1k views

How to place algorithm outside float?

Is there any elegent way to place algorithm without using algorithm environment?
4
votes
1answer
269 views

Continuous subfigure numbering

I have a lot of files including images and I want them to be numbered continuously. I use many images next to each other, which looks like \begin{figure}[H] \begin{subfigure}[t]{0.45\textwidth} ...
4
votes
1answer
3k views

How to get image and text on same page?

When i run the following code i get my output on two pages. On first page the text line and my image on page 2. How can i get my output on the same page that is text and image on the same page. Please ...
3
votes
1answer
624 views

how to keep position of rotated tables

Since I'm working with R, I'm using the xtable package to produce my tables in Latex. Some of the tables only fit the page if rotated. It seems that sidewaystable always starts a new page. My problem ...
3
votes
1answer
88 views

Longtabu table broken by another float table

I have come across a problem with using longtabu together with tables created in the table environment which makes them float. When a long table is broken across two pages with the longtabu ...
2
votes
2answers
395 views

Getting two pictures to appear on the same page

I have two images that I would like to appear on the same page. Each figure should appear as a separate figure with its own caption. My problem is that LaTeX sometimes places the figures on separate ...
3
votes
2answers
87 views

Largest image that doesn't get put on separate page?

With an image in its own section of a document, like: \subsubsection{Title} \begin{figure} \centering \includegraphics[width=0.7\textwidth]{somefile.pdf} \end{figure} How can you set it to make ...
5
votes
1answer
137 views

How to add the algorithm block in textblock

I'm creating a poster and I have a problem to adjust the algorithm block inside of textblock. My code is in below with the packages and the code. \documentclass[a0,portrait]{a0poster} ...
4
votes
1answer
220 views

How to label Table and Figure side-by-side with combined caption

Adapted from Thorsten Donigs answer in Table and Figure side-by-side with independent captions The Caption correctly numbers the figure and table but how does the correct setup of the labels ...
1
vote
1answer
307 views

Section name appears after the wrong table

So I am writing a paper in document class article, and my section name (Appendix) appears after the wrong table. More specifically, I have some tables in "Figures and Tables" section, and I have few ...
2
votes
0answers
95 views

\floatstyle{boxed} paragraph style

I'm using \floatstyle{boxed} for the first time. I want numbered, boxed floats with the same paragraph style as my main document. The boxing and numbering works fine, but the line-spacing inside ...
2
votes
1answer
385 views

Knitr plotting outside margin

I like the look of plots that extend beyond the margins \documentclass{article} \usepackage{lipsum} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering ...
2
votes
0answers
187 views

Updating an autocompletion in TeXnicCenter [closed]

I am trying to update the figure autocomplete in TeXnicCenter (TXC) to suit how I use figures. I believe I need to alter the Tex.xml file in C:\Program Files\TeXnicCenter\Packages and then restart ...
3
votes
2answers
168 views

Placing a table next to figure (align table vertically centre)

I would like to place a table and figure side by side in my document. I have achieved this with the following code \documentclass[a4paper,10pt]{article} \usepackage{floatrow} \usepackage{color} ...
8
votes
2answers
208 views

Allow source code to wrap around a figure

I would like to be able to wrap source code around a figure. Here's a MWE that should make it clear what I have in mind: \documentclass{article} \usepackage{wrapfig} \usepackage{listings} ...
1
vote
1answer
211 views

tables in lyx that flow with the text

I have been using float:table as my default for tables. I insert a float:table, then in that float I insert a child document (as input) that contains all my latex code for the table. This works fine ...
1
vote
1answer
348 views

How to shift a large graph to the left

Basically, I have a large graph, which take almost half a page. Right now, when I compile the tex file, the graph shifts to the right on the pdf. I have label and caption on this graph. How can I ...
0
votes
1answer
129 views

Images and listings as non-floating figures

I have been writing a large latex document, but I got some trouble with figures. Usually when I want to add an image or a listing to my list of figures, I just place it within \begin{figure} and ...
7
votes
2answers
136 views

LaTeX float controls - what is the denominator of the fraction macros?

I'm looking in Section C.9 of the LaTeX manual (pages 199 and 200). LaTeX defines a few macros to control the float placement algorithm, namely, \topfraction, \bottomfraction, and \textfraction. The ...
5
votes
1answer
490 views

Multiple Figures in LaTeX

I have generated a large number of figures (about 400) and I'd like to place, for example, 20 figures per page (4*5). I've looked for the solution on the Web but all I've found is solutions for small ...
4
votes
2answers
643 views

Hide output, but maintain the cross-references

I am (losing my mind) trying to convert a TeX file to a Word with latex2rtf. The body translates well, but the tables don't. I use a lot of cross-references and out like to maintain them. My solution ...
4
votes
2answers
1k views

Continued figures

%This is figure 1 \begin{figure} \centering \caption{blahblah} \label{figure1} \vspace{0.5 cm} \begin{center} ...
3
votes
1answer
144 views

How to change global figure setting?

I did \floatstyle{boxed} \restylefloat{figure} so all of my figures are with frames. This works well, but there is a place I do not want frame, how can I change it locally?