Currently I'm using ReST like
see `Figure 2.1`__.
__
.. figure:: images/first_figure
:width: 80%
:align: center
First Figure
to add in linked figures. Unfortunately this requires hard-coded figure numbers and generates LaTeX like
see \hyperref[id1]{Figure 2.1}.
\begin{figure}
\phantomsection\label{id1}
\noindent\makebox[\textwidth][c]{\includegraphics[width=0.800\linewidth]{images/first_figure}}
\caption{First Figure}
\end{figure}
Does anyone know of a way to get rst2latex.py to generate a first line more like
see \hyperref[id1]{Figure \ref*{id1}}.
or something similar so that the numbers are auto-generated instead of being hard-coded.
rst2latex.py, the deficiency is really in thelatex2eparser indocutils. One way to do it would be to write a script to replace the float names after the fact, if there's some relation between the autogenerated labels and the figure names. But that of course is just an ugly hack that will probably not work 100% reliably. – Martin Tapankov Mar 9 '11 at 6:22