Text Formattinghyperref, titleref | Working Combination

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

hyperref, titleref | Working Combination

Post by svend_tveskaeg »

Hi all.

Consider the following MWE:

Code: Select all

\documentclass{article}

\usepackage{titleref}
%\usepackage{hyperref}

\begin{document}

Consider \titleref{para:1}--\titleref{para:2}.

\paragraph{Exercise~1}
\label{para:1}
Horse.

\paragraph[2]{Exercise~2}
\label{para:2}
Goat.

\end{document}
I would like to make the text ``Consider Exercise 1--2'' interactive, but I cannot use hyperref with the above example.

How do I do this?

Thank you in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

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

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

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

hyperref, titleref | Working Combination

Post by svend_tveskaeg »

I see now, that nameref does the trick.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply