all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Rainer M Krug <r.m.krug@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>, avdi@avdi.org
Subject: Re: Conditional Inclusion
Date: Tue, 05 Jul 2011 10:09:25 +0100	[thread overview]
Message-ID: <87pqlpjdq2.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <CAGhLh6F=B8y4gOzH1CDuADtF15tqnOoFQGD_AHWb=KG7RMtmeg@mail.gmail.com> (Rainer M. Krug's message of "Tue, 5 Jul 2011 09:20:32 +0200")

Rainer M Krug <r.m.krug@gmail.com> writes:

> On Tue, Jul 5, 2011 at 6:43 AM, Avdi Grimm <groups@inbox.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?
>>
>
> 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.

or, if you want to do this from org, turn this around and have two main
org files, both of which #+include the one with all the common text?
then export the main file you want...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.574.g5a503)

  reply	other threads:[~2011-07-05  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05  4:43 Conditional Inclusion Avdi Grimm
2011-07-05  7:20 ` Rainer M Krug
2011-07-05  9:09   ` Eric S Fraga [this message]
2011-07-05  9:25     ` Rainer M Krug
2011-07-05 13:42       ` Russell Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqlpjdq2.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=avdi@avdi.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.m.krug@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.