Scribble Latex image support (missed an earlier commit)
This commit is contained in:
parent
f88735ef20
commit
cc82d37285
|
@ -249,15 +249,13 @@
|
||||||
(image-element-scale e) fn))]
|
(image-element-scale e) fn))]
|
||||||
[(and (convertible? e)
|
[(and (convertible? e)
|
||||||
(not (disable-images))
|
(not (disable-images))
|
||||||
(convert e 'pdf-bytes))
|
(let ([ftag (lambda (v suffix) (and v (list v suffix)))])
|
||||||
=> (lambda (bstr)
|
(or (ftag (convert e 'pdf-bytes) ".pdf")
|
||||||
(let ([fn (install-file "pict.pdf" bstr)])
|
(ftag (convert e 'eps-bytes) ".ps")
|
||||||
(printf "\\includegraphics{~a}" fn)))]
|
(ftag (convert e 'png-bytes) ".png"))))
|
||||||
[(and (convertible? e)
|
=> (lambda (bstr+suffix)
|
||||||
(not (disable-images))
|
(let ([fn (install-file (format "pict.~a" (cadr bstr+suffix))
|
||||||
(convert e 'png-bytes))
|
(car bstr+suffix))])
|
||||||
=> (lambda (bstr)
|
|
||||||
(let ([fn (install-file "pict.png" bstr)])
|
|
||||||
(printf "\\includegraphics{~a}" fn)))]
|
(printf "\\includegraphics{~a}" fn)))]
|
||||||
[else
|
[else
|
||||||
(parameterize ([rendering-tt (or tt? (rendering-tt))])
|
(parameterize ([rendering-tt (or tt? (rendering-tt))])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user