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

--max-iterations N should not exit with error status #69

Open
dandavison opened this issue Oct 17, 2019 · 0 comments
Open

--max-iterations N should not exit with error status #69

dandavison opened this issue Oct 17, 2019 · 0 comments

Comments

@dandavison
Copy link

When I specify --max-iterations N, my sense is that, if the document compiles without error over the N iterations, then latexrun should exit with process exit code 0, regardless of whether the iterations have converged to stability. I.e. I have asked it to run N times, presumably because I was prepared to accept non-convergence, and it did so successfully, so that should be success. However, latexrun exits with an error status and an error message. I suggest this should be a warning message and success status.

$ cat z.tex 
\documentclass{article}
\begin{document}
hello
\end{document}

$  latexrun z.tex && echo $?
0

$ latexrun --max-iterations 1 z.tex ; echo $?
error: files are still changing after 1 iterations; giving up
1
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

1 participant