From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avdi Grimm Subject: Conditional Inclusion Date: Tue, 5 Jul 2011 00:43:32 -0400 Message-ID: Reply-To: avdi@avdi.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdxUJ-0000CV-QV for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 00:43:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdxUH-0000kd-UY for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 00:43:55 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:50711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdxUH-0000kZ-Km for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 00:43:53 -0400 Received: by qyk32 with SMTP id 32so1525247qyk.0 for ; Mon, 04 Jul 2011 21:43:52 -0700 (PDT) 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: emacs-orgmode 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? -- Avdi Grimm http://avdi.org