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

Non-zero exit code caused by lots of \showbox #336

Open
muzimuzhi opened this issue Jan 3, 2024 · 2 comments
Open

Non-zero exit code caused by lots of \showbox #336

muzimuzhi opened this issue Jan 3, 2024 · 2 comments

Comments

@muzimuzhi
Copy link
Contributor

@moewew reported, in #327 (comment), that

Hmm, I'm using lots of \showbox which I think halts the TeX run and probably lets it end with a non-zero exit code. Is there an alternative for that?

@u-fischer then provided a \showstream workaround and @FrankMittelbach suggested providing a new command \SHOWBOX that "encaps that workflow".

\documentclass{article}
\input{regression-test}
\begin{document}
\START
\newwrite\boxout
\immediate\openout\boxout{box.txt}
\showstream\boxout
\setbox0\hbox{duck}
\showbox0
\setbox0\hbox{bär}
\showbox0
\immediate\closeout\boxout
\SHOWFILE{box.txt}
xxx
\end{document}

I'd like to check that the reported problem is reproducible first.

@josephwright
Copy link
Member

You planning to work on this?

@muzimuzhi
Copy link
Contributor Author

muzimuzhi commented Sep 25, 2024

Well actually I even didn't try reproducing it myself. 😒

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