Skip to content

Commit 7ea1d66

Browse files
committed
Minor fix for MD -> PDF (using LaTeX) [fix]
1 parent 252eadd commit 7ea1d66

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/make_pdf_through_latex

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function pandoc_convert2pdf() {
113113
if $debug && ! $creating_tex
114114
then
115115
file_tex="${file_out%.pdf}.tex"
116-
# NOTE This is required because of the recursive call below
116+
# NOTE This is required because of the recursive call below,
117117
# overwriting file_out, because in BASH,
118118
# all variables have global scope.
119119
file_pdf="$file_out"
@@ -125,12 +125,10 @@ function pandoc_convert2pdf() {
125125
# This would make sense, but pandoc fares better
126126
# with md->pdf then with md->tex->pdf :/
127127
#file_in="$file_tex"
128-
file_in="$file_md"
129-
else
130-
file_in="$file_md"
131-
pandoc_extra+=("--from=markdown")
132-
pandoc_extra+=("--markdown-headings=atx")
133128
fi
129+
file_in="$file_md"
130+
pandoc_extra+=("--from=markdown")
131+
pandoc_extra+=("--markdown-headings=atx")
134132

135133
if $creating_tex
136134
then

0 commit comments

Comments
 (0)