{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
204 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
2
votes
1answer
181 views

How to define different spaces below float and non float listing?

I am using listings from the listings-package. I'm having a problem with spaces below the listings. I use both, float- with h and non-float listings. The problem now is, that the spaces below the ...
18
votes
2answers
349 views

How can I detect if I'm inside or outside of a float environment?

I am trying to detect whether I am inside or outside a float. I know the way how caption works. It uses the internal \@captype. But in the example below you see that this test failed by using ...
13
votes
2answers
3k views

Absolute positioning of wrapfig

In Microsoft Word, it is common to create a floating text box, separate from the normal body text, that can be placed anywhere on the page. The body text will then wrap around this text box so ...
11
votes
1answer
5k views

Pseudo code to be spread over multiple pages?

I am writing pseudo code in the algorithmic environment. It is quite long and doesn't fit on one single page. Instead of it continuing on the next page, it is cut off. I tried inserting it into a ...
8
votes
1answer
3k 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 ...
7
votes
1answer
1k 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 ...
4
votes
1answer
242 views

Dedicated pages for figures featuring automatic fit-to-page scaling and automatic portrait/landscape selection

There are some books where you have a couple of pages that contain only a picture with no footer, header or anything like that. I wanted to have something similar although I'd like to keep a uniform ...
4
votes
1answer
1k views

Set up sidewaysfigure to have the bottom of the figure toward the spine

I am typesetting a book. There are a couple figures that are wider than they are tall, and appear too small if placed on a page in the usual fashion. I have found that using the sidewaysfigure ...
10
votes
1answer
747 views

Cite in the caption of a graphic but not in \listoffigures?

Sometimes I'd like to cite the reference in the caption of a graphic. But I want to avoid that this citation is displayed in the \listoffigures. How can I achieve that? Fore example with this code: ...
9
votes
2answers
2k views

Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
9
votes
3answers
11k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
7
votes
1answer
1k views

Figure title in List of Figures

I've got a figure which has several annotations on-image. The figure caption explains these: \caption{Image of my item. (1) Part of the item. (2) Another notable part of the item. (3) Yet another ...
7
votes
5answers
8k views

Table reference

I wrote a long table with a label in a tex file and \input it into my main tex file. The reference in the main tex file to the table, however, does not show the numbering of the table but the one of ...
4
votes
1answer
108 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 ...
3
votes
1answer
88 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, ...
2
votes
1answer
87 views

subfigure placement incorrect with 4 figures

I am having an issue with latex placing my figures incorrectly. I have 4 related plots that I want to appear together as a single figure (with a,b,c,d sub-references). \begin{center} ...
2
votes
1answer
169 views

Force impagination sequence

I want to force my document to be in this order: text tabular image This group is repeated some times; as you can imagine the compiler mix the elements (e.g. text1, tab1, text2, tab2, img1, img2). ...
1
vote
1answer
1k views

Non superscript citations for figures

Is it possible to reference figures like so taken from \emph{ref. \cite{reference}} with non superscript numbers, while leaving the rest of the references in the bulk of the document untouched? ...
48
votes
1answer
1k views

Unusual graphics and caption placement

Here is a picture from an Oxford University Press publication, showing two images a small one at the left and a larger one at the right. The unusual part is that the caption of the right image is also ...
18
votes
2answers
5k views

Beamer Presentation: Figure has no number?

I am giving a presentation and therefore I am using the beamer class. I have included some figures and it works, but there is no number after "Figure". My code: \documentclass{beamer} ...
13
votes
2answers
12k views

Change figure numbering for appendix

I want to the figure counting in my document when the appendix starts, and follow a different pattern than 1, 2, 3... Specifically, I want figures in the appendix to start with A.1 onward, instead of ...
7
votes
3answers
2k views

Putting in MATLAB codes in a box as figures? [duplicate]

how do I put MATLAB codes in a box or deal with them as if they are figures? Is there a way to do it within LaTeX itself? I am currently using the verbatim environment to present my codes and to be ...
6
votes
2answers
7k views

How to put two images next to each other with a) and b) labels?

I want to put two images next to each other and in order to do that I have written these code: \begin{figure}[h] \begin{minipage}{16pc} \includegraphics[width=16pc]{P_1.eps} \caption{\label{fig4} ...
15
votes
3answers
420 views

How to recall a figure without rewriting it

I'm writing a long document and sometimes I need to recall a figure and show it (not just a \ref in the document). Right now every time I need this I rewrite the LaTeX code for showing the figure. Is ...
13
votes
1answer
38k 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 ...
11
votes
1answer
1k views

Placing figure on an even/odd page

I'm writing a two sided document (it will be printed as a book) and I've got two figures which takes up a whole page each. These two figures are related so I want them to be side by side in the ...
8
votes
1answer
12k views

Is it possible to scale an entire \begin{figure}?

I have a bunch of LaTeX-output from Gnuplot which I would really like to leave alone. Is there an easy way of scaling an entire figure? Something like \includegraphics[scale=0.5]{...} but just for ...
7
votes
1answer
242 views

How to have headers, section headings, and figures expand into the margin?

I am interested in the following page layout. How to have headers in margins (up to margin) Is it possible to start section headings from margin How to set figures occupy the margins. I can ...
24
votes
1answer
8k views

Captions for figures in \listoffigures

When I use \listoftables and \listoffigures I get in the list long captions that appear next to the tables/figures. I would like to use short captions for this list which summarize these captions. Is ...
19
votes
1answer
234 views

Reflow text blocks in a page

Friends, I have a simple layout to typeset a songsheet for my parish which consists of two columns provided by the multicol package and a custom environment that simply wraps each song. The following ...
17
votes
1answer
375 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 ...
15
votes
1answer
2k views

Turning off and on images in figures

Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the ...
11
votes
2answers
3k views

How to build and combine sophisticated layouts in figures

How can I get a layout like the one below in my document?                 With this question, I am looking for: An ...
6
votes
1answer
16k views

Creating a table in two column style page

I want to create a table, in a two column style page (IEEEtran) which will range in both columns. Any idea about this issue?
18
votes
4answers
501 views

Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
16
votes
4answers
12k views

Forcing a figure strictly on a separate page

How can a figure be forced to appear alone on a separate page? \begin{figure}[p!] forces it to a separate page, but it does not guarantee that some other small figures (which I'd like to be included ...
12
votes
1answer
791 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 ...
9
votes
3answers
211 views

Is the following layout possible with the subfigure package?

Is it possible to achieve the following layout with the subfigure package (and any other package/command I don't know about): ############# ############## # # # # # pic1 # # ...
7
votes
3answers
2k views

Count number of figures, tables and citations in report class

I'm using report documentclass and trying to use totcount for counting figures, tables and references, but there are two problems: Figures and tables counters are reset for each chapter, so ...
6
votes
1answer
324 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 ...
6
votes
2answers
1k views

Placing two figures (each having subfigures) next two each other

I would like to place two figures, where each figure has subfigures next to each other. I tried with minipage, but tex does not like the \subfigure as Not in outer par mode. Is there any way to place ...
6
votes
1answer
1k views

Wrapping text in enumeration environment around a table

I would like to wrap the text in an enumerate environment around a table, this is my actual situation (sorry for including so much code, but I wanted to give a precise idea of the number of lines in ...
5
votes
2answers
406 views

Color pages in specific sections in LyX

To show the difference between my theoretical an practical part, I want to change the background color of the page during practical sections/parts. Until now I used a new paragraph style, which ...
18
votes
5answers
3k 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 ...
11
votes
1answer
7k views

Include table as a subfigure

Is it possible to include "table code" as a sub-figure (instead of an image) using the package subfig? If so, how?
9
votes
2answers
715 views

How to put an algorithm and a tikz drawing (objects of different type) side-by-side in the same float environment?

I am trying to put an algorithm and a tikz' drawing side-by-side inside a figure environment. I am aware of this question but I would like to have a single caption for them. For instance, in the text, ...
8
votes
5answers
6k views

Spacing around table and figure environments

I've got table and figure environments, some placed "here" with h and some arranged automatically. But all together I don't like the spacing above and below the figure and table environments. I ...
7
votes
1answer
2k views

\parskip inserts extra space after floats (and listings)

This question seems to be a duplicate of How to remove the skip after a listing when "\parskip" is increased with "\baselineskip"? but the answer given there doesn’t work although ...
6
votes
2answers
5k views

Automatic vertical alignment of a single float on a dedicated page

In my large latex document, I have some figures which take a considerable height of the page (80-95%). Latex puts each of these figures alone on a page, aligned on top. I would like to have each ...