Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!keele!seq1.kl.ac.uk!phd11 From: phd11@seq1.kl.ac.uk (A. Mcdonald) Newsgroups: comp.text.tex Subject: Tables/Figures staying put WITH label Message-ID: <1028@keele.keele.ac.uk> Date: 22 Mar 91 12:14:52 GMT Sender: phd11@seq1.keele.ac.uk Reply-To: phd11@seq1.kl.ac.uk (A. Mcdonald) Organization: University of Keele, England Lines: 45 A while back, this was posted to the net.... In article <9162@castle.ed.ac.uk> robin@castle.ed.ac.uk (R C Smith) writes: >In LaTeX how do you stop figures floating around apart from >\begin{figure}[h] > >I want to know exactly where they appear as I use a \special to include >graphics in the output, but the area where I put the picture is not the >same when I left the space for it....very annoying. > >Ideally I would like a macro which would also allow the special to float >to the same page as the figure has floated to. ... and the response from Timothy Van Zandt was .... The whole point of the figure and table envirnments is to float their contents. Just leave out the \begin{figure}, \end{figure} and \caption{}, and whatever was in the environment is placed right where you put it in the source file. You can then add a caption if you want. If a special is placed inside the figure environment, it should float with everything else, although specials are special, so it depends. Tim ... Now the thing is this works beautifully, BUT I don't seem to be able to get any kind of referencing using \label, you need to be in a figure or table or equation environment to get anything to happen (apart that is if you're in the middle of a section). My point is this:- if you then set up one of these environments then you're back where you started with everything floating about... Also, trying something like \begin{table} \caption{A test caption} \end{table} directly after the \begin{tabular}...\end{tabular} doesn't seem to help. Can a guru help? thanks, Tony.