From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: tangle on export Date: Thu, 24 Sep 2015 12:37:58 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf3ul-0002oM-15 for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 06:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf3uh-0003o4-Q6 for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 06:38:10 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:5815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf3uh-0003lT-LK for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 06:38:07 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I have a question I feel is very basic but I did not find the answer in the manual. How can I trigger the tangling of a block upon export. More precisely, I want to give the following example in a lecture: #+name:hello #+begin_src ocaml :tangle myprog.ml Printf.printf "Bonjour le monde !\n" #+end_src #+BEGIN_SRC sh :exports both :results verbatim ocamlc -o myprog myprog.ml ./myprog #+END_SRC where I show a program to be compiled and actually compile it. Is there a header I should put on the "hello" block to tangle it when I export it? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated September 22, 2015, Mauna Loa Obs.): 397.= 77 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWA9KGAAoJEAQNCjtO0uXHFMoH/ROYf+orAOI7NWi13yAkVYZ6 47O8JEBSjk01b4x78DAQCaL6OAvka6BW9XTeKbXAcjmIq4GtBFHKfD59UWTakyR3 sNPhaM5bYcdNztd7P/57K8kU/0svqZlz51sXLsre/56zMI+jcP78TzRO9mOvM9wD 0P9e6ZHM+9VVfQxdMAsnq327uXF1wSraAu2R0eMLwCj9oMXZYj7G4SDShYXJbxMJ fnuLT1YKbZ+eijdkkOOsBrw88VJnmmbgos12eKacEBgLy0hZUPBOc3DjAnznQYMf mBeG7Sjvtq8ZVJJs/GpQlV996OdFB6Sm58FAZ1cOsY1QR6XauGA/PCuP8QF5Buc= =oKma -----END PGP SIGNATURE----- --=-=-=--