mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-20 14:48:36 +00:00
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.
This commit is contained in:
parent
c4cad9f80b
commit
872516b8f9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue