md2tex: place images (figures) nearby
This commit is contained in:
parent
0e069e523a
commit
094ef7a2de
1 changed files with 1 additions and 1 deletions
2
md2tex
2
md2tex
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue