emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] noweb expansion in latex source blocks
@ 2009-11-01  4:09 Thomas S. Dye
  2009-11-01 19:47 ` Dan Davison
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas S. Dye @ 2009-11-01  4:09 UTC (permalink / raw)
  To: emacs-orgmode

Aloha all,

Noweb expansion in latex source blocks inserts spaces that can  
introduce unwanted paragraph breaks in LaTeX.

The outer-block in this org file looks like something that should be  
set as one paragraph in LaTeX.

* noweb expansion

#+srcname: outer-block
#+begin_src latex :tangle noweb_exp.tex
This is an observation.
<<inner-block>>
This is a conclusion.
#+end_src

#+srcname: inner-block
#+begin_src latex
This is an analysis.
#+end_src

But it tangles a LaTeX snippet with three paragraphs.

% generated by org-babel-tangle

% [[file:~/Public/projects/903_adzes/org-babel/noweb- 
expansion.org::*noweb%20expansion][outer-block]]
This is an observation.

This is an analysis.

This is a conclusion.
% outer-block ends here

All the best,
Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-01 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-01  4:09 [babel] noweb expansion in latex source blocks Thomas S. Dye
2009-11-01 19:47 ` Dan Davison
2009-11-01 21:27   ` Thomas S. Dye
2009-11-01 21:43     ` Eric Schulte

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).