From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhasis Ray Subject: Combining multiple org files as chapters in a thesis Date: Thu, 11 Oct 2012 18:52:56 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dede0f252a3a04cbc87835 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMIj8-0005nC-Hj for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMIj4-0006p3-H1 for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:23:02 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:50844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMIj4-0006og-A9 for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:22:58 -0400 Received: by mail-wi0-f171.google.com with SMTP id hj13so7035128wib.12 for ; Thu, 11 Oct 2012 06:22:56 -0700 (PDT) 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 --0016e6dede0f252a3a04cbc87835 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to write my thesis using org-mode and followed this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html. But instead of putting everything in one file, I was creating one file for each chapter with the assumption that like LaTeX I should be able to combine them in one master file. I am able to export each chapter individually into PDF. I tried to include them in the master file as this: #+include "~/Documents/thesis/introduction.org" #+include "~/Documents/thesis/chapter1.org" #+include "~/Documents/thesis/chapter2.org" #+include "~/Documents/thesis/discussion.org" but when I tried to export the master file, I get error messages on figures that I created using tikz package (topbot is a shape I define using tikz): ----8<------->8----- Latexmk: Reference `fig:figure1' on page 18 undefined ... ... ! Package pgfkeys Error: I do not know the key '/tikz/topbot' and I am going to ignore it. Perhaps you misspelled it. ----8<------->8----- I have the same LaTeX headers in each file. I tried moving it to the top of the master file but that did not help. Concatenating all the files into one sort-of works but when I replaced biblatex' \printbibliography[heading=none] at the end of each file with \newrefsection[biliographyfile] in the combined file, the reference sections become empty. Is there a nice way to combine multiple org-files that I am missing? Thanks, Subha --0016e6dede0f252a3a04cbc87835 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
=A0I am trying to write my thesis using org-mode and followed this t= hread: http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00= 034.html.
But instead of putting everything in one file, I was creating one file for = each chapter with the assumption that like LaTeX I should be able to combin= e them in one master file.
I am able to export each chapter individually= into PDF. I tried to include them in the master file as this:

#+include "~/Documents/thesis/= introduction.org"
#+include "~/Documents/thesis/chapter1.org"
#+include "~/Docume= nts/thesis/chapter2.org"
#+include "~/Documents/thesis/discus= sion.org"

=A0but when I tried to export the master file, I = get error messages on figures that I created using tikz package (topbot is = a shape I define using tikz):

----8<------->8-----
Latexmk: Reference `fig:figure1' on p= age 18 undefined
...
...
! Package pgfkeys Error: I do not know t= he key '/tikz/topbot' and I am going to
=A0ignore it. Perhaps yo= u misspelled it.

----8<------->8-----

I have the same LaTeX headers in each= file. I tried moving it to the top of the master file but that did not hel= p.
Concatenating all the files into one sort-of works but when I replac= ed biblatex' \printbibliography[heading=3Dnone] at the end of each file= with \newrefsection[biliographyfile] in the combined file, the reference s= ections become empty.

Is there a nice way to combine multiple org-files that I am missing?
Thanks,
=A0 Subha
--0016e6dede0f252a3a04cbc87835-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Combining multiple org files as chapters in a thesis Date: Thu, 11 Oct 2012 15:50:09 +0200 Message-ID: <20121011135009.GB3443@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMJ9h-0005zv-TZ for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:50:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMJ9Y-0008IY-69 for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:50:29 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:56519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMJ9X-0008HP-LO for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 09:50:20 -0400 Received: by mail-we0-f169.google.com with SMTP id u3so1182050wey.0 for ; Thu, 11 Oct 2012 06:50:17 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 Subhasis, Just a small remark: On Thu, Oct 11, 2012 at 06:52:56PM +0530, Subhasis Ray wrote: > Hi, > I am trying to write my thesis using org-mode and followed this thread: > http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html. > But instead of putting everything in one file, I was creating one file for > each chapter with the assumption that like LaTeX I should be able to > combine them in one master file. > I am able to export each chapter individually into PDF. I tried to include > them in the master file as this: > > #+include "~/Documents/thesis/introduction.org" > #+include "~/Documents/thesis/chapter1.org" > #+include "~/Documents/thesis/chapter2.org" > #+include "~/Documents/thesis/discussion.org" > I believe your syntax here is incorrect. It should be: #+include: "/path/to/org/file.org" Welcome to Org mode; I wrote my thesis in Org mode last year although I went with the one-big-file way. Cheers, -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhasis Ray Subject: Re: Combining multiple org files as chapters in a thesis Date: Thu, 11 Oct 2012 20:19:49 +0530 Message-ID: References: <20121011135009.GB3443@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec53f3a43db94fe04cbc9ae20 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMK5A-0003Ga-Hx for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:50:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMK58-0004OX-KK for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:49:52 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:44663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMK58-0004Mo-Dh for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 10:49:50 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so1137058wgb.30 for ; Thu, 11 Oct 2012 07:49:49 -0700 (PDT) In-Reply-To: <20121011135009.GB3443@kuru.dyndns-at-home.com> 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: Suvayu Ali Cc: emacs-orgmode@gnu.org --bcaec53f3a43db94fe04cbc9ae20 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 11, 2012 at 7:20 PM, Suvayu Ali wrote: > Hi Subhasis, > > Just a small remark: > > On Thu, Oct 11, 2012 at 06:52:56PM +0530, Subhasis Ray wrote: > > Hi, > > I am trying to write my thesis using org-mode and followed this thread: > > http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html. > > But instead of putting everything in one file, I was creating one file > for > > each chapter with the assumption that like LaTeX I should be able to > > combine them in one master file. > > I am able to export each chapter individually into PDF. I tried to > include > > them in the master file as this: > > > > #+include "~/Documents/thesis/introduction.org" > > #+include "~/Documents/thesis/chapter1.org" > > #+include "~/Documents/thesis/chapter2.org" > > #+include "~/Documents/thesis/discussion.org" > > > > I believe your syntax here is incorrect. It should be: > > #+include: "/path/to/org/file.org" > > Welcome to Org mode; I wrote my thesis in Org mode last year although I > went with the one-big-file way. > > Cheers, > > Thanks for your response. I just checked that both forms work. Actually I had inserted the files interactively using the org key binding:
On Thu, Oct 11, 2012 at 7:20 PM, Suvayu = Ali <fatkasuvayu+linux@gmail.com> wrote:
Hi Subhasis,

Just a small remark:

On Thu, Oct 11, 2012 at 06:52:56PM +0530, Subhasis Ray wrote:
> Hi,
> =A0I am trying to write my thesis using org-mode and followed this thr= ead:
> http://lists.gnu.org/archive/html/emacs-orgmo= de/2007-12/msg00034.html.
> But instead of putting everything in one file, I was creating one file= for
> each chapter with the assumption that like LaTeX I should be able to > combine them in one master file.
> I am able to export each chapter individually into PDF. I tried to inc= lude
> them in the master file as this:
>
> #+include "~/Documents/thesis/introduction.org"
> #+include "~/Documents/thesis/chapter1.org"
> #+include "~/Documents/thesis/chapter2.org"
> #+include "~/Documents/thesis/discussion.org"
>

I believe your syntax here is incorrect. =A0It should be:

=A0 #+include: "/path/to/org/file.org"

Welcome to Org mode; I wrote my thesis in Org mode last year although I
went with the one-big-file way.

Cheers,

Thanks for your respon= se. I just checked that both forms work. Actually I had inserted the files = interactively using the org key binding: <I TAB.
I did come across y= our posts in the mailing list. Your contributions have been useful.
Subhasis
--bcaec53f3a43db94fe04cbc9ae20-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhasis Ray Subject: Re: Combining multiple org files as chapters in a thesis Date: Thu, 11 Oct 2012 21:08:00 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0442879e3769f004cbca5bba Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMKps-0008E5-5m for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 11:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMKpo-0005x3-RW for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 11:38:06 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMKpo-0005wX-HW for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 11:38:04 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so1950213wib.12 for ; Thu, 11 Oct 2012 08:38:01 -0700 (PDT) In-Reply-To: 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 --f46d0442879e3769f004cbca5bba Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 11, 2012 at 6:52 PM, Subhasis Ray wrote: > Concatenating all the files into one sort-of works but when I replaced > biblatex' \printbibliography[heading=none] at the end of each file with > \newrefsection[biliographyfile] in the combined file, the reference > sections become empty. > I figured out that I misunderstood the docs for \newrefsection which is showed with example here: http://stackoverflow.com/questions/2503555/using-latex-how-can-i-have-a-list-of-references-at-the-end-of-each-section Now I can make the chapter title the top level header in each file and then put \newrefsection just after it and insert \printbibliography at the end and the includes work with proper bibliography. Now the tikz issue remains to be resolved. I'd love it if "#+TITLE: chapter title" automatically became a section and everything under that turned into subsections at proper depths though. Thanks, Subhasis --f46d0442879e3769f004cbca5bba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, Oct 11, 2012 at 6:52 PM, Subhasi= s Ray <ray.subhasis@gmail.com> wrote:
Concatenating all the files into one sort-of works but when I replaced bibl= atex' \printbibliography[heading=3Dnone] at the end of each file with \= newrefsection[biliographyfile] in the combined file, the reference sections= become empty.

I figured out that I misunderstood the docs for \new= refsection which is showed with example here: http://stackoverflow.com/questions/2503555/using-= latex-how-can-i-have-a-list-of-references-at-the-end-of-each-section
Now I can make the chapter title the top level header in each file and = then put \newrefsection just after it and insert \printbibliography at the = end and the includes work with proper bibliography. Now the tikz issue rema= ins to be resolved. I'd love it if "#+TITLE: chapter title" a= utomatically became a section and everything under that turned into subsect= ions at proper depths though.
Thanks,
=A0 Subhasis
--f46d0442879e3769f004cbca5bba--