From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Yankin Subject: Re: LaTeX export. Substitute some headlines with arbitrary command Date: Thu, 14 Mar 2013 09:14:07 +0400 Message-ID: References: <11008.1363220062@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307ca1e491bddd04d7db97d5 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG0UW-0002ts-Es for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 01:14:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG0US-0001Xd-3L for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 01:14:12 -0400 Received: from mail-vc0-f181.google.com ([209.85.220.181]:43222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG0UR-0001XY-V1 for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 01:14:08 -0400 Received: by mail-vc0-f181.google.com with SMTP id hv10so90456vcb.12 for ; Wed, 13 Mar 2013 22:14:07 -0700 (PDT) In-Reply-To: <11008.1363220062@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --20cf307ca1e491bddd04d7db97d5 Content-Type: text/plain; charset=ISO-8859-1 Sorry if it wasn't clear. I should have illustrate this. Input: * Headline 1 ** Node 1.1 Content 1 * Headline 2 Content 2 * Headline 3 Content 3 * Headline 4 Content 4 * Headline 5 Content 5 Desired output: \intro \subsection{Node 1.1} Content 1 \section{Headline 2} Content 2 \section{Headline 3} Content 3 \section{Headline 4} Content 4 \conclusion Content 5 First and fifth top headlines output is replaced. And others are defaults. All children keep the same. 2013/3/14 Nick Dokos > Andrey Yankin wrote: > > > Hi! > > > > I want arbitrary top level headline to be exported not as \section (or > whatever it is) but with some > > other arbitrary latex command. > > > > I even do not want to use headline text. Just write \intro instead of > \section{...} in tex file. > > > > I've tried some fiddling with :noexport: and :export: tags to hide > output for selected headlines. It > > didn't work. > > > > Currently I'm heading to this metod: http://stackoverflow.com/a/9679105of creating my own parser. > > > > Are there any easier solutions? > > > > Have you tried customizing the org-latex-classes variable? I'm not quite > sure what you are trying to do (an example would help), but I don't see > any obstacles. > > Nick > --20cf307ca1e491bddd04d7db97d5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry if it wasn't clear.
I should have illustrate = this.

Input:

* Headline 1
** Node 1.1
=A0 Content 1
= * Headline 2
=A0 Content 2
* Headline 3
=A0 Content 3
* Headlin= e 4
=A0 Content 4
* Headline 5
=A0 Content 5

Desired output:
\intro
\subsection{Node 1.1}
=A0 Content 1
\section{Headline 2}<= br>=A0 Content 2
\section{Headline 3}
=A0 Content 3
\section{Headl= ine 4}
=A0 Content 4
\conclusion
=A0 Content 5

First and fifth top he= adlines output is replaced. And others are defaults.
All children keep t= he same.



2013/3/14 Nick Dokos <nicholas.dokos@hp.com>
Andrey Yankin <yankin013@gmail.com> wrote:

> Hi!
>
> I want arbitrary top level headline to be exported not as \section (or= whatever it is) but with some
> other arbitrary latex command.
>
> I even do not want to use headline text. Just write \intro instead of = \section{...} in tex file.
>
> I've tried some fiddling with :noexport: and :export: tags to hide= output for selected headlines. It
> didn't work.
>
> Currently I'm heading to this metod: http://stackoverflow.com/a/9679105 = of creating my own parser.
>
> Are there any easier solutions?
>

Have you tried customizing the org-latex-classes variable? I= 9;m not quite
sure what you are trying to do (an example would help), but I don't see=
any obstacles.

Nick

--20cf307ca1e491bddd04d7db97d5--