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.

A minimal example using the endfloat package fails to compile. Before filing a bug report with the maintainer, please, could you take a look if I'm using it correctly? Perhaps you know a workaround?

\documentclass{article}
\pagestyle{empty}

\usepackage{endfloat}

\begin{document}
  \section{Test}
  \begin{table}
    \begin{tabular}{c}
    123 \\
    \end{tabular}
    \caption{Test}
  \end{table}
  Test
  \processdelayedfloats
\end{document}

The error I'm seeing is:

(./texput.aux) (texput.ttt))
Runaway argument?
! File ended while scanning use of \efloat@xfloat.
<inserted text> 
                \par 
<*> texput.tex

? 

I'm on Ubuntu, current TeXlive.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Not sure it's documented (didn't look:-) but due to the way the package scans for the environment

\end{table}

needs to be on its own at the start of the line so delete the spaces before it in your example.


This is documented in the endfloat manual

10.1 Literal strings

When floats are being read, LATEX is in verbatim mode. Among other things, this means that the lines like

\end{figure}

must appear on lines by themselves without any whitespace before or after them. A complete reimplementation of the most difficult part of the package is required to fix this limitation, but it is among the distant goals I have.

share|improve this answer
    
Sometimes things are so simple... Thank you. –  krlmlr Jul 5 '12 at 12:37

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.