Sietsch
02-12-2011, 14:02
Hi there,
I'm currently creating manually a "List of Stuff".
To create the link, I just looked into the *.toc file and found a command like:
\contentsline {chapter}{[TEXT OF LINK]}{7}{chapter.1}
[TEXT OF LINK] is automatically marked as a link and colored accordingly.
My question is:
Is it possible to manually exclude some of the text from being linked? For instance, something like this:
\contentsline {chapter}{[\doNotLink{TEXT OF} LINK]}{7}{chapter.1}
Here is a WME:
\documentclass{article}
\usepackage[linkcolor=blue,colorlinks=true]{hyperref}
\begin{document}
\contentsline {section}{All of this text is \emph{linkish}}{1}{section.1}
\newpage
\section{Test}
\end{document}
Thanks,
mkk.
I'm currently creating manually a "List of Stuff".
To create the link, I just looked into the *.toc file and found a command like:
\contentsline {chapter}{[TEXT OF LINK]}{7}{chapter.1}
[TEXT OF LINK] is automatically marked as a link and colored accordingly.
My question is:
Is it possible to manually exclude some of the text from being linked? For instance, something like this:
\contentsline {chapter}{[\doNotLink{TEXT OF} LINK]}{7}{chapter.1}
Here is a WME:
\documentclass{article}
\usepackage[linkcolor=blue,colorlinks=true]{hyperref}
\begin{document}
\contentsline {section}{All of this text is \emph{linkish}}{1}{section.1}
\newpage
\section{Test}
\end{document}
Thanks,
mkk.