From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: section subtitle in latex export Date: Thu, 02 May 2013 16:00:59 +0200 Message-ID: <87mwsdh46c.fsf@gmail.com> References: <5181C626.4040804@gmail.com> <5181DCF2.9060808@gmail.com> <87ip31iy7z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXu4I-0007IK-0V for emacs-orgmode@gnu.org; Thu, 02 May 2013 10:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXu4D-0004uW-Ap for emacs-orgmode@gnu.org; Thu, 02 May 2013 10:01:05 -0400 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:53319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXu4D-0004uL-3x for emacs-orgmode@gnu.org; Thu, 02 May 2013 10:01:01 -0400 Received: by mail-we0-f174.google.com with SMTP id z2so498273wey.19 for ; Thu, 02 May 2013 07:01:00 -0700 (PDT) In-Reply-To: (Masataro Asai's message of "Thu, 2 May 2013 20:05:05 +0900") 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: Masataro Asai Cc: emacs-orgmode@gnu.org Masataro Asai writes: > org latex classes can be considererd as a template. template is somewhat > similer to lambda. you wouldnt want any function to be modified by another > function which recieved it as its argument. Of course, `org-latex-classes' is a template. But it doesn't apply on table of contents. However, Org needs some ways to control them. Therefore it needs to handle optional arguments in \section macros and alike. > so if something may be inserted in the template without notice, instead it > should be better if it has more arguments. say additional %s. if only there > is two of them in the template you can add alternative title, There are already other ways to control the alternative title. See below. > this may be an option. amother option is, giving altered version > explicitly. There is the ALT_TITLE property, which allows to set an alternate title for a given headline. [...] > the reason of cancelling the alt title, the situation im in is written in > the > first message. one journal template throws an error because it does not > recognize altered titles. > maybe i can write a script which regex all alt titles out, You can indeed write a filter for headlines which would remove every optional title (see `org-export-filter-headline-functions'). Though, Aaron Ecay's patch should solve most of the cases: no alternate title will be added if you don't use ALT_TITLE or tags:not-in-toc option. > but i wanted to contribute to the development of org. You're welcome. But for the problem at hand, your patch isn't, IMO, an acceptable solution. Regards, -- Nicolas Goaziou