From c6bec9fa33fea0327aa43b374408613a6c5858cf Mon Sep 17 00:00:00 2001 From: gmoneymagna <47875632+gmoneymagna@users.noreply.github.com> Date: Thu, 6 Feb 2020 13:55:31 -0600 Subject: [PATCH] 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` --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index a124d5f0..beb6bcae 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -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" ;;