Generalcross-reference referencing to name and not number

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
wuntzt
Posts: 3
Joined: Fri Mar 28, 2008 12:51 pm

cross-reference referencing to name and not number

Post by wuntzt »

Hello,

I'm using cross references. When I use \label{sec:method} and quote \ref{sec:method}, the result is the number of the section.

How can I get the title of the section as an output (without the number)?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

cross-reference referencing to name and not number

Post by Stefan Kottwitz »

Hi wuntzt,

the titleref package provides that feature. If you need hyperref, use nameref instead.

Stefan
LaTeX.org admin
wuntzt
Posts: 3
Joined: Fri Mar 28, 2008 12:51 pm

Re: cross-reference referencing to name and not number

Post by wuntzt »

Great, thank you!
Post Reply