summaryrefslogtreecommitdiff
path: root/lisp/ox-latex.el
diff options
context:
space:
mode:
authorS├ębastien Delafond <sdelafond@gmail.com>2014-10-13 11:01:35 +0200
committerS├ębastien Delafond <sdelafond@gmail.com>2014-10-13 11:01:35 +0200
commit4dc4918d0d667f18f3d5e3dd71e6f117ddb8af8a (patch)
tree6a236a48e820fe956c9737b967f9517e09a9137e /lisp/ox-latex.el
parentf57fab831252ebe5037ceabe9843623c4bd14f15 (diff)
Imported Upstream version 8.2.10
Diffstat (limited to 'lisp/ox-latex.el')
-rw-r--r--lisp/ox-latex.el5
1 files changed, 3 insertions, 2 deletions
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