Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unevenly spaced line numbers for empty line #8

Open
Krzmbrzl opened this issue May 12, 2022 · 1 comment
Open

Unevenly spaced line numbers for empty line #8

Krzmbrzl opened this issue May 12, 2022 · 1 comment
Assignees

Comments

@Krzmbrzl
Copy link

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.

@chrmatt
Copy link
Owner

chrmatt commented May 15, 2022

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 chrmatt self-assigned this May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants