From 37ff7062874b72bafa99afe661f42653565ed511 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Wed, 11 Sep 2024 04:25:38 +0900 Subject: RESTRUCTURE. Replicate relative paths in public/ --- public/.local/bin/build-latex.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 public/.local/bin/build-latex.sh (limited to 'public/.local/bin/build-latex.sh') diff --git a/public/.local/bin/build-latex.sh b/public/.local/bin/build-latex.sh new file mode 100755 index 0000000..7048246 --- /dev/null +++ b/public/.local/bin/build-latex.sh @@ -0,0 +1,21 @@ +# Build single latex file using xelatex + +if [ $# -ne 1 ]; then + echo "Usage: $(basename "$0") FILE" + exit 1 +fi + +cleanup() { + # cleanup of auxiliary files + rm -f *.aux *.fls *.fdb_latexmk + # rm *.log +} + +xelatex $1 || exit # Initial compilation +#bibtex # Bibliography tool +#xelatex $1 || exit # Incorporate bibliography changes +xelatex $1 || exit # Fix cross-references +#xelatex $1 || exit # 4th run just to be safe +cleanup +echo "## Mispelled words:" +pdftotext "${1%.tex}.pdf" - | hunspell -d en_US -i utf-8 -a | sort | uniq -- cgit v1.2.3