Graphics, Figures & Tables ⇒ 'above' or 'below' reference to figure
'above' or 'below' reference to figure
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
'above' or 'below' reference to figure
Code: Select all
\begin{figure}[!ht]
% body of the figure
\caption{figure title}
\end{figure}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10