[texhax] controlling table locations

Thomas Schneider schneidt at mail.nih.gov
Wed May 14 05:35:51 CEST 2014


One normally controls table locations like this:

\begin{table}[p] % the table goes to a page at the end of the document

\begin{table}[h] % the table goes to the location on the current page.

I wanted to be able to switch between these two for many tables at
once, so I made a command:


and used it:

\begin{table}[\tablelocation] % the table goes to the top of the current page!

Switching to


LaTeX still put the table at the top of the current page.

Is there a way to do this?


  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