#!/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' \ -V 'sansfont:Iosevka Aile' \ -V 'monofont:Iosevka' \ -V 'geometry:margin=1in' \ -f "$1" -t "$3" \ -o "$4" "$2"