summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-08-16 12:01:20 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-08-16 12:01:20 +0200
commitf4687993c53a5339e40c279f6a764b0c2056af1f (patch)
treebd96e2baf01d8bb44f32445a5420959d361398d4
parent567662d5b09718d3225b131ca3d016ee9efcab81 (diff)
downloadorg-mode-f4687993c53a5339e40c279f6a764b0c2056af1f.tar.gz
ox-latex: Fix links to files with name matching an image type
* lisp/ox-latex.el (org-latex-inline-image-rules): Ensure caracterization happens on extension only.
-rw-r--r--lisp/ox-latex.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index e5e9c80..32d1d43 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -738,8 +738,9 @@ environment."
:safe #'stringp)
(defcustom org-latex-inline-image-rules
- `(("file" . ,(regexp-opt
- '("pdf" "jpeg" "jpg" "png" "ps" "eps" "tikz" "pgf" "svg"))))
+ `(("file" . ,(rx "."
+ (or "pdf" "jpeg" "jpg" "png" "ps" "eps" "tikz" "pgf" "svg")
+ eos)))
"Rules characterizing image files that can be inlined into LaTeX.
A rule consists in an association whose key is the type of link
@@ -752,8 +753,7 @@ pdflatex, pdf, jpg and png images are OK. When processing
through dvi to Postscript, only ps and eps are allowed. The
default we use here encompasses both."
:group 'org-export-latex
- :version "24.4"
- :package-version '(Org . "8.0")
+ :package-version '(Org . "9.4")
:type '(alist :key-type (string :tag "Type")
:value-type (regexp :tag "Path")))