removeproofs script

This commit is contained in:
Luca Lombardo
2024-01-13 16:02:08 +01:00
parent cf473ff4a4
commit d8f480b83d
2 changed files with 30 additions and 4 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 <input_tex_file>"
exit 1
fi
input_file=$1
output_file="${input_file%.tex}_without_proofs.tex"
awk '/\\begin{proof}/, /\\end{proof}/ {next} 1' "$input_file" > "$output_file"
echo "Lines between \\begin{proof} and \\end{proof} have been removed. Output saved to: $output_file"