From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Meyer Subject: Re: Searching for a headline Date: Sun, 26 Feb 2017 22:46:05 +0100 Message-ID: References: <87efylt1jg.fsf@nicolasgoaziou.fr> <51288adb-b5c7-5850-6a8e-01aa536c43f5@ofosos.org> <8737f0ucs0.fsf@nicolasgoaziou.fr> <8baa10bf-12ce-04b0-f0fd-b6322909433f@ofosos.org> <874lzgg8tr.fsf@nicolasgoaziou.fr> <573a07d1-1d0f-20e0-fc52-eadf5f46955d@ofosos.org> <87wpcces91.fsf@nicolasgoaziou.fr> <87shn0erh0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci6du-0006Sy-Kq for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:46:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci6dr-00055q-Hy for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:46:10 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:52252) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ci6dr-000543-Bh for emacs-orgmode@gnu.org; Sun, 26 Feb 2017 16:46:07 -0500 In-Reply-To: <87shn0erh0.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: emacs-orgmode On 02/26/17 19:28, Nicolas Goaziou wrote: > Since you're writing the back-end, you don't need to > use :completion-function, do you? > > Just write the TOC the way you like. I defined `*org-epub-current-file*' as a special variable and set it in the publish function. Then I extracted the headlines in `org-epub-template' (should find a better place). And this works like a charm. And now I can use the same heading text multiple times and get a proper export. Thank you very much. Cheers, Mark -- Mark Meyer mark@ofosos.org