[texhax] controlling table locations

Uwe Lueck uwe.lueck at web.de
Wed May 14 20:44:42 CEST 2014


Thomas Schneider 14. May 2014 20:15:
> [UL:]
> > Sorry, just for my claim "pure LaTeX", I should have used \begin{table}
> > instead of \table and \end{table} instead of \endtable -- Uwe. 
> 
> I find that
> 
> -----
> % choose from
> \newenvironment{swpostable}{\begin{table[h]}}{\end{table}}
> % \newenvironment{swpostable}{\begin{table[p]}}{\end{table}}
> \begin{swpostable}
> ...
> \end{swpostable}
> -----
> 
> fails with this error:
> 
> -----
> ! LaTeX Error: Environment table[h] undefined.
> See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.
> ...
> l.98 \begin{swpostable}

Replacing \table by \begin{table} in my earlier one-step-away-from-pure-LaTeX suggestion 
(properly) results in choosing from

    % \newenvironment{swpostable}{\begin{table}[h]}{\end{table}}
    % \newenvironment{swpostable}{\begin{table}[p]}{\end{table}}

Cheers,

    Uwe.




More information about the texhax mailing list