From 4dc4918d0d667f18f3d5e3dd71e6f117ddb8af8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Delafond?= Date: Mon, 13 Oct 2014 11:01:35 +0200 Subject: Imported Upstream version 8.2.10 --- lisp/ox-latex.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/ox-latex.el') diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 5f171da..2c71f7d 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1809,7 +1809,7 @@ INFO is a plist holding contextual information. See ;; description. ((string= type "radio") (let ((destination (org-export-resolve-radio-link link info))) - (when destination + (if (not destination) desc (format "\\hyperref[%s]{%s}" (org-export-solidify-link-text (org-element-property :value destination)) @@ -1842,7 +1842,8 @@ INFO is a plist holding contextual information. See 'number-to-string (org-export-get-headline-number destination info) "-")))) - (if (and (plist-get info :section-numbers) (not desc)) + (if (and (not desc) + (org-export-numbered-headline-p destination info)) (format "\\ref{%s}" label) (format "\\hyperref[%s]{%s}" label (or desc -- cgit v1.2.3