Add formatting docker image

This commit is contained in:
2026-01-09 14:11:07 +01:00
parent 5b6f13ee80
commit 9b1947c521
4 changed files with 49 additions and 0 deletions

17
latex/fmt/format.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
if [ ! "$1" == "" ]; then
cd $1
fi
echo "Formatting directory $(pwd)"
files=$(find . -type f | grep "\.tex")
idx=1
total=$(echo "$files" | wc -l)
for file in $files; do
echo "Processing file $idx / $total"
latexindent -s -w $file
((idx++))
done