TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to make a cross reference to a label of a header with custom text, in sense it's text should differ from the Header text, or it's number or Page (not like the predefined formats in Lyx), something like the the hyperlinks or bookmarks in MS word, and in such a way that i can write the different text for each cross-reference individually, I'm not looking to define a new format for the references.

for Example: the header text is: State and Path functions, I want to make a cross reference to it with text : state function

share|improve this question
up vote 49 down vote accepted

With the package hyperref you can use the optional argument of \hyperref to reference a \label with arbitrary text:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Hello World}
\label{sec:hello}
Reference to \hyperref[sec:hello]{this section}.
\end{document}

Result

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.