This commit is contained in:
Kristofers Solo
2023-02-22 22:20:13 +02:00
parent 519493f324
commit 1048bb7f40
16 changed files with 384 additions and 0 deletions

12
.local/bin/getcomproot Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# A helper script for LaTeX/groff files used by `compiler` and `opout`.
# The user can add the root file of a larger project as a comment as below:
# % root = mainfile.tex
# And the compiler script will run on that instead of the opened file.
texroot="$(grep -i "^.\+\s*root\s*=\s*\S\+" "$1")"
texroot="${texroot##*=}"
texroot="${texroot//[\"\' ]}"
[ -f "$texroot" ] && readlink -f "$texroot" || exit 1