From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Garion Subject: Building big document from multiple files Date: Tue, 20 Sep 2016 15:51:34 +0200 Message-ID: <87wpi6n0gp.fsf@pctof.isae.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmLSW-0004jC-OY for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 09:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmLSS-0005J0-Lu for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 09:51:40 -0400 Received: from smtpextng.isae.fr ([192.93.254.80]:52067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmLSS-0005Hg-EZ for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 09:51:36 -0400 Received: from supmail (supmail.isae.fr [10.132.1.9]) by smtpextng.isae.fr (Postfix) with ESMTP id 23C3573BF9 for ; Tue, 20 Sep 2016 15:49:17 +0200 (CEST) Received: from port-garion (port-garion.isae.fr [10.161.131.14]) by supmail (Postfix) with ESMTP id A5D9DC886CA for ; Tue, 20 Sep 2016 15:51:36 +0200 (CEST) Received: from localhost ([::1] helo=port-garion) by port-garion with esmtp (Exim 4.87) (envelope-from ) id 1bmLSQ-0005ib-3S for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 15:51:34 +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" To: emacs-orgmode@gnu.org Hi, I have been using Orgmode for several years as a planner/organizer and I am currently writing lecture notes with Orgmode for the first time. The lecture notes are splitted into chapters and target different audiences, so all chapters will be included for some students and selected chapters for others. I think the simplest approach is to write an unique file with all chapters and to put tags on headline to precise which chapter should be exported for which group of students # Options for LaTeX export etc. * Chapter 1 :std1:std2: * Chapter 2 :std1: and then to include this file in an org file for each group of students. For instance, for std1 group: #+TITLE: My title for std1 #+SELECT_TAGS: std1 #+INCLUDE: "./main_file.org" With this approach, I can easily export some chapters individually if I want by setting the EXPORT_TITLE property for each headline. Following my old LaTeX practises, I was wondering if it is possible to write one org file per chapter like that (e.g. chapter1.org): #+TITLE: Chapter title * Section 1 * Section 2 And then create the lecture notes in the following way: #+TITLE: Lecture notes title for std1 #+INCLUDE: "./chapter1.org" #+INCLUDE: "./chapter2.org" using the TITLE property defined in chapter1.org as section title. For the moment, the TITLE properties of the chapter are concatenated into the title of the main file. Of course, if this idea is stupid, do not hesitate ;) Best, Christophe -- Christophe Garion GPG: 1982 15B2 64AC 3C34 532D BF19 6CD6 246C 62DA 5A7F