emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+


From: Kyeong Soo (Joseph) Kim
Subject: Re: [O] Changed behaviours of LaTeX exporter in version 8.0+
Date: Wed, 1 Oct 2014 17:39:24 +0800

On Mon, Sep 29, 2014 at 10:18 PM, Rasmus <address@hidden> wrote:
<----- snip ---->

It may be documented in chapter 4, entitled Hyperlinks.

   http://orgmode.org/org.html#Hyperlinks

I don't know if this chapter describes export behavior.

It does not.
 

You can skim through org-latex-link if you care.  For headlines this
is the relevant part

;; LINK points to a headline.  If headlines are numbered
;; and the link has no description, display headline's
;; number.  Otherwise, display description or headline's
;; title.
(headline
 (let* ((custom-label
         (and (plist-get info :latex-custom-id-labels)
              (org-element-property :CUSTOM_ID destination)))
        (label
         (or
          custom-label
          (format "sec-%s"
                  (mapconcat
                   #'number-to-string
                   (org-export-get-headline-number destination info)
                   "-")))))
   (if (and (not desc)
            (org-export-numbered-headline-p destination info))
       (format "\\ref{%s}" label)
     (format "\\hyperref[%s]{%s}" label
             (or desc
                 (org-export-data
                  (org-element-property :title destination) info))))))

As I guessed, you got this information from the source code itself.

In this regard I do deeply appreciate your providing this information with all the guidance for contribution to documentation; I will try to contribute per your advice.

Regards,
Joseph

reply via email to

[Prev in Thread] Current Thread [Next in Thread]