emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] section subtitle in latex export


From: Nicolas Goaziou
Subject: Re: [O] section subtitle in latex export
Date: Thu, 02 May 2013 16:00:59 +0200

Masataro Asai <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]