From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export. Substitute some headlines with arbitrary command Date: Thu, 14 Mar 2013 02:17:38 -0400 Message-ID: <13742.1363241858@alphaville> References: <11008.1363220062@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG1U0-0006am-Nz for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 02:17:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG1Tx-0005WS-C8 for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 02:17:44 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:25477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG1Tx-0005WE-51 for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 02:17:41 -0400 In-Reply-To: Message from Andrey Yankin of "Thu\, 14 Mar 2013 09\:14\:07 +0400." 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: Andrey Yankin Cc: emacs-orgmode@gnu.org Andrey Yankin wrote: > Sorry if it wasn't clear. > I should have illustrate this. >=20 > Input: >=20 > * Headline 1 > ** Node 1.1 > =C2=A0 Content 1 > * Headline 2 > =C2=A0 Content 2 > * Headline 3 > =C2=A0 Content 3 > * Headline 4 > =C2=A0 Content 4 > * Headline 5 > =C2=A0 Content 5 >=20 > Desired output: >=20 > \intro > \subsection{Node 1.1} > =C2=A0 Content 1 > \section{Headline 2} > =C2=A0 Content 2 > \section{Headline 3} > =C2=A0 Content 3 > \section{Headline 4} > =C2=A0 Content 4 > \conclusion > =C2=A0 Content 5 >=20 > First and fifth top headlines output is replaced. And others are defaults. > All children keep the same. >=20 OK - I don't think you can do this with org-latex-classes: there is no provision for exceptional cases there. Charles Berry suggested filters: maybe something can be done with that. FWIW, I would just wait until the last minute and then when it's time to produce the final pdf, I'd replace the two headlines by hand - but that assumes that the document is a one-off, do-it-once-and-never-again kind of thing. Nick > 2013/3/14 Nick Dokos >=20 > Andrey Yankin wrote: >=20=20=20=20 > > 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/967= 9105 of creating my own > parser. > > > > Are there any easier solutions? > > >=20=20=20=20 > Have you tried customizing the org-latex-classes variable? I'm not qu= ite > sure what you are trying to do (an example would help), but I don't s= ee > any obstacles. >=20=20=20=20 > Nick >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------