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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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