[texhax] controlling table locations

Thomas Schneider schneidt at mail.nih.gov
Wed May 14 20:15:41 CEST 2014


Uwe:

Thanks to you and Lars for the various suggestions.  I boiled that
down to an actual working example.

> 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}
?
! Emergency stop.
-----

I've attached a complete functioning example.

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  Gene Regulation and Chromosome Biology Laboratory
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at mail.nih.gov
  http://schneider.ncifcrf.gov (current link)
  http://alum.mit.edu/www/toms (permanent link)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: controltables.tex
Type: application/x-tex
Size: 2050 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20140514/d6bdab8c/attachment.tex>


More information about the texhax mailing list