Code: Select all
Code, edit and compile here:
\documentclass{article}\title{Hyperlinks with hyperref}\author{Author's name}\date{4 January 2024}%============================================================% No errors are prompted if the source code below (until next comment) is removed.\usepackage{hyperref}\hypersetup{colorlinks=true,linkcolor=blue,filecolor=magenta,urlcolor=cyan,citecolor=green,pdfpagemode=FullScreen}\urlstyle{same}% No errors are prompted if the source code above (from the previous comment) is removed.%============================================================\begin{document}\maketitle\tableofcontents\clearpage\section{First Section}\label{sec:first-section}This will be an empty chapter and I will put some text here. And I want to reference Section~\ref{sec:first-section}.\end{document}
This is a fresh installation using MiKTex and TexMaker. The same issue didn't appear using the same source code on a different computer system. Similar errors are encountered whenever the hyperref package is used.
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX Error: Erroneous variable \l__socket_hyp/raisedlink...
l.30 \section{First Section}
\label{sec:first-section}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.