3

None of the links I create work in the sense that they're not clickable. The preamble is this.

\documentclass[a4paper,12pt,twoside]{article}
\usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{braket}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{color}
\linespread{1.2}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=green,
    filecolor=black,
    linkcolor=blue,
    urlcolor=blue
}
\hypersetup{linktocpage}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
\newtheorem{mydef}{Definition}
 \numberwithin{equation}{subsection}
 \numberwithin{mydef}{subsection}
\newtheorem{thm}{Theorem}
\numberwithin{thm}{subsection}

\title{test}
\author{test}

\begin{document}
9
  • 1
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – user31729
    Jan 1, 2015 at 12:44
  • Are you using latex or pdflatex/xelatex/lualatex?
    – user31729
    Jan 1, 2015 at 12:45
  • 1
    Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?
    – cfr
    Jan 1, 2015 at 12:45
  • 1
    @user69751: Please add that \maketitle... stuff to your post above
    – user31729
    Jan 1, 2015 at 12:51
  • 1
    Is there any particular reason for not using pdflatex directly?
    – egreg
    Jan 1, 2015 at 16:02

1 Answer 1

6

I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:

\documentclass[a4paper,12pt,twoside]{article}
%    \usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea} 
    \usepackage{amsmath} 
    \usepackage[utf8]{inputenc} 
    \usepackage[T1]{fontenc} 
    \usepackage{hyperref} 
\hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue } 
\begin{document}
    \begin{equation}\label{eq:1}
    1+1=2
    \end{equation}

\newpage
Does hyperref work? Of course, see \eqref{eq:1}.

\end{document}

For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .