[OS X TeX] Referring to arbitrary labels?
peter.frings at agfa.com
peter.frings at agfa.com
Fri Nov 19 10:39:36 EST 2004
on 2004/11/19 10:39, Mohinish Shukla wrote:
> -> Is it possible to have a kind of \refer{sectionlabel} which, instead
> of returning the section NUMBER, returns the section NAME or SHORTNAME?
\nameref seems to work for me. See
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nameref
For example:
\newcommand{\seesec}[1]{%
Section~\ref{sec:#1}:~\textsl{\nameref{sec:#1}}%
}
\subsection{A chapter somewhere} \label{sec:a-label}
... as explained in \seesec{a-label}.
Cheers,
Peter.
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list