mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-05 05:38:21 -05:00
21 lines
387 B
Bash
Executable File
21 lines
387 B
Bash
Executable File
#!/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 Slab' \
|
|
-V 'sansfont:Iosevka Aile' \
|
|
-V 'monofont:Iosevka' \
|
|
-V 'geometry:margin=1in' \
|
|
-f "$1" -t "$3" \
|
|
-o "$4" "$2"
|