From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Include heading title in HTML section-number cross-reference, like LaTex \nameref? Date: Sun, 09 Feb 2014 23:36:14 +0100 Message-ID: <87txc7ncbl.fsf@gmail.com> References: <87k3d5nuiw.fsf@gmail.com> <87fvnsofiq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCcyk-0000Nd-SC for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:36:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCcye-0008Dv-WA for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:35:58 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:43219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCcye-0008Dm-PQ for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:35:52 -0500 Received: by mail-wi0-f179.google.com with SMTP id hn9so2277935wib.6 for ; Sun, 09 Feb 2014 14:35:52 -0800 (PST) In-Reply-To: (D. C. Toedt's message of "Sun, 9 Feb 2014 06:08:17 -0600") 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: "D. C. Toedt" Cc: emacs-orgmode@gnu.org "D. C. Toedt" writes: > --- is there a comparable one (or arguments) to get the section number of a > heading? There is `org-export-get-headline-number' but is only accessible during export, so it cannot be called from a macro or a Babel block. Anyway, in your case, you just need to use [[#custom-id]]. Regards, -- Nicolas Goaziou