From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: Some settings are missing while exporting included org files to the tex file Date: Sun, 29 Apr 2012 18:56:14 +0930 Message-ID: <8762cianyh.fsf@ucl.ac.uk> References: <4F8D6E2F.3070908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOQOl-0008KK-9B for emacs-orgmode@gnu.org; Sun, 29 Apr 2012 05:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOQOj-0000YA-3s for emacs-orgmode@gnu.org; Sun, 29 Apr 2012 05:26:30 -0400 Received: from am1ehsobe002.messaging.microsoft.com ([213.199.154.205]:50309 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOQOi-0000Y4-QP for emacs-orgmode@gnu.org; Sun, 29 Apr 2012 05:26:29 -0400 In-Reply-To: <4F8D6E2F.3070908@gmail.com> (Keith's message of "Tue, 17 Apr 2012 15:20:47 +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: Keith Cc: emacs-orgmode@gnu.org Keith writes: > Dear Org-mode users: > > Recently I am considering using org-mode to write my thesis and would > like to separate each chapter into a single file. In order to do so, I > created a file gathering all the rest files like this: [...] > In addition, I also tried to export a single org file without any > preamble to be able to use input/include in latex but with no luck. And > it seems org mode does not support this function yet. I would recommend > the development team to re-consider this feature. Now the tex output of > org mode draws all the separate files into single tex file and the user > has to compile the entire tex file every time. By doing so, it also > misses the feature of LaTex as mentioned here: > http://web.science.mq.edu.au/~rdale/resources/writingnotes/latexstruct.html > Keith, I cannot help you with the bulk of your email, regarding the use of #+include to bring in different chapters etc into a document and/or the possibility of working on each individual chapter in turn. However, because of these limitations, that I also ran into a long time ago, I simply put everything into one document. The advice given in the web page noted above is directed at LaTeX but is less necessary for org files. The motivation is the need or desire to work on smaller bits at a time to have things go quicker, I believe. The easy way to handle this in org is to use selective exporting, primarily through the use of tags. So, for instance, if I am working on a long document and am currently working on chapter 2 of this document, my document would look like this: ,---- | ... | | #+EXPORT_SELECT_TAGS: export | | #+EXPORT_EXCLUDE_TAGS: noexport | | ... | | * Introduction ... :noexport: | | * Chapter 1 ... :noexport: | | * Chapter 2 | | ... | | * Chapter 3 ... :noexport: | | ... | `---- When asking for an export, only Chapter 2 would be exported. It is trivial to add/remove the noexport tags. The only difficulty with this arises when you need latex material at the *end* of the document, such as bibliography settings. For this, I simply create a final "* Postamble" section which is exported. When my document is finished, I simply remove the heading line and re-export the whole document. A minor irritation appears if you have cross-references between chapters but that really is nothing more than an irritation so I have learnt to ignore it. HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org release_7.8.09-414-gb3e8a8