md2tex: place images (figures) nearby

This commit is contained in:
Nero 2022-04-07 16:34:57 +00:00
parent 0e069e523a
commit 094ef7a2de

2
md2tex
View File

@ -118,7 +118,7 @@ function inline(text) {
gsub(/(^!\[|\].*$)/, "", txt)
gsub(/(^!.*\(|\)$)/, "", filenam)
gsub(/\.(jpg|png|gif|jpeg)$/, "", filenam)
push("figure")
push("figure", "[htp]")
tag("includegraphics[width=\\textwidth]{" filenam "}")
tag("caption{" inline(txt) "}")
next