emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: emacs-orgmode@gnu.org
Subject: [babel] language support
Date: Sat, 17 Oct 2009 07:44:13 -1000	[thread overview]
Message-ID: <A8585B05-6E95-435A-ACFB-108BEA843A88@tsdye.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1607 bytes --]

Aloha all,

Is it possible (or would it be useful) to leverage the literate  
programming facilities of org-babel to write LaTeX code?

I'd like to weave a document that describes how some thesis/idea/story  
can be developed/elaborated/told and then tangle an instance of  
'developed thesis'/'elaborated idea'/'told story' that LaTeX can make  
presentable.  The motivation for this is a desire to have one source  
document that will tangle 1) a slide presentation via beamer, and 2) a  
print document for publication.  The two share a common organization/ 
structure/plot but there are radically different presentation mode  
constraints.

Org-mode is a terrific tool for organizing, structuring, and  
plotting.  Org-babel seems to be a likely candidate for abstracting  
the different presentation modes.

Here is some pseudo-code for illustration:

* Idea 1
#+srcname: beamer-idea-1
#+begin_src latex :exports none
\begin{itemize}
	\item first concept
	\item second concept
\end{itemize}
#+end_src
#+srcname: latex-idea-1
#+begin_src latex :exports none
The first concept was developed by \citet{author1}.  It later became  
the basis for the second concept \citep{author2}. ...
#+end_src

#+srcname: beamer-presentation
#+begin_src latex :tangle beamer-thesis :exports none
# <<beamer-idea-1>>
# <<beamer-idea-2>>
...
#+end_src
#+srcname: latex-presentation
#+begin_src latex :tangle latex-thesis :exports none
# <<latex-idea-1>>
# <<latex-idea-2>>
...
#+end_src
Tom
Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com



[-- Attachment #1.2: Type: text/html, Size: 8268 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2009-10-17 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-17 17:44 Thomas S. Dye [this message]
2009-10-17 18:41 ` [babel] language support Eric Schulte
2009-10-17 19:52   ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A8585B05-6E95-435A-ACFB-108BEA843A88@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).