From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kyeong Soo (Joseph) Kim" Subject: Re: Changed behaviours of LaTeX exporter in version 8.0+ Date: Wed, 1 Oct 2014 17:39:24 +0800 Message-ID: References: <87lhpg3o60.fsf@berkeley.edu> <8738bn391c.fsf@berkeley.edu> <87mw9rlk6h.fsf@nicolasgoaziou.fr> <87ppegrae5.fsf@nicolasgoaziou.fr> <87wq8mvr9y.fsf@nicolasgoaziou.fr> <87eguug63v.fsf@gmx.us> <877g0mybzd.fsf@gmx.us> <87ppeewlvt.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113a6d1e790b390504594644 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZGNc-0007kw-ME for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 05:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZGNZ-0004YQ-HM for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 05:39:28 -0400 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:63306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZGNZ-0004Xx-Ay for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 05:39:25 -0400 Received: by mail-qg0-f44.google.com with SMTP id j5so268439qga.17 for ; Wed, 01 Oct 2014 02:39:24 -0700 (PDT) In-Reply-To: <87ppeewlvt.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org --001a113a6d1e790b390504594644 Content-Type: text/plain; charset=UTF-8 On Mon, Sep 29, 2014 at 10:18 PM, Rasmus 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 --001a113a6d1e790b390504594644 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Sep 29, 2014 at 10:18 PM, Rasmus <rasmus@gmx.us> wrote:
<----- snip ---->

It may be documented in chap= ter 4, entitled Hyperlinks.

=C2=A0 =C2=A0http://orgmode.org/org.html#Hyperlinks

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

It does not.
=C2=A0

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

;; LINK points to a headline.=C2=A0 If headlines are numbered
;; and the link has no description, display headline's
;; number.=C2=A0 Otherwise, display description or headline's
;; title.
(headline
=C2=A0(let* ((custom-label
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(and (plist-get info :latex-custom-id-lab= els)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-element-property :CUS= TOM_ID destination)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (label
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(or
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 custom-label
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (format "sec-%s"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (mapconcat =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#'= number-to-string
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-e= xport-get-headline-number destination info)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"= -")))))
=C2=A0 =C2=A0(if (and (not desc)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-export-numbered-headline-p d= estination info))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(format "\\ref{%s}" label)
=C2=A0 =C2=A0 =C2=A0(format "\\hyperref[%s]{%s}" label
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(or desc
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-export-d= ata
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-element= -property :title destination) info))))))
<= br>
As I guessed, you got this information from the source code i= tself.

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

Regards,
Joseph
--001a113a6d1e790b390504594644--