From: Rasmus <rasmus@gmx.us>
To: phillip.lord@newcastle.ac.uk
Cc: emacs-orgmode@gnu.org
Subject: Re: Multi-file and master files
Date: Wed, 01 Oct 2014 11:03:22 +0200 [thread overview]
Message-ID: <871tqsjh5x.fsf@gmx.us> (raw)
In-Reply-To: <87d2acf9w1.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 01 Oct 2014 09:54:06 +0100")
Hi Phillip,
phillip.lord@newcastle.ac.uk (Phillip Lord) writes:
> I've been writing a long document in org-mode recently. I decided to use
> org-mode for two reasons: firstly, I wrote the outline plan in org
> anyway and switching tools was irritating; second, I want both PDF and
> HTML output. My tool of choice would have been latex and auctex where it
> not for the HTML requirement.
>
> Setting it up was a little difficult, but in general it's going okay
> now. However, I am really missing the notion of "master" documents from
> auctex. I have a "main" file which just includes other files each of
> which contain a specific section.
>
> Now, the export functionality works, but many org commands appear not
> to work propertly. So, for example, footnotes adds new footnotes
> starting from 1 in each file, but in the HTML export the earlier
> footnotes get overwritten. Likewise, there is no good tool for putting
> in crosslinks, compared to reftex in latex.
>
> Am I missing things here? Or would it make more sense to move to latex,
> with all the hacking that this entails for the HTML output.
I might be misunderstanding your question here, so bear(?) with me.
I think #+INCLUDE: "$FILE" should take care of what you want.
Basically, at export time, INCLUDE is expanded to the content of $FILE
in the buffer. Footnotes should work.
Your structure should be something like:
> cat master.org
#+TITLE: my title
* intro
Txt with footnotes
#+INCLUDE: "chapter1.org"
> cat chapter1.org
* chapter 1
Txt with footnotes
To include something put "<I" at the beginning of the line and click
TAB. This will make sure syntax is correct, (even if the above is
not).
Hope it helps,
Rasmus
--
I almost cut my hair, it happened just the other day
next prev parent reply other threads:[~2014-10-01 9:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 8:54 Multi-file and master files Phillip Lord
2014-10-01 9:03 ` Rasmus [this message]
2014-10-01 11:57 ` Phillip Lord
2014-10-01 12:26 ` Rasmus
2014-10-01 13:01 ` Phillip Lord
2014-10-01 13:27 ` Rasmus
2014-10-01 14:40 ` Phillip Lord
2014-10-01 14:56 ` Nicolas Goaziou
2014-10-01 15:44 ` Phillip Lord
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=871tqsjh5x.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=phillip.lord@newcastle.ac.uk \
/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).