From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 763187FC86 for ; Thu, 19 Mar 2015 19:25:19 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of martindemello@gmail.com) identity=pra; client-ip=209.85.160.181; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of martindemello@gmail.com designates 209.85.160.181 as permitted sender) identity=mailfrom; client-ip=209.85.160.181; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-yk0-f181.google.com) identity=helo; client-ip=209.85.160.181; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="postmaster@mail-yk0-f181.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BuAABMFAtVm7WgVdFcg1haBIMJsxGQDoUsSQKBRgdMAQEBAQEBEQEBAQEBBgsLCRQuhBABAQQSER0BGxIMAwwGBQsNAgIJHQICIQEBEQEFAQoSBgESCAoQh3gBAxENpW0+MYsxgWuCd5EfChknAwpUhFUBAQEBBgEBAQEBARYBBQ6BE4l2gkQdgheCaIFFBYUKCoV7iSuEM4FMgRs6gnaCWYZegl+BfRIjgQwJhDAeMYJDAQEB X-IPAS-Result: A0BuAABMFAtVm7WgVdFcg1haBIMJsxGQDoUsSQKBRgdMAQEBAQEBEQEBAQEBBgsLCRQuhBABAQQSER0BGxIMAwwGBQsNAgIJHQICIQEBEQEFAQoSBgESCAoQh3gBAxENpW0+MYsxgWuCd5EfChknAwpUhFUBAQEBBgEBAQEBARYBBQ6BE4l2gkQdgheCaIFFBYUKCoV7iSuEM4FMgRs6gnaCWYZegl+BfRIjgQwJhDAeMYJDAQEB X-IronPort-AV: E=Sophos;i="5.11,431,1422918000"; d="scan'208";a="104031410" Received: from mail-yk0-f181.google.com ([209.85.160.181]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Mar 2015 19:25:17 +0100 Received: by ykek76 with SMTP id k76so31677414yke.0 for ; Thu, 19 Mar 2015 11:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Lyr03YCd+uCb6td3l4Rh3pEBbkKf03BGSjhhZDP/avs=; b=VTs/TV+66kzdvbWELsfpkL0yw0Z+r4THUxuBNRqfRwuX9r2t0c8MWVhYGJuRymANHN NwyGQON9tSPyWhlNj0IpoIuvIjgBhAE8zIQSiekyylCzpyBkl4AVFLtirRcA+r9uzf7T gUnUWcei5OL7b/zZetwCyORpNTzcdWTEobJCuyNBp8+/YDc/IMZfr4TXGd5Za5fJlFdb g1eR70fvQiXgQdzQm11XkexZfRJBLzfQ89uryr277AJeFv44LN68VqLviCum4D1WKMKo C+DEuERmqK/ENq7Sc2QnyHNe2iy+/vZIzwbNvLb3BsJQ3WOtZiNDPitVIEHm8cvZOD5q YFhQ== MIME-Version: 1.0 X-Received: by 10.170.211.4 with SMTP id c4mr47487960ykf.15.1426789516076; Thu, 19 Mar 2015 11:25:16 -0700 (PDT) Received: by 10.170.149.66 with HTTP; Thu, 19 Mar 2015 11:25:16 -0700 (PDT) In-Reply-To: <20150315200810.GA1560@jrm.no-ip.org> References: <20150315200810.GA1560@jrm.no-ip.org> Date: Thu, 19 Mar 2015 11:25:16 -0700 Message-ID: From: Martin DeMello To: =?UTF-8?Q?Jos=C3=A9_Romildo_Malaquias?= , "caml-list@inria.fr" , gpoore@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Adding support for OCaml in PythonTeX Your best bet would probably be to modify utop. Not sure how much work that would be, but at least most of the pieces are in place. martin On Sun, Mar 15, 2015 at 1:08 PM, Jos=C3=A9 Romildo Malaquias wrote: > Hello. > > PythonTeX [https://www.ctan.org/pkg/pythontex] is a LaTeX package that > allows Python code entered within a TeX document to be executed, and the > output to be included in the original document. It supports other > languagens beside Python. > > I have just requested inclusion of OCaml support in PythonTeX: > https://github.com/gpoore/pythontex/issues/62 > > The author of PythonTeX says it could be possible, and he explained what > would be needed from the OCaml side. See the discussion in issue #62 in > the previous link. > > Basically, it would need a program which reads lines from a text file, > and these lines are given as input to an interactive session, giving > back input interspersed with output. He gives more details in the issue > discussion. Please read the issue discussion in the above link. > > Is there already such a program? If not, can it be easily written? > > I appreciate any help in providing this program. > > Regards, > > Romildo > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs