FollieHiyuki-dotfiles/home/.local/bin/pancomp

21 lines
389 B
Plaintext
Raw Normal View History

2021-03-15 19:37:35 -04:00
#!/bin/sh
if [ "$1" = "-h" ]; then
echo "Usage: pancomp [input_format] [input_file] [output_format] [output_file]"
exit 0
fi
if [ $# -ne 4 ]; then
echo "Bruh, I need 4 arguments."
exit 1
fi
pandoc \
--pdf-engine=xelatex \
-V 'mainfont:Iosevka Etoile' \
2021-03-15 19:37:35 -04:00
-V 'sansfont:Iosevka Aile' \
-V 'monofont:Iosevka' \
-V 'geometry:margin=1in' \
-f "$1" -t "$3" \
-o "$4" "$2"