Add formatting docker image
This commit is contained in:
17
latex/fmt/format.sh
Executable file
17
latex/fmt/format.sh
Executable 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
|
||||
Reference in New Issue
Block a user