Text Formattinghyperref - problem with format

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
palazzo
Posts: 4
Joined: Mon Oct 25, 2010 6:06 am

hyperref - problem with format

Post by palazzo »

Hi, I am trying to use hyperref. For some reason, if I use \usepackage[hypertex]{hyperref}, things are underlined. (this doesn't happen if I use \usepackage[hypertex]{hyperref} and compile using dvi pdf, but the link doesn't work...)

Please see example below.

Ignacio

Here is an example:


\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage[longnamesfirst,nonamebreak]{natbib}
\usepackage[hypertex]{hyperref}

\hypersetup{ pdftitle =
The title of my PDF,
pdfauthor =
My name,
pdfsubject=
The subject,
pdfkeywords =
keyword1 keyword2 keyword3}

\hypersetup{
colorlinks = true,
linkcolor = red,
anchorcolor = red,
citecolor = black,
filecolor = red,
pagecolor = red,
urlcolor = red
}
\begin{document}
\ref{equat}

\begin{equation}
4+2=6
\label{equat}
\end{equation}

\end{document}

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hyperref - problem with format

Post by localghost »

Read Section 1 (Introduction, p. 1ff) of the hyperref manual to learn what the »hypertex« option is for. Compile via PS to PDF and see what happens. Consider to drop this option.


Thorsten
Post Reply