summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-12-07 12:30:19 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-12-07 12:30:19 +0100
commiteab7c4e581a08ec42eb0b679266add4a5da45877 (patch)
tree9da35ffb7e1416c14f7a6c264e1ec1d9e514fad5
parent2ab4540b981ae23a63170826a5278e8f37ac9518 (diff)
downloadorg-mode-eab7c4e581a08ec42eb0b679266add4a5da45877.tar.gz
ox-latex: Fix output for Tikz or PGF images
* lisp/ox-latex.el (org-latex--inline-image): Fix output for Tikz or PGF images.
-rw-r--r--lisp/ox-latex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 65f40fb..ddf9a3d 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2425,7 +2425,8 @@ used as a communication channel."
(format "\\resizebox{%s}{%s}{%s}"
(if (org-string-nw-p width) width "!")
(if (org-string-nw-p height) height "!")
- image-code)))))
+ image-code))
+ (t image-code))))
;; For other images:
;; - add scale, or width and height to options.
;; - include the image with \includegraphics.