ox-latex: Fix link to unnumbered headline

* lisp/ox-latex.el (org-latex-link): Improve test for unnumbered
  headlines.
This commit is contained in:
Nicolas Goaziou 2014-09-22 17:40:55 +02:00
parent 60418c5ca8
commit 05d8d76e74
1 changed files with 2 additions and 1 deletions

View File

@ -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