emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Benoit Bayol <benoit.bayol@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Cannot use #+call correctly with babel
Date: Sat, 16 Jun 2012 18:31:53 +0200	[thread overview]
Message-ID: <4FDCB4F9.80404@gmail.com> (raw)

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

             reply	other threads:[~2012-06-16 16:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-16 16:31 Benoit Bayol [this message]
2012-06-17 18:42 ` Cannot use #+call correctly with babel William LÉCHELLE

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=4FDCB4F9.80404@gmail.com \
    --to=benoit.bayol@gmail.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).