mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:07:49 +00:00
ox-latex: Fix link to unnumbered headline
* lisp/ox-latex.el (org-latex-link): Improve test for unnumbered headlines.
This commit is contained in:
parent
60418c5ca8
commit
05d8d76e74
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue