LaTeX forum ⇒ Page LayoutHyperlinks 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

Hyperlinks cannot be clicked

Postby Magnolis » Mon Apr 08, 2013 9:13 am

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:
  1. \section{Name of the section}


Here is my preamble.
  1. \documentclass[12pt, a4 paper]{article}
  2.  
  3. \usepackage[italian]{babel}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage[T1]{fontenc}
  6. \usepackage{amsfonts}
  7. \usepackage{amsthm}
  8. \usepackage{amssymb}
  9. \usepackage[top=1.0cm, left=2cm, right=2cm, bottom=1cm, includefoot]{geometry}
  10. \usepackage{latexsym}
  11. \usepackage[usenames]{color}
  12. \usepackage{fancyhdr}
  13. \usepackage{graphicx}
  14. \usepackage{pdfsync}
  15. \usepackage{epsfig}
  16. \usepackage{wrapfig}
  17. \usepackage{txfonts}
  18. \usepackage{mhchem}
  19. \usepackage{mathtools}
  20. \usepackage{mathcomp}
  21. \usepackage{slashed}
  22. \usepackage{makeidx}
  23. \usepackage{mathrsfs}
  24. \usepackage{braket}
  25. \usepackage{dsfont}
  26. \usepackage{tocbibind}
  27. \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.

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby tom » Thu Apr 18, 2013 12:22 pm

Hi!

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

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

Link:
BBcode:
HTML:
Hide post links
Show post links

Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm

Postby Magnolis » Mon Apr 22, 2013 8:41 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.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Mon Apr 22, 2013 9:29 pm

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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

Magnolis
Posts: 13
Joined: Wed Apr 04, 2012 1:45 pm

Postby Magnolis » Thu Apr 25, 2013 6:42 pm

.tex and .pdf uploaded.
  1. \documentclass[12pt, a4 paper]{article}
  2.  
  3. \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}
  4.  
  5. \begin{document}
  6. \tableofcontents
  7. \section{Section}
  8. \subsection{Subsection}
  9. \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 118 times
Pdf example.tex
(223 Bytes) Downloaded 87 times

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Thu Apr 25, 2013 7:06 pm

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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Page Layout”

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests