Text FormattingCan't make DVI hyperlinks with hyperref.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
aaronchall
Posts: 5
Joined: Mon Jul 12, 2010 9:25 pm

Can't make DVI hyperlinks with hyperref.

Post by aaronchall »

Code: Select all

\documentclass[10pt]{article}
\usepackage{color,hyperref}
\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
\hypersetup{colorlinks,breaklinks,
            linkcolor=darkblue,urlcolor=darkblue,
            anchorcolor=darkblue,citecolor=darkblue}
\begin{document}
\href{http://www.fsu.edu/}{Florida State University}, 2000 - 2002
\end{document}
When I run this in Kile using compile to Latex (DVI), and then DVI to PDF, the hyperlinks don't work in either DVI or PDF.

But when compiling with pdfLatex, they do work in just the PDF, but I don't get a DVI doc with hyperlinks. I would like to use DVI because it's an open format.
Ubuntu 9.10, learning LaTeX, mostly muddling through templates and Lyx, tell me to RTFM if you can tell me WHICH FM

Recommended reading 2024:

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

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

aaronchall
Posts: 5
Joined: Mon Jul 12, 2010 9:25 pm

Can't make DVI hyperlinks with hyperref.

Post by aaronchall »

I had done numerous searches, but I'm still a total noob, so sometimes I don't even know how to begin to look. Anyways, I found this link, http://arxiv.org/hypertex/, and it says in the example that it outputs a dvi with this code:

Code: Select all

latex link.tex 
dvips -z link.dvi -o link.ps 
ps2pdf link.ps link.pdf 
And it gives links to the example outputs, but when I click the DVI, I see no links, and no place on the text responds to clicking. But the PDF has clickable links. Is it a problem with my machine? I use Ubuntu 9.10, with Kile, and Evince Document Viewer 2.28.1. Could that be it?

Aaron
Ubuntu 9.10, learning LaTeX, mostly muddling through templates and Lyx, tell me to RTFM if you can tell me WHICH FM
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't make DVI hyperlinks with hyperref.

Post by localghost »

You will have to use the »hypertex« driver option for hyperref (see Section 1 of the manual). Later on, when using »dvips«, make sure that you reset the driver (by simply dropping it).


Thorsten
Post Reply