[OS X TeX] Re: MacOSX-TeX Digest #1697 - 04/08/06

Peter S. Burrage peter.s.burrage at Dartmouth.EDU
Sun Apr 9 21:41:15 CEST 2006


On 4/8/06 8:00 PM, "TeX on Mac OS X Mailing List"  wrote:

> I think \setcounter{totalnumber}{1} does what you need.
> 
> Maarten

Sorry the cat got a little too close to the keyboard on the last one...
Let's try again.
-------
Thanks for the response Maarten.

In reading up on \setcounter it does sound like that would be exactly what I
need! Unfortunately it seems to have no effect? If I run this example the
table and the figure show up on the same page:

\documentclass[12pt,a4paper]{article}

\setcounter{totalnumber}{1}

\begin{document}

Text here, yaddah yaddah yaddah (See Table \ref{}).
\begin{table}[!p]
     \caption{\label{Table of Stuff}Caption}
     %\floatmark
     \begin{tabular}{c|c|c}
     ...
     \end{tabular}
\end{table}
Some more body text here (See Figure \ref{}).
\begin{figure}[!p]
     %\includegraphics[width=6in]{fig}
     junk
     \caption{\label{Figure of Stuff.}Caption2.}
     %\floatmark
\end{figure}

\end{document}

Any thoughts where I am going wrong?

Thanks very much,
Pete






------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list