From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Nobis Subject: Include another org-document without settings Date: Sun, 01 Feb 2015 11:51:40 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHs88-0002eV-CL for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 05:51:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHs85-00026N-4o for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 05:51:52 -0500 Received: from basilikum.nobis-admin.de ([89.238.71.130]:55923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHs84-00025t-RR for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 05:51:49 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by basilikum.nobis-admin.de (Postfix) with ESMTP id 462487E005C for ; Sun, 1 Feb 2015 11:51:46 +0100 (CET) Received: from basilikum.nobis-admin.de ([127.0.0.1]) by localhost (basilikum.nobis-admin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dL7oEVOs532J for ; Sun, 1 Feb 2015 11:51:40 +0100 (CET) Received: from karotte.fritz.box (f048110235.adsl.alicedsl.de [78.48.110.235]) by basilikum.nobis-admin.de (Postfix) with ESMTPSA for ; Sun, 1 Feb 2015 11:51:40 +0100 (CET) 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. I try to build an org document that has two parts. One file contains the first part of the resulting document and should be useable stand-alone. The second file is some kind of extension to the first file. My idea is to simple #+INCLUDE the first file in the second one. But then the global settings will be mixed. For example the keywords contains all keywords of both files. Also some export options like LATEX_EXTRA_HEADER are duplicated in some cases (I found no easy way to reproduce this in the simple example). Here are two example files: --8<---------------cut here---------------start------------->8--- #+TITLE: FILE A #+KEYWORDS: a x * First Section Some text in file A. --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- #+TITLE: FILE B #+KEYWORDS: b x #+INCLUDE: a.org * Second section Some text in file b. --8<---------------cut here---------------end--------------->8--- Is there a better way to handle this use-case or is it possible to force org to ignore (global) settings on include (I tried only to include lines after the global settings but that seems not to work). My main target is LaTeX/PDF, but exporting to HTML shows similiar problems. GNU Emacs 24.4.1. Org-mode version 8.2.10 (8.2.10-30-gca21b7-elpaplus). -- Until the next mail..., Stefan.