From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Exporter question Date: Sun, 24 Feb 2013 10:15:42 +0100 Message-ID: <8738wmax8h.fsf@bzg.ath.cx> References: <9C4C997C2CA6AA488CBC8C9E56E764EE264510C3@MBX04.uva.nl> <87r4kl9uy4.fsf@gmail.com> <4D16776B-192B-4723-80FF-AEAC5E3B458C@gmail.com> <87zjyuytt4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9XgT-0003rD-PC for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:15:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9XgS-000364-Gd for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:15:49 -0500 Received: from we-in-x0236.1e100.net ([2a00:1450:400c:c03::236]:47751 helo=mail-we0-x236.google.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9XgS-00035q-Ar for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:15:48 -0500 Received: by mail-we0-f182.google.com with SMTP id t57so1646640wey.41 for ; Sun, 24 Feb 2013 01:15:47 -0800 (PST) In-Reply-To: <87zjyuytt4.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 24 Feb 2013 09:55:51 +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: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org List" , "Dominik, Carsten" , Carsten Dominik Hi Nicolas, Nicolas Goaziou writes: > Now, almost all back-ends providing a TOC functionality allow to > add :OPTIONAL_TITLE: property in an headline to set its corresponding > entry in the table of contents. Thanks for implementing this! > Do you think it's still necessary to provide an equivalent for > `org-export-remove-timestamps-from-toc'? It's only a matter of copying > the headline title in the property, without timestamp. org-html|latex-format-headline-function allow these arguments: TODO the todo keyword (string or nil). TODO-TYPE the type of todo (symbol: `todo', `done', nil) PRIORITY the priority of the headline (integer or nil) TEXT the main headline text (string). TAGS the tags as a list of strings (list of strings or nil). Why not having another TRIM-REGEXP argument to selectively trim the content matched by a regexp against TEXT? `org-export-with-timestamps-in-toc', if nil, would use this arg; but users could remove anything from the headlines (and the TOC), not just from the TOC. And `org-export-with-timestamps' could be set to 'from-toc or 'from-headline. And we could extend `org-export-with-tags' similarily. (I think `org-export-with-timestamps-in-toc' is better than `org-export-remove-timestamps-from-toc' because `org-export-with' is more widely used for the same purposes.) Just a suggestion for combining backward compatibility and adding some flexibility thanks for the new engine. Let me know what you think, -- Bastien