Fixed failed compiling of .mom documents

1. Groff and pdfmom commands to create pdf files were being halted by a trivial error, a known bug when converting .mom to .pdf so I had the script ignore this error.
2. I replaced the groff command with the more simple `pdfmom`
This commit is contained in:
gmoneymagna 2020-02-06 13:55:31 -06:00 committed by GitHub
parent af6f380c31
commit c6bec9fa33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ textype() { \
case "$file" in
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
*\.mom) refer -PS -e "$file" | pdfmom > "$base".pdf 2>/dev/null ;;
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
*\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;;
*\.tex) textype "$file" ;;