mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:37:47 +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
|
'number-to-string
|
||||||
(org-export-get-headline-number destination info)
|
(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 "\\ref{%s}" label)
|
||||||
(format "\\hyperref[%s]{%s}" label
|
(format "\\hyperref[%s]{%s}" label
|
||||||
(or desc
|
(or desc
|
||||||
|
|
Loading…
Reference in a new issue