## LaTeX forum ⇒ Page Layout ⇒ Hyperlinks cannot be clicked

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm

Hi,

I have problems with links to sections, subsections etc.: in the index, they appear coloured but are not clickable. I use two PDF readers, Sumatra to view the PDF when the LaTeX file is compiled and Foxit Reader to open the PDF in any other case. So I can exclude any problem related to the PDF viewer. I use to insert every section in this simple way:
\section{Name of the section}

Here is my preamble.
\documentclass[12pt, a4 paper]{article} \usepackage[italian]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage[top=1.0cm, left=2cm, right=2cm, bottom=1cm, includefoot]{geometry} \usepackage{latexsym}\usepackage[usenames]{color}\usepackage{fancyhdr}\usepackage{graphicx}\usepackage{pdfsync}\usepackage{epsfig} \usepackage{wrapfig} \usepackage{txfonts}\usepackage{mhchem} \usepackage{mathtools} \usepackage{mathcomp}\usepackage{slashed} \usepackage{makeidx}\usepackage{mathrsfs}\usepackage{braket}\usepackage{dsfont} \usepackage{tocbibind} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}

I think that there must be some kind of incompatibility in my preamble. I tried various combinations but nothing works. Thank you for any help.

Tags:

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am
Contact:
Hi!

I tried running your example and get an error from amsmath:
Command \iint already defined

When I load the txfonts package last, after hyperref, the error disappears and the index is produced correctly.

Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm
Hi, thank you for your answer, but it does not work for me.

I also tried to create a new minimal document (index, 1 section, 1 subsection, and only the hyperref package), same result, with 0 errors and 0 warnings: blue links, not clickable.
I really don't know what to do now.

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
tom wrote:[…] I tried running your example and get an error from amsmath […] When I load the txfonts package last, after hyperref, the error disappears and the index is produced correctly.

This is certainly not the problem. The problem is caused by mathtools (which loads amsmath) and therefore has be loaded before the txfonts package. There are some packages which should be loaded after hyperref, but the aforementioned are not among these.

Magnolis wrote:[…] I also tried to create a new minimal document (index, 1 section, 1 subsection, and only the hyperref package), same result, with 0 errors and 0 warnings: blue links, not clickable. […]

Please attach the PDF output of this sample document along with its LaTeX source to your next post by upload to the forum server. It seems to me that this is not a LaTeX problem but more one of the viewer.

Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm
\documentclass[12pt, a4 paper]{article} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref} \begin{document}\tableofcontents\section{Section}\subsection{Subsection}\end{document}

I compile the .tex file using LaTeX->DVI->Pdf (it's the only working method for me).
Attachments
Pdf example.pdf
Pdf example.tex

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
I can comprehend the problem. A solution can be found in an earlier discussion.
Magnolis wrote:[…] I compile the .tex file using LaTeX->DVI->Pdf (it's the only working method for me).

Why is that the only possible way for you to compile? Can you elaborate?

By the way, the epsfig package is obsolete for a long time.
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1