Code I use for batch-defining LaTeX macros, which is useful for writing TCS papers.
## Files
-[Batching.tex](https://git.cse.iitb.ac.in/ckamath/Batching/-/blob/master/Batching.tex): the batching engine is defined here, with an MWE explaining the usage. To use in your own project, simply copy the preamble of the file.
-[xournal_batching.tex](https://git.cse.iitb.ac.in/ckamath/Batching/-/blob/master/xournal_batching.tex): if you use [Xournal++](https://xournalpp.github.io/), use can use the batching macros by replacing the [default_template.tex](https://github.com/xournalpp/xournalpp/blob/master/resources/default_template.tex) file in your Xournal++ configuration (in Debian, this lies in `~/usr/share/xournalpp/resources`) with this file. Make sure that:
1. The global template file in Xournalpp preferences (`Edit>Preferences>LaTeX`) points to this file
2. You have installed LaTeX package [standalone](https://ctan.org/pkg/standalone)
-[xournal.tex](https://git.cse.iitb.ac.in/ckamath/Batching/-/blob/master/xournal.tex): an MWE for testing the Xournal++ template