[texhax] controlling table locations
Thomas Schneider
schneidt at mail.nih.gov
Wed May 14 05:35:51 CEST 2014
Folks:
One normally controls table locations like this:
\begin{table}[p] % the table goes to a page at the end of the document
...
\end[table}
\begin{table}[h] % the table goes to the location on the current page.
...
\end[table}
I wanted to be able to switch between these two for many tables at
once, so I made a command:
\newcommand{\tablelocation}{p}
and used it:
\begin{table}[\tablelocation] % the table goes to the top of the current page!
...
\end[table}
Switching to
\newcommand{\tablelocation}{h}
LaTeX still put the table at the top of the current page.
Is there a way to do this?
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)
More information about the texhax
mailing list