From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali <fatkasuvayu+linux@gmail.com> Subject: Re: Collapse LaTeX source before start of main document? Date: Thu, 5 May 2011 10:37:13 -0700 Message-ID: <20110505103713.0ec59a15@kuru.homelinux.net> References: <BANLkTim2NZOHVk75FkkMVE+EPL60QdFsJg@mail.gmail.com> <20110504152539.7f66f9af@kuru.homelinux.net> <BANLkTinxNYJhVG+vNTEGuKZ2uJ570vC0jA@mail.gmail.com> <20110505074608.48b834e4@bhishma.homelinux.net> <BANLkTi=j=XVs5_9zgw+-OqRWu84pY4PYTA@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([140.186.70.92]:51652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <fatkasuvayu+linux@gmail.com>) id 1QI2UR-0005sT-P6 for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:37:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <fatkasuvayu+linux@gmail.com>) id 1QI2UQ-0002hK-A4 for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:37:27 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:33880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <fatkasuvayu+linux@gmail.com>) id 1QI2UQ-0002bT-3D for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:37:26 -0400 Received: by pvc12 with SMTP id 12so1523396pvc.0 for <emacs-orgmode@gnu.org>; Thu, 05 May 2011 10:37:24 -0700 (PDT) In-Reply-To: <BANLkTi=j=XVs5_9zgw+-OqRWu84pY4PYTA@mail.gmail.com> List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: </archive/html/emacs-orgmode> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=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: Chris Malone <chris.m.malone@gmail.com> Cc: emacs-orgmode@gnu.org Hello Chris, Sorry for the delay, had to attend a meeting. On Thu, 5 May 2011 11:37:41 -0400 Chris Malone <chris.m.malone@gmail.com> wrote: > Hi Suvayu, > > Thanks for sharing your use case - I'm interested in a few more > details: > > > For example for my appendix and bibliography I use the following: > > > > #+INCLUDE: thesis-appendix.org :minlevel 1 [...] > > Would this #+INCLUDE line come within the last chapter headline? In > other words did you have something like > > #+INCLUDE: frontmatter.org > * Chapter 1 > .... > * Chapter 2 > ... > * Last Chapter > .... > #+INCLUDE: thesis-appendix.org :minlevel 1 > . > . > . > \bibliography{master} > > With this, it seems that all of the appendix/backmatter gets folded > into the last chapter heading. That is sort of the way I'm thinking > of working my thesis, but it seems sub-optimal. > Yes that is correct. It folds into the last chapter, and I too find this sub-optimal. If there was a way to specify certain headlines were "special" and needed to be exported according to the sub-tree properties, that would be ideal. Although I haven't looked into it, I'm afraid it would require some lisp intervention. That said, I just found a possible workaround. If you put the appendix and bibliography and friends under the Footnotes headline, it somewhat replicates the behaviour I would like to have. Something like this: * Footnotes [fn:1] footnote 1 [fn:2] footnote 2 #+INCLUDE: thesis-appendix.org :minlevel 1 #+LaTeX: \backmatter #+LaTeX: \newpage #+LaTeX: \addcontentsline{toc}{chapter}{\bibname} #+LaTeX: \bibliographystyle{plain} #+LaTeX: \bibliography{master} After my thesis defence I might actually get around to attempting to deal with this in lisp. Would be a good learning excercise. :) > Chris -- Suvayu Open source is the future. It sets us free.