Page LayoutHyperlinks cannot be clicked

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

Hyperlinks cannot be clicked

Post by Magnolis »

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:

Code: Select all

\section{Name of the section}
Here is my preamble.

Code: Select all

\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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Hyperlinks cannot be clicked

Post by tom »

Hi!

I tried running your example and get an error from amsmath:

Code: Select all

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

Re: Hyperlinks cannot be clicked

Post by Magnolis »

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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hyperlinks cannot be clicked

Post by localghost »

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
Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm

Hyperlinks cannot be clicked

Post by Magnolis »

.tex and .pdf uploaded.

Code: Select all

\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
(5.21 KiB) Downloaded 537 times
Pdf example.tex
(223 Bytes) Downloaded 444 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hyperlinks cannot be clicked

Post by localghost »

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.
Post Reply