all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot use #+call correctly with babel
@ 2012-06-16 16:31 Benoit Bayol
  2012-06-17 18:42 ` William LÉCHELLE
  0 siblings, 1 reply; 2+ messages in thread
From: Benoit Bayol @ 2012-06-16 16:31 UTC (permalink / raw)
  To: emacs-orgmode

Hello everyone,

I cannot understand the way to use #+name and #+call with babel.

All the mixes on headers I tried have been failures.
I just want something like :

* Hello Word in C++
Here is the source code :
#+call: cpp_hello_world [:exports code]
and here is the result :
#+call: cpp_hello_world [:results output :exports results]

gives me

* Hello Word in C++
Here is the source code :
#include <iostream>

int main()
{
std::cout << "hello world !" << std::endl;
}

and here is the result :
Hello World !

in the resulting HTML, ascii or Latex export.

Here is my example source : http://pastebin.com/63uHDvZH

Does anyone see why I cannot have the output of the code and the results 
in the last sections ?

Thanks :)

-- 
Benoît BAYOL
benoit.bayol@gmail.com
0033 6 3353 1153

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

end of thread, other threads:[~2012-06-17 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-16 16:31 Cannot use #+call correctly with babel Benoit Bayol
2012-06-17 18:42 ` William LÉCHELLE

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.