<div dir="ltr"><div>>
To have it wait for say a HUP signal (or USR1) you could just use \directlua{} to require the luaposix module </div><div><br></div><div>rather than a lua module handling posix signals you can tell tex to pause, then send it a newline to stdin to continue</div><div><br></div><div><br></div><div>\documentclass{article}<br>\usepackage{tikz,pstricks,siunitx,unicode-math}% any other big packages<br>\begin{document}<br><br>\pausing=1<br>\pausing=0<br>\input{story}<br>\end{document}</div><div><br></div><div><br></div><div>will pause allowing you to make a new file story.tex if you don't like the original story then will continue to the end if sent a newline, works of course for any tex system, not just luatex,</div><div><br></div><div>David</div><div><br></div></div>