From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Conditional Inclusion Date: Tue, 5 Jul 2011 09:20:32 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636832034c317d804a74d51df Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdzvw-0004Mp-FU for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:20:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdzvu-0003XM-Pt for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:20:36 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:34026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdzvu-0003XG-GD for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:20:34 -0400 Received: by qwa26 with SMTP id 26so3682499qwa.0 for ; Tue, 05 Jul 2011 00:20:33 -0700 (PDT) In-Reply-To: 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: avdi@avdi.org Cc: emacs-orgmode --001636832034c317d804a74d51df Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 5, 2011 at 6:43 AM, Avdi Grimm wrote: > I'm trying to produce two slightly different PDF versions from the > same document. > > I want to be able to conditionally include a few LaTeX_HEADER lines > when I publish an Org file. I need to do it in a way I can control > from the command line when I run the export in batch mode. So I need > to either enable the lines with some eval-ed lisp on the emacs command > line, or with an environment variable. > > Thoughts on the best way to go about this? > If you are doing it from batch mode, one non-org approach would be to have the conditional headers in two different files (say header1.tex, header2.tex) and depending which ones you wantt, you could copy them into a file header.tex, which is then when exporting included in the document. Non-org, but very flexible. Cheers, Rainer > -- > Avdi Grimm > http://avdi.org > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --001636832034c317d804a74d51df Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Jul 5, 2011 at 6:43 AM, Avdi Gri= mm <groups@in= box.avdi.org> wrote:
I'm trying to produce two slightly different PDF versions from the
same document.

I want to be able to conditionally include a few LaTeX_HEADER lines
when I publish an Org file. I need to do it in a way I can control
from the command line when I run the export in batch mode. So I need
to either enable the lines with some eval-ed lisp on the emacs command
line, or with an environment variable.

Thoughts on the best way to go about this?

<= div>If you are doing it from batch mode, one non-org approach would be to h= ave the conditional headers in two different files (say header1.tex, header= 2.tex) and depending which ones you wantt, you could copy them into a file = header.tex, which is then when exporting included in the document.

Non-org, but very flexible.

Ch= eers,

Rainer


--
Avdi Grimm
http://avdi.org




--
Rainer M. Krug, = PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phy= s. (Germany)

Centre of Excellence for Invasion Biology
Stellenbos= ch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--001636832034c317d804a74d51df--