Take the 2-minute tour ×
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.

I use \nameref command in order to link section title. But if section title is too long and truncated it will not linked.

\documentclass[twocolumn]{article}

\usepackage{hyperref}
\begin{document}

\title{Sample File}
\date{}
\maketitle

\section{Comparison with existing hierarchical decomposition methods}
\label{sec1}

This is a simple text. This is a simple text. This is a simple text. This is a simple      text. This is a simple text. This is a simple text. This is a simple text. This is a simple text. This is a simple text. This is a simple text~\nameref{sec1}. This is a simple text. This is a simple text.

This is a simple text.I use \nameref command in order to link section title. But if section title is too long and truncated it will not linked.

\documentclass[twocolumn]{article}

\usepackage{hyperref}
\begin{document}

\title{Sample File}
\date{}
\maketitle

\section{Comparison with existing hierarchical decomposition methods}
\label{sec1}

This is a simple text. This is a simple text. This is a simple text. This
is a simple text. This is a simple text. This is a simple text. This is a
simple text. This is a simple text. This is a simple text. This is a
simple text~\nameref{sec1}. This is a simple text. This is a simple text.
This is a simple text.

\end{document}
share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You can use the optional argument of \section, i.e.

\section[short]{Long tittle}
\label{sec:ref}

In this way \nameref{sec:ref} will use the short title.

share|improve this answer
    
There's a typo in your answer, as the \nameref command that you give starts with a square bracket and ends with a curly bracket. Unfortunately I cannot edit it myself, because the stackexchange system says that I have to change a minimum of 6 characters. Maybe you as the author can change it anyway. –  Benedikt Bauer Oct 8 '12 at 9:01
    
@BenediktBauer Fixed –  Guido Oct 8 '12 at 9:21
add comment

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.