GeneralError prompted when using the Hyperref package.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cbonnici
Posts: 3
Joined: Thu Jan 04, 2024 6:08 pm

Error prompted when using the Hyperref package.

Post by cbonnici »

Hi, I'm using the following code which runs and generates a working PDF file. The file includes the intended hyperlinks and works well.

Code: Select all


\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}

However, the following error is prompted during compilation. As stated in the comments within the source code, the error disappears if the hyperref package is not 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.
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.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Error prompted when using the Hyperref package.

Post by Stefan Kottwitz »

Welcome to the forum!

Can you post the .log file here as an attachment? The attachment link is below the text edit field when writing a post.

Stefan
LaTeX.org admin
cbonnici
Posts: 3
Joined: Thu Jan 04, 2024 6:08 pm

Error prompted when using the Hyperref package.

Post by cbonnici »

Hello Stefan. Thank you for that. I'm attaching the log file.
Attachments
Main.log
(11.4 KiB) Downloaded 324 times
cbonnici
Posts: 3
Joined: Thu Jan 04, 2024 6:08 pm

Error prompted when using the Hyperref package.

Post by cbonnici »

MiKTex was re-installed and the problem seems to be resolved. Probably, it was simply an installation issue, such as relating to the installation of the packages.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Error prompted when using the Hyperref package.

Post by Stefan Kottwitz »

Great, thanks for letting us know!

Stefan
LaTeX.org admin
Post Reply