md2tex: place images (figures) nearby
This commit is contained in:
parent
0e069e523a
commit
094ef7a2de
2
md2tex
2
md2tex
@ -118,7 +118,7 @@ function inline(text) {
|
|||||||
gsub(/(^!\[|\].*$)/, "", txt)
|
gsub(/(^!\[|\].*$)/, "", txt)
|
||||||
gsub(/(^!.*\(|\)$)/, "", filenam)
|
gsub(/(^!.*\(|\)$)/, "", filenam)
|
||||||
gsub(/\.(jpg|png|gif|jpeg)$/, "", filenam)
|
gsub(/\.(jpg|png|gif|jpeg)$/, "", filenam)
|
||||||
push("figure")
|
push("figure", "[htp]")
|
||||||
tag("includegraphics[width=\\textwidth]{" filenam "}")
|
tag("includegraphics[width=\\textwidth]{" filenam "}")
|
||||||
tag("caption{" inline(txt) "}")
|
tag("caption{" inline(txt) "}")
|
||||||
next
|
next
|
||||||
|
Loading…
Reference in New Issue
Block a user