Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have read How to protect text from being split by a float? by it does not exactly cover what I want.

I have a text that is interspersed with figures. I do not wish to copy all the figures to the end of the document, but wish that they all appear there, leaving the text proper uninterrupted by them. Isn't there some environment that could do this for me ?

share|improve this question
    
If you just want to place you figures where they are defined within your document, without them actually "floating" to somewhere else, consider using the H float specifier offered by the float package. However, it may be that you're after @lockstep's answer. –  Werner Nov 14 '11 at 23:04

1 Answer 1

up vote 8 down vote accepted

Have a look at the endfloat package. In the following example, I use the nomarkers package option to suppress place markers in the text and the nolists option to supress the creation of (here) a list of figures.

\documentclass{article}

\usepackage[nomarkers,nolists]{endfloat}

\begin{document}

\section{foo}

Some text.

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\end{document}
share|improve this answer
    
Nice ! But for some reason it does not work at all for tables, only for figures :/ –  Norswap Nov 14 '11 at 23:36
    
@Norswap: Do you use just tabular or a similar environment? You have to enclose it into table (the floating environment) as well. –  lockstep Nov 14 '11 at 23:41
    
Actually I fixed that, it's because I used \restylefloat{table} (a leftover from an old file). Anyway now the thing won't compile because it is stuck doing IO on <filename>.ttt (the table repository used by enfloat). <filename>.fff (for figures) is fine tough. I opened the file, and everything seemed to be there. Strange. –  Norswap Nov 14 '11 at 23:44
    
@Norswap: When in doubt, delete all auxiliary files and try again. –  lockstep Nov 14 '11 at 23:45
    
Already done, no improvements. –  Norswap Nov 14 '11 at 23:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.