{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}.
12
votes
2answers
170 views
How can I find out what pages my floats are on (without looking at every page of the document)?
This question led to a new package:
chkfloat
Making small tweaks to my (two-column) document can result in my floats (both single and double columns) moving all over the place. I know that my ...
11
votes
3answers
514 views
Why can't I use \newfloat more than once?
I've found the float package, which lets me specify \newfloat{program}{...} to get other named floats than Table and Figure. However, if I try to use this more than once, I get a cryptic error:
! You ...
10
votes
2answers
666 views
Why are \listof{}{} and \listoffigures styled differently?
I'm writing my thesis and I have certain code-snippets to show. I'm using the the listings package embedded in a custom float environment to display them.
To list them in an index at the beginning of ...
10
votes
2answers
3k views
How to change the numbering for different figures?
Let's say I have two standard figures and two supplementary figures. If I change the name of figure using \renewcommand{\figurename} the figure counter will still count all figures continuously (i.e. ...
7
votes
2answers
3k views
Note below figure
I have a figure and include it in LaTeX using \includegraphics in a \figure floating environment. The caption is at the top. Basically I would like to have a note below the figure too. I see some ...
6
votes
1answer
108 views
How to spread floats automatically over a whole chapter?
In a chapter with many figures, I'm having trouble to get the floats to be interlaced with the text. To quote http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions:
Authors sometimes ...
4
votes
1answer
396 views
Figures in odd pages, text in even pages; if no figures, then odd=even pages (i.e., no blank pages w/ numbering and headers…)
I'm writing my thesis using \documentclass{book}. I have plenty of figures and I want them to appear always on the right hand of my manuscript (since this is the "attraction" page when reading, and ...
4
votes
3answers
1k views
How to create an unnumbered algorithm with a caption?
I want to do something like:
\begin{algorithm*}
\caption{My unnumbered algorithm}
% etc. etc.
\end{algorithm*}
or
\begin{algorithm}
\nonumbercaption{My unnumbered algorithm}
% etc. etc.
...
3
votes
1answer
211 views
Ruled Algorithms in columns/minipages
I'm using Benoit Guillon's algo styles for Lyx (at http://bgu.perso.libertysurf.fr/) in 2.0 to get nice algorithms ruled with line numbers. This is just a wrapper for the algorithm and algorithmic ...
3
votes
1answer
216 views
Full width text shifts all marginfix-ed floats off the page to the right
I'm using marginfix to fix the positioning of sidenotes in some Tufte documents, but whenever a page contains any text in a fullwidth environment, all marginal material on that page is shifted to the ...
3
votes
1answer
653 views
Tables and sections get misplaced
These are my tables:
\section{The status of respondents}
\begin{center}
\begin{table}
\begin{tabular}{|l|l|l|l|}
\hline
\textbf{Sl.No.} & ...
0
votes
1answer
350 views
Vertical space between headlines, tables, images and the following text too large
Is there a way to globally set a value (or minimum and maximum value) for the vertical space between, for instance,
headlines, tables, images and the like
and
the following text.
Right now I have ...
15
votes
5answers
2k views
New figure environment
I am writing my PhD thesis. In my manuscript I have Figures in the text and Photographic plates (a figure of figures) in the annexes. The two elements are different and I would like create a new ...
14
votes
2answers
357 views
Clearpage without pagebreak?
Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on ...
14
votes
1answer
340 views
Unsorted citations and floats
In attempting to answer this question Citations in order of appearance it's clear that unsorted citation schemes (ones in which the citations are numbered simply by order of appearance) can be easily ...
13
votes
1answer
4k views
How can I modify vertical space between figure and caption?
\documentclass{article}
\usepackage[draft]{graphicx}
\begin{document}
\begin{figure}
\centering
\setlength\fboxsep{124pt}
\setlength\fboxrule{1pt}
\fbox{\includegraphics{dummy}}
\caption{Dummy ...
11
votes
2answers
855 views
How to put a PDF figure on top of another one
I have two PDF figures (charts) in a LaTeX document. As one of them is really simple, and I have some document space constraints, I was thinking of putting it in the upper right corner of the second ...
10
votes
1answer
6k views
floats - how to restrict floating to subsection only in one section of the document?
I have concluded that the package float allows figures to float within the section they belong to. However for one particular section I need to restrict the floating to the subsection (without forcing ...
10
votes
4answers
1k views
Is there a general command to disable indentation of paragraphs after figures and tables?
I am typesetting a manual, that uses normal indentation for paragraphs. The pages have a lot of figures and tables and I would like to have the paragraph after tables and figures to have no ...
10
votes
3answers
2k views
Line up captions on side by side figures
I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a ...
9
votes
3answers
230 views
Hyperref is loaded by the class, and I need to load packages that are supposed to be loaded before
I am using the lipics documentclass, which loads hyperref. Since I want my figures boxed, I added the following
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
The problem: I receive ...
9
votes
2answers
1k views
How to forbid LaTeX to put text between figures?
I have some figure, which I want to have one right after another in the document.
Is it possible to forbid pasting anything inbetween, even if there is some space?
\begin{figure}[h!bt]
...
8
votes
1answer
258 views
Repeating figures in an appendix
For a paper I'm working on they want to have an appendix with all the figures from the main text. That is, figures should be in the main text (for publication), but they should be repeated in an ...
6
votes
1answer
85 views
Continue long table beside on the same page
I have a datatable in a CSV file and print it with pgfplotstable. I can split long datatables by making pgfplotstable use longtable instead of tabular environment; so far so good. My problem is that ...
5
votes
1answer
112 views
Force all floats to the end of the document without using endfloat, compatible with htlatex
What is the easiest way to have all floats forcibly appear at the end of the document? The solution should work with htlatex, the floats should appear at the end of the HTML document in this case. ...
5
votes
3answers
1k views
How to set a background color of figure environment?
Currently I've this situation:
\newenvironment{inline}[2]{
\begin{figure}[h!]
\caption{#1}\label{#2}
\vspace{10pt}%
}{
\end{figure}
}
How can I set a background color to whole content, ...
5
votes
3answers
484 views
How to refer a figure as a table?
I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has ...
4
votes
1answer
452 views
Figures on left pages, text on right pages
I'm writing a thesis in the book document class and I'm using a lot of figures to explain the working method. If I use the method proposed in Figures on left pages, text on right ones with class book, ...
4
votes
1answer
221 views
Avoid line break after macro
The following example produces a line break after the second text.
\define[2]\smallfigure{\placefigure[margin][#1]{#2}{!}}%
\starttext
text text\smallfigure{fig1}{A}text text
\stoptext
The ...
2
votes
1answer
184 views
Tikzpicture in a two column way using a one column .cls template
I'm using a .cls IEEEtran from IEEE available here http://www.ieee.org/conferences_events/conferences/publishing/templates.html; and all document is in two columns.
I'm ploting using pgfplots a ...
2
votes
0answers
59 views
Controlling the rotation direction of the sideways figure environment [duplicate]
Possible Duplicate:
Inconsistent rotations with \sidewaysfigure
Using the sideways figure environment how can one control whether the rotation is clockwise or counter-clockwise?
I ...
2
votes
0answers
272 views
The [H] “put it here” placement option doesn't work with floatrow [closed]
I'm using the minted, floatrow, caption, and listing packages to create code blocks like these:
To do this, I'm using a hack based on this answer. Here is what I have:
...
\usepackage{listings}
...
2
votes
1answer
5k views
Displaying a wide figure in a two-column document [duplicate]
Possible Duplicate:
How to make a figure span on two columns in a scientific paper?
It's my first time working with a two-column document (declared as an argument to \documentclass) and I ...
1
vote
1answer
95 views
Can images and tables be always placed immediately after the paragraph they are first mentioned, even if white-space needed to move to another page?
I would like to ensure that when I mention a table/figure in the text, the figure/table will appear after that paragraph ends. Even if this means leaving the rest of the page blank and putting the ...
1
vote
1answer
189 views
How can I redistribute floats towards the top of the page?
I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get ...
0
votes
3answers
9k views
latex two column layout set figure to load on single column
this is the double column code
\begin{multicols}{2}
\begin{figure*}[!ht]
\centering
\includegraphics[height=60mm]{CC.jpg}
\caption{AA \cite{BB}}
\end{figure*}
\end{multicols}
But the ...
14
votes
1answer
295 views
What is a BANG float?
This question follows up on What is the exact purpose of \ftype@<TYPE>?. The LaTeX kernel source refers to a BANG float in the ltoutput.dtx, but there is no explanation for it. Anybody knows ...
14
votes
3answers
909 views
Too many unprocessed floats with marginpar
I'm updating my CV, which is written by modifying this template. I have always been very happy with the result, but now I'm getting a Too many unprocessed floats error.
For those who do not want to ...
11
votes
2answers
174 views
Can I detect whether LaTeX is in vertical mode?
I am writing a command that creates a margin paragraph. This requires that this command is only used in vertical mode, which is fine. If the command is used in a float, LaTeX gives a "not in outer par ...
11
votes
4answers
13k views
Force LaTeX image to appear in the section in which it's declared [duplicate]
Possible Duplicates:
How do I ensure that figures appear in the section they're associated with?
Keeping tables/figures close to where they are mentioned
How can I force an image in a ...
11
votes
1answer
1k views
Do I need \leavevmode for centering figures?
I have an image I'd like horizontally centered on the page. Currently, I'm using the following code (which does work) under pdflatex:
\usepackage{float}
...
\begin{figure}[H]
\begin{center}
...
10
votes
1answer
1k views
List of figures: source below image caption?
I'm relatively new to LaTeX and currently working on a paper. In my list of figures, I'd like to have a structure like this:
Fig. 1: <Title of figure> . . . 1
...
10
votes
1answer
3k views
How can I get rid of the LaTeX warning: Float too large for page?
In my document, I have figures that have a rather long caption. The code I use to include them looks like this:
\begin{figure}
\begin{center}
\includegraphics[width=\textwidth]{../fig.pdf}
...
9
votes
2answers
205 views
How to detect if in an exercise environment?
I found in How to use figure inside a exercise environment? that I can't use begin{figure} ... \end{figure} in an exercise environment. I also found situations where avoiding the use of such floats ...
8
votes
2answers
216 views
Trouble changing font size in figure legends
I'm trying to set the font size smaller in the legends for all of my figures and tables. The way I was trying to do this was using \AtBeginEnvironment but that doesn't seem to do anything at all. This ...
8
votes
1answer
182 views
Produce PDFs with only the figures/tables without captions and with only the captions without figures/tables
I'm submitting the final copy of a journal paper and got the following requirements:
Camera-ready copies of all figures and tables in a single pdf/ps file (that is, produce a single ps/pdf file ...
8
votes
1answer
1k views
IEEE-Template: Algorithm over both columns
I'm currently working on a paper using the IEEEtran template. I do have a pseudocode I would like to put into this paper. In a former paper I saw that it is possible to put this algorithm in a box ...
8
votes
4answers
765 views
Override tendency to avoid filling entire page with floats
I'm working on a two column document, and on one of the pages, I want to fill an entire column with three different floats. But when I use, for instance, h!, ht!, b, b!, t!, etc., on all three of ...
8
votes
1answer
1k views
Full-page figure without extraneous whitespace in text?
My question is along the lines of How do I ensure that figures appear in the section they're associated with?, but slightly different. I have a figure that occupies a full page. By default, LaTeX ...
7
votes
1answer
575 views
Get BibTeX to ignore citation numbering in a figure caption
Here's the problem.
I have the main text of a document which includes a citation late in the document, say \cite{ref20}.
One of my figure captions has in it, the \cite{ref20}. What happens is that ...
