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

TikZ Guide Lines Extending Over a Page #23

Open
hayekn opened this issue Jan 26, 2025 · 4 comments
Open

TikZ Guide Lines Extending Over a Page #23

hayekn opened this issue Jan 26, 2025 · 4 comments

Comments

@hayekn
Copy link

hayekn commented Jan 26, 2025

When a guide line should span more than one page (e.g. for a for each do loop across the bottom and top of adjacent pages), it is placed entirely in the last page, and extends to the bottom of this page.

@chrmatt
Copy link
Owner

chrmatt commented Jan 27, 2025

Can you provide a minimal example demonstrating the issue? It works as expected for me with the following:

\documentclass{article}
\usepackage{algpseudocodex}

\begin{document}
    \begin{algorithmic}
        \For{$n = 1, \dots, 10$}
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
            \State test
        \EndFor
    \end{algorithmic}
\end{document}

@hayekn
Copy link
Author

hayekn commented Jan 27, 2025

Sure-- it seems one overrunning for loop yields no indent guide at all, and a pair of nested overrunning for loops yields the bug above. Here's an example for the latter

\documentclass{article}
\usepackage{algpseudocodex}
\begin{document}
test\vspace{18cm}
\begin{algorithmic}
	\For{$n = 1 \to k$}
		\State Something
		\For{$m = 1 \to l$}
		\State Something
		\State Something
	\EndFor
	\EndFor
\end{algorithmic}	
\end{document}

@hayekn
Copy link
Author

hayekn commented Jan 27, 2025

Update-- I tried in Overleaf (was using TeXstudio) and it appears fine there. Hm

@chrmatt
Copy link
Owner

chrmatt commented Jan 27, 2025

I also cannot reproduce the error with the newest version of TeX Live. Make sure all your packages are up to date.

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