I know how to create an external hyperlink with customized text.
`My cool link <http://www.asdf.com>`_
But I want to link to an internal reference.
.. _foo:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
So I'd like to do something like
`My cool internal link <foo>`_
But this doesn't work.
Use 2 underscores on text and 1 undescore on link target, example:
When I use one underscore instead of 2, rst2pdf throws an error.
If John's solution doesn't work for you:
Solution:
You just needed to remove the space after your custom title, and before the angle brackets, and use the
:ref:
directive:This works:
This doesn't: