From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masataro Asai Subject: Re: section subtitle in latex export Date: Thu, 2 May 2013 20:05:05 +0900 Message-ID: References: <5181C626.4040804@gmail.com> <5181DCF2.9060808@gmail.com> <87ip31iy7z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d4830fc15f704dbba341e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXrK2-0007hm-9q for emacs-orgmode@gnu.org; Thu, 02 May 2013 07:05:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXrJy-0005pP-UD for emacs-orgmode@gnu.org; Thu, 02 May 2013 07:05:10 -0400 Received: from mail-oa0-f53.google.com ([209.85.219.53]:43799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXrJy-0005pE-NF for emacs-orgmode@gnu.org; Thu, 02 May 2013 07:05:06 -0400 Received: by mail-oa0-f53.google.com with SMTP id n9so377536oag.40 for ; Thu, 02 May 2013 04:05:06 -0700 (PDT) In-Reply-To: <87ip31iy7z.fsf@gmail.com> 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 --047d7b5d4830fc15f704dbba341e Content-Type: text/plain; charset=ISO-8859-1 Nicolas, sorry for my offending remarks in the second message. i was just a little nervous about that unexpected behavior for me. 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. 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, this may be an option. amother option is, giving altered version explicitly. which may make it accept four templates per sectioning, numbered,unnumbered,alternative numbered, altered unnumbered. some people, at least not me, may want this feature. if user can modify that behavior it would be definitrly better. well, that may inflate the list of vars in customs, but thats another ploblem. 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, but i wanted to contribute to the development of org. sorry for many typos, im currentry wrting on android. masataro 2013/05/02 17:26 "Nicolas Goaziou" : > Hello, > > Masataro Asai writes: > > > Reply to myself: > > > > I edebugged the ox-latex and studied what's happening. > > Who wrote this code? > > Obviously, not you. > > > you shouldn't do things like this... The code is overwriting the > > defcustom'ed sectioning format, no one knows. > > Doing what? Would you mind giving an example of that overwriting thing? > > > the best answer for this problem would be changing the structure of > > org-latex-classes > > Really? > > > but I dont want to do that right now. so I just gave an option for > > alternative-heading. > > Why would you want to remove every optional title? That would break > things like tags:not-in-toc and ALT_TITLE properties. > > > Regards, > > -- > Nicolas Goaziou > --047d7b5d4830fc15f704dbba341e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Nicolas,

sorry for my offending remarks in the second message. i was just a littl= e nervous about that unexpected behavior for me.

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.

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 th= ere is two of them in the template you can add alternative title, this may = be an option. amother option is, giving altered version explicitly. which m= ay make it accept four templates per sectioning, numbered,unnumbered,altern= ative numbered, altered unnumbered. some people, at least not me, may want = this feature.

if user can modify that behavior it would be definitrly better. well, th= at may inflate the list of vars in customs, but thats another ploblem.

the reason of cancelling the alt title, the situation im in is written i= n the
first message. one journal template throws an error because it does not rec= ognize altered titles.
maybe i can write a script which regex all alt titles out, but i wanted to = contribute to the development of org.

sorry for many typos, im currentry wrting on android.

masataro

2013/05/02 17:26 "Nicolas Goaziou" <= ;n.goaziou@gmail.com>:
Hello,

Masataro Asai <guicho2.71828@= gmail.com> writes:

> Reply to myself:
>
> I edebugged the ox-latex and studied what's happening.
> Who wrote this code?

Obviously, not you.

> you shouldn't do things like this... The code is overwriting the > defcustom'ed sectioning format, no one knows.

Doing what? Would you mind giving an example of that overwriting thing?

> the best answer for this problem would be changing the structure of > org-latex-classes

Really?

> but I dont want to do that right now. so I just gave an option for
> alternative-heading.

Why would you want to remove every optional title? That would break
things like tags:not-in-toc and ALT_TITLE properties.


Regards,

--
Nicolas Goaziou
--047d7b5d4830fc15f704dbba341e--