我有一个正在使用的代码hyperef
,但令我惊讶的是它不起作用。我检查了Hyperref 不起作用[重复]还有这个hyperref 产生的 \label 链接目标不正确。然而,没有一个起作用。
我的代码
%Define symbols for flux, just to make sure it stays consistent throughtout the paper
\def\phie{\ensuremath{\phi_E}}
\def\phib{\ensuremath{\phi_B}}
%Define the derivatives I'll be using, so I don't have to do all the typing every time
\def\dA{\ensuremath{\emph{d}\vec{A}}}
\def\dB{\ensuremath{\emph{d}\vec{B}}}
\def\ds{\ensuremath{\emph{d}\vec{s}}}
\def\dt{\ensuremath{\emph{dt}}}
\def\dphie{\ensuremath{\emph{d}\phie}}
\def\dphib{\ensuremath{\emph{d}\phib}}
\documentclass[10pt,a4paper,draft]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{xcolor}
\colorlet{linkequation}{blue}
\usepackage[colorlinks]{hyperref}
\usepackage[left=1cm,right=1cm,top=1cm,bottom=1.5cm]{geometry}
\author{Bonjour}
\title{Maxwell's Equation}
\begin{document}
\maketitle
\section{Introduction}\label{sec:Introduction}
The properties of electromagnetic fields and waves.
\begin{subequations}
Maxwell's equations:
\renewcommand{\theequation}{\theparentequation.\arabic{equation}}
\begin{align}\phantomsection\label{eq:test}
\nabla \cdot \mathbf{E} &= \frac {\rho} {\varepsilon_0}, \hspace{84pt} \text{Gauss' Law}\\
\nabla \cdot \mathbf{B} &= 0,\hspace{92pt} \text{No magnetic monopoles}\\
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t},\hspace{74pt} \text{Faraday's Law}\\
\nabla \times \mathbf{B} &= \mu_0\left(\mathbf{j} + \varepsilon_0 \frac{\partial \mathbf{E}} {\partial t} \right)\hspace{30pt} \text{Ampère's Law with charge conservation}
\end{align}
In equation \eqref{eq:test}.
end{document}
该链接不是超链接,而是一个普通链接。