Graphics, Figures & Tables'above' or 'below' reference to figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
craq
Posts: 6
Joined: Tue Jul 28, 2009 1:01 pm

'above' or 'below' reference to figure

Post by craq »

Hi,
is it possible to use a reference which automatically updates the word 'above' or 'below' depending on where a figure actually ends up in the final compilation? (As in 'see figure 2.1 below'.) Not just because LaTeX places floats somewhat unpredictably, but I might decide to put things in a different order later. I know I can get a page reference with \vref, but I like the above/below method.

I'm a new user, but MS Word can do this so I hope LaTeX can too!

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

'above' or 'below' reference to figure

Post by localghost »

You could avoid that by omitting these additional words in your references. The reader will find the referred figure any way. Just make sure the figure and its discussing text are placed together as close as possible by using the right placement parameters for the figure environment.

Code: Select all

\begin{figure}[!ht]
  % body of the figure
  \caption{figure title}
\end{figure}
The same is true for tables.


Best regards and welcome to the board
Thorsten
Post Reply