From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Masataro Asai <guicho2.71828@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: section subtitle in latex export
Date: Thu, 02 May 2013 16:00:59 +0200 [thread overview]
Message-ID: <87mwsdh46c.fsf@gmail.com> (raw)
In-Reply-To: <CAL2JeXXsOApVC-RG8W8EGXRnrBJuqOmvmB3bTv1CiYKf2ubQPg@mail.gmail.com> (Masataro Asai's message of "Thu, 2 May 2013 20:05:05 +0900")
Masataro Asai <guicho2.71828@gmail.com> 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
prev parent reply other threads:[~2013-05-02 14:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-02 1:49 section subtitle in latex export Masataro Asai
2013-05-02 3:26 ` Masataro Asai
2013-05-02 4:46 ` Aaron Ecay
2013-05-02 8:06 ` Rasmus
2013-05-02 8:29 ` Nicolas Goaziou
2013-05-03 8:18 ` Aaron Ecay
2013-05-02 8:26 ` Nicolas Goaziou
2013-05-02 11:05 ` Masataro Asai
2013-05-02 14:00 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwsdh46c.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=guicho2.71828@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).