From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sacha Chua Subject: Re: TOC local for specified heading and its subheadings (in HTML export)? Date: Sun, 29 Nov 2015 19:46:46 -0500 Message-ID: <87bnacz53d.fsf@sachachua.com> References: <86si3qra8m.fsf@sachachua.com> <87bnae2av0.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3CcR-00060n-RT for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 19:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3CcO-0001QF-EN for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 19:47:03 -0500 Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:33702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3CcO-0001Q7-9S for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 19:47:00 -0500 Received: by iouu10 with SMTP id u10so160163822iou.0 for ; Sun, 29 Nov 2015 16:46:59 -0800 (PST) Received: from sacha-kubuntu (69-196-132-55.dsl.teksavvy.com. [69.196.132.55]) by smtp.gmail.com with ESMTPSA id yr7sm7154553igb.12.2015.11.29.16.46.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Nov 2015 16:46:57 -0800 (PST) Received: from sacha-kubuntu.local.sachachua.com (localhost [127.0.0.1]) by sacha-kubuntu (Postfix) with ESMTPS id 3DD2A4AA547 for ; Sun, 29 Nov 2015 19:46:49 -0500 (EST) In-Reply-To: <87bnae2av0.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 28 Nov 2015 20:16:19 +0100") 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: emacs-orgmode@gnu.org Rasmus writes: Hello, Rasmus, all! > "id:headline" is a special type of links (see org-id.el). A reference to > a custom-ids is typically prefixed by "#" in Org, e.g. =E2=80=99[[#headin= g]]=E2=80=99 or Excellent point. I picked id: as a quick and dirty regexp match, but :headline makes more sense. :headline "#headline" will later permit the use of :headline "file.org::#headline" if someone is inclined. =3D) >> + (and (string=3D (org-element-property :CUSTOM_ID element) local-i= d) >> + element))))) > Wouldn=E2=80=99t it better to use org-link-search and get the element at > point? That would definitely be better. I wasn't sure if I could reuse that function at that point, but I'll look into it if I find myself revisiting this hack. > We=E2=80=99d need support across all backends where it makes sense, so I = guess at > least, latex, beamer, odt, html, ascii, texinfo (if possible). I might not get to all of those (I'll tell the list if I do), so consider this open season for anyone who wants to implement it! =3D) I'll see if I have some time to explore all those backends over the next while. I've just shifted back to dual-booting Linux (was formerly just on Windows), so it'll be a little easier for me to try things out. Sacha