This commit is contained in:
12
convert.sh
Normal file
12
convert.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <markdown-file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
input="$1"
|
||||
output="${input%.md}.pdf"
|
||||
|
||||
pandoc -V geometry:margin=1cm --pdf-engine=xelatex "$input" -o "$output"
|
||||
|
||||
Reference in New Issue
Block a user