algpseudocodex icon indicating copy to clipboard operation
algpseudocodex copied to clipboard

Unevenly spaced line numbers for empty line

Open Krzmbrzl opened this issue 3 years ago • 1 comments

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: image

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.

Krzmbrzl avatar May 12 '22 13:05 Krzmbrzl

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

chrmatt avatar May 15 '22 19:05 chrmatt