[texhax] create float based on longtable?

Ulrike Fischer news3 at nililand.de
Mon Feb 1 19:48:54 CET 2010


Am Thu, 28 Jan 2010 00:43:59 +0100 schrieb Christoph Haug:

> \newenvironment{exbox}%
> {
> \small
> \centering
> \begin{tabular}[1]{|m{0.9\textwidth}|}
> \hline
> \smallskip
> }
> %
> {
> \smallskip
> \\\hline
> \end{tabular}
> }
> 
> Actually, the \centering doesn't work and I dont understand why...

Because \centering works on paragraphs and you are closing the group
before ending the paragraph. Put \par after \end{tabular}


-- 
Ulrike Fischer 



More information about the texhax mailing list