From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: latex options Date: Mon, 30 Mar 2015 11:32:38 +0100 Message-ID: References: <12ec9e83-c76f-4e4c-a821-418e471e4a53@HUB01.ad.oak.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcWzr-0007CZ-FO for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 06:32:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcWzo-0005uw-3z for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 06:32:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:59860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcWzn-0005uX-UF for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 06:32:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YcWzb-0005xy-Cn for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 12:32:27 +0200 Received: from 193.63.222.161 ([193.63.222.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Mar 2015 12:32:27 +0200 Received: from andreas.leha by 193.63.222.161 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Mar 2015 12:32:27 +0200 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@gnu.org Hi Zhihao, Zhihao Ding writes: > Dear Org experts, > > I was wondering if anyone could advise on this simple problem. > My toy org file, shown as below, contains 3 projects. I’d like to > export beamer PDFs for individual projects from time to time, > but the pain is that I always need to modify the header options > (title, select_tags etc) to match the project that I want to export. > > The question is what the best way is to organise the options for > multiple projects? Ideally I’d like to put a copy of the options > under each project, so that I only need to define them once. > It’d be even better if I could specify the file that I want the project > to be exported to instead of the same pdf file matching my org > file. > > #+TITLE: mytitle > #+AUTHOR: myself > > #+DATE: \today > #+LaTeX_CLASS: mybeamer > > #+SELECT_TAGS: export > #+EXCLUDE_TAGS: noexport > > #+OPTIONS: H:4 toc:nil *: > > ** project 1 > ** project 2 > ** project 3 > You can add most of these keywords to the properties of a subtree by prepending them with 'export_'. I am not sure about the select tags, though. Why do you need them to differ between the projects? Your Example: --8<---------------cut here---------------start------------->8--- #+TITLE: mytitle #+AUTHOR: myself #+DATE: \today #+LaTeX_CLASS: mybeamer #+SELECT_TAGS: export #+EXCLUDE_TAGS: noexport #+OPTIONS: H:4 toc:nil *: ** project 1 :PROPERTIES: :header-args:R: :session *mysession1* :header-args: :cache yes :EXPORT_TITLE: mytitle 1 :EXPORT_LaTeX_HEADER: \subtitle{mysubtitle 1} :EXPORT_FILE_NAME: myfile1 :EXPORT_DATE: mydate 1 :EXPORT_LaTeX_CLASS: mybeamer 1 :EXPORT_OPTIONS: H:2 toc:nil :END: ** project 2 :PROPERTIES: :header-args:R: :session *mysession2* :header-args: :cache yes :EXPORT_TITLE: mytitle 2 :EXPORT_LaTeX_HEADER: \subtitle{mysubtitle 2} :EXPORT_FILE_NAME: myfile2 :EXPORT_DATE: mydate 2 :EXPORT_LaTeX_CLASS: mybeamer 2 :EXPORT_OPTIONS: H:2 toc:nil :END: ** project 3 :PROPERTIES: :header-args:R: :session *mysession3* :header-args: :cache yes :EXPORT_TITLE: mytitle 3 :EXPORT_LaTeX_HEADER: \subtitle{mysubtitle 3} :EXPORT_FILE_NAME: myfile3 :EXPORT_DATE: mydate 3 :EXPORT_LaTeX_CLASS: mybeamer 3 :EXPORT_OPTIONS: H:2 toc:nil :END: --8<---------------cut here---------------end--------------->8--- HTH, Andreas