Problem with LaTeX hyperref package

  • Context: LaTeX 
  • Thread starter Thread starter toam
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion revolves around issues related to the LaTeX hyperref package, specifically its functionality when compiling documents using different methods (latex to dvi versus pdflatex). The scope includes technical troubleshooting and solutions related to document compilation in LaTeX.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant reports issues with the hyperref package not providing links when compiling with latex to dvi and then using dvi2pdf.
  • The same participant notes that the links work correctly when using pdflatex to compile the document.
  • A later reply suggests a solution by modifying the package inclusion from \usepackage{hyperref} to \usepackage[dvipdfm]{hyperref}, which resolves the linking issue when using dvipdfm.
  • Another participant reiterates the solution provided, confirming that the modified package inclusion works.
  • One participant mentions that it is possible to use pdflatex if .eps images are converted to .pdf using the ps2pdf utility.

Areas of Agreement / Disagreement

Participants generally agree on the solution involving the modified package inclusion for resolving the linking issue. However, there is a disagreement regarding the necessity of using pdflatex, as one participant suggests a workaround for including .eps images.

Contextual Notes

The discussion does not resolve the broader implications of using pdflatex versus latex with respect to image formats and document compilation methods.

toam
Messages
13
Reaction score
0
I am having some trouble with the hyperref package in terms of it not actually providing links to my internal references.

If I use the pdflatex command to compile my document to a pdf, the links work fine.

However if I use the latex command to compile to a dvi and then dvi2pdf (or whatever this command is actually called) to create the pdf, there will be no linking at all.

Since I am including .eps images, I cannot use pdflatex.

Is there any way to get the hyperref package to work correctly when using latex -> dvi2pdf rather than pdflatex?


Thanks in advance...
 
Physics news on Phys.org
Ok I managed to solve the problem.


For anyone else that might be interested:

I was including the package with:
\usepackage{hyperref}


However if I include it with:
\usepackage[dvipdfm]{hyperref}


Then it works when I use dvipdfm to convert to pdf.
 
toam said:
Ok I managed to solve the problem.


For anyone else that might be interested:

I was including the package with:
\usepackage{hyperref}


However if I include it with:
\usepackage[dvipdfm]{hyperref}


Then it works when I use dvipdfm to convert to pdf.
great, you have solved the problems yourself.
 
toam said:
Since I am including .eps images, I cannot use pdflatex.

You can use pdflatex if you convert your .eps images to .pdf files using the ps2pdf utility that comes bundled with ghostscript.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 12 ·
Replies
12
Views
3K