From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: exporting as latex sections Date: Sun, 5 Dec 2010 04:38:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=52688 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PP5RY-00028N-D8 for emacs-orgmode@gnu.org; Sat, 04 Dec 2010 22:39:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PP5RX-0005jb-1x for emacs-orgmode@gnu.org; Sat, 04 Dec 2010 22:39:20 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PP5RW-0005jR-U0 for emacs-orgmode@gnu.org; Sat, 04 Dec 2010 22:39:19 -0500 Received: by wyj26 with SMTP id 26so3672960wyj.0 for ; Sat, 04 Dec 2010 19:39:17 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: org-mode mailing list Hi Thomas, On Sun, Dec 5, 2010 at 2:51 AM, Thomas S. Dye wrote: > Aloha Suvayu, > > On Dec 3, 2010, at 4:26 PM, suvayu ali wrote: > >> Hi org-mode users, >> >> I have been collaborating on a big (many contributors) paper. For all >> my various contributions to the paper I need to provide the latex >> source as a section of a latex document. Is there some way I can >> export to latex without all the preamble and header information from >> the org-mode file? Or just exporting to latex and manually removing >> all that is the only way to do it? >> >> While we are at it if I were to attempt to write my own version of >> latex export function which does this instead, where should I be >> looking? I'm not very good at lisp, so some suggestions would be >> really helpful if I need to take this route. >> >> Thanks for any help/suggestions. >> >> -- Suvayu > > I don't know any way to do this with the Org-mode LaTeX exporter (though > there may be some way I don't know yet). > > This might not be an option you want to follow, or something you have > already thought about, but you could achieve your result using LaTeX sour= ce > code blocks and then tangle, rather than export, your contribution. =A0Th= is > has the advantage that it is relatively simple to tangle different chunks= , > in case you are contributing to different parts of the paper. > > #+source: chunk1 > #+begin_src latex :tangle chunk1.tex > =A0This is chunk 1. > #+end_src > > #+source: chunk2 > #+begin_src latex :tangle chunk2.tex > =A0This is chunk 2. > #+end_src > I hadn't thought of org-babel! Thanks a lot, this makes much more sense. :) > Hope this helps. > > All the best, > Tom > --=20 Suvayu Open source is the future. It sets us free.