commit 74d4228aad7b40bee52265b900a3bb8712bf9748
parent f04843c5afb55140aa4771509f13ec0e97ea229b
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date: Sat, 6 May 2023 21:00:09 -0300
resolve merge conflict
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/md2pdf b/md2pdf
@@ -8,7 +8,8 @@ usage() {
filename=$(echo "$1" | sed 's/\.[^.]*$//')
extension=$(echo "$1" | sed 's/^.*\.//')
-style_path="/home/mk/dox/sync/sync/md2pdf/style.tex"
+md2pdf_path=$(dirname $(readlink -f $0))
+style_path=$md2pdf_path"/style.tex"
output="$filename.pdf"
input_format="markdown+startnum+tex_math_dollars+implicit_figures"\
"+grid_tables+backtick_code_blocks"
@@ -26,7 +27,7 @@ pandoc --pdf-engine=xelatex \
-H $style_path \
-f $input_format \
--shift-heading-level-by=-1 \
- -o $output \
+ -o "$output" \
"$filename".md
[ $? -ne 0 ] && exit 3