From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris.m.malone@gmail.com Subject: Re: Collapse LaTeX source before start of main document? Date: Thu, 05 May 2011 17:45:13 +0000 Message-ID: <20cf3056396178c19204a28aef3b@google.com> References: <20110505103713.0ec59a15@kuru.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3056396178c17204a28aef38 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI2c0-0007PO-3t for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:45:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI2by-0004S8-Qw for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:45:16 -0400 Received: from mail-qw0-f71.google.com ([209.85.216.71]:60161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI2by-0004S3-K6 for emacs-orgmode@gnu.org; Thu, 05 May 2011 13:45:14 -0400 Received: by qwk4 with SMTP id 4so1735016qwk.6 for ; Thu, 05 May 2011 10:45:14 -0700 (PDT) In-Reply-To: <20110505103713.0ec59a15@kuru.homelinux.net> 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 --20cf3056396178c17204a28aef38 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Hi Suvayu, I think Matt's lisp code /should/ work for doing exactly what we are talking about, but for some reason I can't get it to work with LaTeX export. Anyway, good luck on your defense! Chris On May 5, 2011 1:37pm, Suvayu Ali wrote: > 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. --20cf3056396178c17204a28aef38 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Suvayu,

I think Matt's lisp code /should/ work for doing = exactly what we are talking about, but for some reason I can't get it t= o work with LaTeX export.

Anyway, good luck on your defense!

Chris

On May 5, 2011 1:37pm, Suvayu Ali <fatkasuvayu+= linux@gmail.com> wrote:
> Hello Chris,
>
>
>
> Sorry for the delay, had to attend a meeting.
> <= br />>
>
> 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 bibliograph= y I use the following:
>
> > >
>
> = > > #+INCLUDE: thesis-appendix.org :minlevel 1
>
> <= br />>
> [...]
>
>
>
> ><= br />>
> > Would this #+INCLUDE line come within the last ch= apter headline? =A0In
>
> > other words did you have so= mething like
>
> >
>
> > #+INCLUDE:= frontmatter.org
>
> > * Chapter 1
>
>= > ....
>
> > * Chapter 2
>
> > = ...
>
> > * Last Chapter
>
> > ....=
>
> > #+INCLUDE: thesis-appendix.org :minlevel 1
= >
> > .
>
> > .
>
> >= ; .
>
> > \bibliography{master}
>
> &g= t;
>
> > With this, it seems that all of the appendix/b= ackmatter gets folded
>
> > into the last chapter headi= ng. =A0That is sort of the way I'm thinking
>
> > o= f 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
>
> &qu= ot;special" and needed to be exported according to the sub-tree
&= gt;
> properties, that would be ideal. Although I haven't look= ed into it, I'm
>
> afraid it would require some lisp = intervention.
>
>
>
> That said, I just = found a possible workaround. If you put the appendix
>
> a= nd bibliography and friends under the Footnotes headline, it somewhat
= >
> replicates the behaviour I would like to have. Something li= ke this:
>
>
>
> * Footnotes
> <= br />>
>
> [fn:1] footnote 1
>
> [fn:= 2] footnote 2
>
>
>
>
>
&= gt; #+INCLUDE: thesis-appendix.org :minlevel 1
>
>
&= gt;
> #+LaTeX: \backmatter
>
> #+LaTeX: \newpage<= br />>
> #+LaTeX: \addcontentsline{toc}{chapter}{\bibname}
>
>
>
> #+LaTeX: \bibliographystyle{plain}>
> #+LaTeX: \bibliography{master}
>
> >
>
>
> After my thesis defence I might ac= tually get around to attempting to
>
> deal with this in l= isp. Would be a good learning excercise. :)
>
>
>=
> > Chris
>
>
>
> --
&= gt;
> Suvayu
>
>
>
> Open sourc= e is the future. It sets us free.
>
>
> --20cf3056396178c17204a28aef38--