* [babel] noweb syntax
@ 2009-10-31 18:15 Thomas S. Dye
0 siblings, 0 replies; only message in thread
From: Thomas S. Dye @ 2009-10-31 18:15 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1212 bytes --]
Aloha all,
The new expanded noweb syntax in org-babel is sensitive to line
breaks. It looks to me as if it isn't possible to expand two noweb
references on the same line. As the following example shows, there is
a workaround that yields valid LaTeX source. Insensitivity to line
breaks seems more intuitive to me, but I can live with the workaround
if this is a feature and not a bug.
--------------------------- org file ---------------------------------
* test
#+begin_src latex :tangle gobble
This is tangled <<a()>>, and not this <<b()>>, but so this is.
This is tangled <<a()>>,
and so is this <<b()>>.
#+end_src
** Python code
#+srcname: a
#+begin_src python
1
#+end_src
#+resname: a
: 1
#+srcname: b
#+begin_src python
2
#+end_src
#+resname: b
: 2
-------------------------- gobble.tex ---------------------------
% generated by org-babel-tangle
% [[file:~/Public/projects/903_adzes/org-babel/test-babel.org::*test]
[block-1]]
This is tangled 1, but so this is.
This is tangled 1,
and so is this 2.
% block-1 ends here
All the best,
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: 4150 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-31 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31 18:15 [babel] noweb syntax Thomas S. Dye
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).