Created
August 16, 2020 15:35
-
-
Save ljrk0/b82e4755ac741b52942113f7f05afed7 to your computer and use it in GitHub Desktop.
Compile Donald Knuths TeXBook to test TeX distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# run as ./textbook.sh texbook.tex > texbook_nodrm.tex | |
if [ $# -ne 1 ]; then | |
printf "Usage: ./texbook.sh texbook.tex > texbook_nodrm.tex\n" >&2 | |
exit 1 | |
fi | |
texbook="$1" | |
sed '9{b1 :1 s/ \\/\n\\/g}; 7,9{b2 :2 s/^/%/}; 9{b3 :3 s/$/\n\\proofmodefalse/}' "$texbook" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment