diff options
author | Bastien Guerry <bzg@altern.org> | 2012-05-17 08:06:58 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-05-17 08:06:58 +0200 |
commit | 872516b8f9378dad95688ec673850163dd824f4d (patch) | |
tree | a26672bef6daf2fc63806e245daf3cf686b24d4a | |
parent | c4cad9f80bc2d581570c572ac4ed0e4c971a6c91 (diff) | |
download | org-mode-872516b8f9378dad95688ec673850163dd824f4d.tar.gz |
New option `org-export-latex-link-with-unknown-path-format'.
* org-latex.el
(org-export-latex-link-with-unknown-path-format): New option.
(org-export-latex-links): Use it.
Thanks to Sébastien Vauban for a preliminary patch for this.
-rw-r--r-- | lisp/org-latex.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 9f58456..0471bb8 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -634,6 +634,12 @@ and `org-export-with-tags' instead." :version "24.1" :type 'string) +(defcustom org-export-latex-link-with-unknown-path-format "\\texttt{%s}" + "Format string for links with unknown path type." + :group 'org-export-latex + :version "24.2" + :type 'string) + (defcustom org-export-latex-inline-image-extensions '("pdf" "jpeg" "jpg" "png" "ps" "eps") "Extensions of image files that can be inlined into LaTeX. @@ -2328,8 +2334,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (insert (save-match-data (funcall fnc (org-link-unescape raw-path) desc 'latex)))) - - (t (insert "\\texttt{" desc "}"))))))) + ;; Unrecognized path type + (t (insert (format org-export-latex-link-with-unknown-path-format desc)))))))) (defun org-export-latex-format-image (path caption label attr &optional shortn) |