algpseudocodex
algpseudocodex copied to clipboard
Unevenly spaced line numbers for empty line
The following example
\documentclass{scrartcl}
\usepackage{algpseudocodex}
\begin{document}
\begin{algorithmic}[1]
\State First line
\State
\State Third line
\end{algorithmic}
\end{document}
produces this output using TexLive 2022:

As you can see, the line number for the empty line is off. If some content is added to the second line, then the line numbers are all uniformly spaces as one would expect.
Thanks for reporting, I'll try to fix it as soon as I find some time.
In the meantime, you can as a workaround just add some empty space in the second line, e.g., \State \.