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
Graphics, Figures & Tables ⇒ 'above' or 'below' reference to figure
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
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.
The same is true for tables.
Best regards and welcome to the board
Thorsten
Code: Select all
\begin{figure}[!ht]
% body of the figure
\caption{figure title}
\end{figure}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10