runtexshebang

A Lua script running LaTeX document files with TeX-style shebang

Version:
0.5
Copyright:
Munehiro Yamamoto
License:
mit
Packaged on:
11/20/2023 08:31:13
Number of files:
2
Size on disk:
4.6 kB

In short, a TeX-style shebang (%#!) is a special kind of TeX comment that you include in your TeX/LaTeX document file to tell the operating system’s shell how to run the file for the rest of the file: %#!lualatex foo.tex \documentclass{article} \begin{document} Hello, {\LaTeX} World! Happy {\TeX}ing. \end{document} If you are using a TeX-style shebang, it must appear on the line that matched 20 lines or less in your LaTeX document, and it has to start with a TeX comment symbol (%) followed by a hash sign (#) and an exclamation mark (!), colloquially known as the bang, hence the name shebang for TeX/LaTeX.