emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christophe Garion <tofgarion@runbox.com>
To: emacs-orgmode@gnu.org
Subject: Building big document from multiple files
Date: Tue, 20 Sep 2016 15:51:34 +0200	[thread overview]
Message-ID: <87wpi6n0gp.fsf@pctof.isae.fr> (raw)

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

                 reply	other threads:[~2016-09-20 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpi6n0gp.fsf@pctof.isae.fr \
    --to=tofgarion@runbox.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).