0

I got an error which I was able to trim down to the following minimal working example:

\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{showkeys}
\usepackage{seqsplit}
\renewcommand*\showkeyslabelformat[1]{\seqsplit{#1}}

\begin{document}
\section{\eqref{1}}
\begin{equation}
  \label{2}
\end{equation}
\end{document}

The error message says that:

Undefined control sequence.
\SQSPL@scan ->\futurelet \SQSPL@next 
                                     \SQSPL@scani 
l.13 \end{document}

Basically, I was trying to do something like what's explained here:

Tweak showlabels/showkeys - wrap the label

and found out that it causes this error.

I would appreciate it if anyone can explain to me what is really happening here, and what are possible solutions. Thanks a lot!

6
  • it doesn't error for me in a current tex system. Commented Dec 29, 2023 at 21:48
  • If I replace \label{2} with \label{1}, your test document compiles fine on MacTeX2023, with all updates applied, as well.
    – Mico
    Commented Dec 29, 2023 at 21:52
  • Welcome to tex.se! Try deleting the aux file and compiling your MWE again.
    – schtandard
    Commented Dec 29, 2023 at 21:58
  • Okay, I'll update my TeX release and retry. Btw @Mico that didn't help. Commented Dec 29, 2023 at 22:05
  • 1
    @schtandard That also didn't help, but I'll retry after the update is finished, which is unfortunately painfully slow! Thanks guys for the help anyway. Commented Dec 29, 2023 at 22:16

0

You must log in to answer this question.

Browse other questions tagged .