summaryrefslogtreecommitdiff
path: root/ar/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-07-05 22:19:53 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-07-05 22:19:53 +0900
commitdc8ae0ed238a09dbd33d112452506fd9bc05dcfc (patch)
treecaa9ea866c8c415fb9afb93a19e86ab9a3a05d69 /ar/.local
parentace7642849316e87adc68ffc9e2b26434e4b6bae (diff)
updates
Diffstat (limited to 'ar/.local')
-rwxr-xr-xar/.local/bin/compiler12
1 files changed, 7 insertions, 5 deletions
diff --git a/ar/.local/bin/compiler b/ar/.local/bin/compiler
index bcfb319..bf8b443 100755
--- a/ar/.local/bin/compiler
+++ b/ar/.local/bin/compiler
@@ -53,11 +53,13 @@ java) javac "$file" && echo "${base##*/}" | xargs java ;;
js) node "$file" ;;
m) octave "$file" ;;
md)
- { [ -x "$(command -v lowdown)" ] && [ -x "$(command -v groff)" ]; } &&
- lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" ||
- { [ -x "$(command -v groffdown)" ] && [ -x "$(command -v groff)" ]; } &&
- groffdown -i "${file}" | groff -T pdf >"${base}.pdf" ||
- pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}"
+ pandoc "$file" -s --pdf-engine=xelatex -V geometry:margin=2cm -o "${base}.pdf" || {
+ [ -x "$(command -v lowdown)" ] &&
+ lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" ||
+ [ -x "$(command -v groffdown)" ] &&
+ groffdown -i "${file}" | groff -T pdf >"${base}.pdf" ||
+ pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}"
+ }
;;
me) groff -Gktes -b -w w -me -T ps "$file" | ps2pdf - >"$base".pdf ;;
mm) groff -Gktes -b -w w -mm -mpic -T ps "$file" | ps2pdf - >"$base".pdf ;;