* exporting as latex sections
@ 2010-12-04 2:26 suvayu ali
2010-12-05 1:51 ` Thomas S. Dye
0 siblings, 1 reply; 3+ messages in thread
From: suvayu ali @ 2010-12-04 2:26 UTC (permalink / raw)
To: org-mode mailing list
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
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exporting as latex sections
2010-12-04 2:26 exporting as latex sections suvayu ali
@ 2010-12-05 1:51 ` Thomas S. Dye
2010-12-05 3:38 ` suvayu ali
0 siblings, 1 reply; 3+ messages in thread
From: Thomas S. Dye @ 2010-12-05 1:51 UTC (permalink / raw)
To: suvayu ali; +Cc: org-mode mailing list
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
source code blocks and then tangle, rather than export, your
contribution. This 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
This is chunk 1.
#+end_src
#+source: chunk2
#+begin_src latex :tangle chunk2.tex
This is chunk 2.
#+end_src
Hope this helps.
All the best,
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exporting as latex sections
2010-12-05 1:51 ` Thomas S. Dye
@ 2010-12-05 3:38 ` suvayu ali
0 siblings, 0 replies; 3+ messages in thread
From: suvayu ali @ 2010-12-05 3:38 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: org-mode mailing list
Hi Thomas,
On Sun, Dec 5, 2010 at 2:51 AM, Thomas S. Dye <tsd@tsdye.com> 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 source
> code blocks and then tangle, rather than export, your contribution. This
> 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
> This is chunk 1.
> #+end_src
>
> #+source: chunk2
> #+begin_src latex :tangle chunk2.tex
> This 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
>
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-05 3:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 2:26 exporting as latex sections suvayu ali
2010-12-05 1:51 ` Thomas S. Dye
2010-12-05 3:38 ` suvayu ali
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.