From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 3AC1A820A1 for ; Tue, 3 Sep 2013 11:17:53 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.89,1013,1367964000"; d="scan'208";a="31287797" Received: from top.irisa.fr (HELO top) ([131.254.16.41]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 03 Sep 2013 11:17:52 +0200 References: <5224B137.8070706@gmail.com> User-agent: mu4e 0.9.9.5; emacs 24.3.1 From: Alan Schmitt To: Jonathan Protzenko Cc: caml-list@inria.fr In-reply-to: <5224B137.8070706@gmail.com> Date: Tue, 03 Sep 2013 11:17:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Caml-list] Literate (sort-of) programming in OCaml Hi Jonathan, jonathan.protzenko@gmail.com writes: > Hi, > > I am currently writing a big, mostly textual document in format blah > (blah being of a course a meta-variable). Are there any tools that > would allow me to interleave OCaml code with the contents of my > document? ... > Are you aware of any tool that would allow me to achieve this? I'm using org-mode for this (http://orgmode.org/). The support for caml uses a session, so when you evaluate / export code the previous code is taken into account. I've used it for courses slides (exported to beamer) and for caml exams (where the type of the expected answers is computed from the correction, which is of course not exported). Alan