<div dir="ltr"><div>Jerry wrote</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I work for a municipality. I need to create several documents that need to be numbered in consecutive order, i.e., SWI-100, SWI-101, SWI-102, etcetera. <br></blockquote><div><br></div><div>Let's suppose you need to create files SWI-100.pdf, SWI-101.pdf, etc. This is a sensible naming convention if you're storing the files, say for delivery on a website.</div><div><br></div><div>So why not create files SWI-100.tex, SWI-102.tex etc such that SWI-100.pdf is the output of running SWI-100.tex etc.</div><div> </div><div>By the way, you might find \jobname useful, as in</div><div><br></div><div>$ tex story<br>This is TeX, Version 3.14159265 (TeX Live 2019) (preloaded format=tex)<br>(/usr/local/texlive/2019/texmf-dist/tex/plain/knuth-lib/story.tex [1])<br>*\immediate\write16{\jobname}<br>story<br></div><div><br></div><div>best wishes</div><div><br></div><div>Jonathan</div><div> </div></div></div>