@@ -22,6 +22,7 @@ app_name="Make PDF through Latex"
2222script_name=" $( basename " $0 " ) "
2323# parameters
2424h1_page_breaks=$( _movedo_shell_var_to_bool " ${MVD_H1_PAGE_BREAKS:- true} " )
25+ implicit_figures=$( _movedo_shell_var_to_bool " ${MVD_IMPLICIT_FIGURES:- false} " )
2526debug=$( _movedo_shell_var_to_bool " ${MVD_DEBUG:- false} " )
2627individual=$( _movedo_shell_var_to_bool " ${MVD_INDIVIDUAL_PDFS:- $(_movedo_shell_var_to_bool " ${MVD_INDIVIDUAL:- false} " )} " )
2728
@@ -43,6 +44,9 @@ function print_help() {
4344 echo " Equivalent to command-line: MVD_INDIVIDUAL=1"
4445 echo " --mvd-no-h1-page-breaks Do not insert page breaks before level 1 headers."
4546 echo " Equivalent to command-line: MVD_H1_PAGE_BREAKS=0"
47+ echo " --mvd-implicit-figures Use Pandocs implicit_figures option (on Markdown)."
48+ echo " This gives paper-ish results,"
49+ echo " with images appearing \" all over the place\" ."
4650 echo " Examples:"
4751 echo " $script_name --mvd-individual"
4852}
6872 --mvd-no-h1-page-breaks)
6973 h1_page_breaks=false
7074 ;;
75+ --mvd-implicit-figures)
76+ implicit_figures=true
77+ ;;
7178 --mvd-* )
7279 # Ignore this option; it is used in other MoVeDo scripts
7380 _movedo_common_arg_has_value " $arg " && shift
@@ -127,7 +134,12 @@ function pandoc_convert2pdf() {
127134 # file_in="$file_tex"
128135 fi
129136 file_in=" $file_md "
130- pandoc_extra+=(" --from=markdown" )
137+ if $implicit_figures
138+ then
139+ pandoc_extra+=(" --from=markdown" )
140+ else
141+ pandoc_extra+=(" --from=markdown-implicit_figures" )
142+ fi
131143 pandoc_extra+=(" --markdown-headings=atx" )
132144
133145 if $creating_tex
0 commit comments