From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4CD40BCAC for ; Sun, 5 Jun 2005 14:23:28 +0200 (CEST) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j55CNRPT004846 for ; Sun, 5 Jun 2005 14:23:28 +0200 X-T2-Posting-ID: FB7EDTVbQLmZOKCCt7SBiIkpw6OYflR4F4scAbGluws= Received: from [213.103.56.102] ([213.103.56.102] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 4.3.2) with ESMTP id 375877955 for caml-list@yquem.inria.fr; Sun, 05 Jun 2005 14:23:24 +0200 Message-ID: <42A2EE70.3080305@free.fr> Date: Sun, 05 Jun 2005 14:22:08 +0200 From: Pierre-Etienne Meunier User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Caml mailing list Subject: Caml2TeX Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-j-chkmail-Score: MSGID : 42A2EEBF.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 42A2EEBF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 emacs:01 bug:01 compiler:01 compiler:01 en-tetes:01 connus:01 emacs:01 compilateur:01 bug:01 ...:98 wrote:01 wrote:01 compile:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Hi, I am proud to announce the first release of Caml2TeX, an application that produces LaTeX2e code from caml (OCaml, Caml light) source files. Available at : http://martin.jambon.fr/caml2html.html Since I wrote it very quickly from the Caml2html code, it may still have a few bugs, but it worked for the caml files I did it for. My main goal when I wrote it was to avoid creating a new LaTeX package. It makes my TeX files very portable : you dont need to install anything to compile the documents. Known bugs : - The standard Caml functions are not recognized as functions by Caml2TeX - The functions following '#' (OCaml objects) are not recognized as functions - I write my Caml code with emacs, which produces weird indentations, badly detected by Caml2TeX - If argument 'a' is passed to function 'f', and 'a' is already declared as a function, 'a' is considered a function in 'f', but it should be considered an argument. In my opinion, it should lead to a bug in the caml compiler : how do you use function 'a' in 'f' ? P.E. Meunier Bonjour, Je suis fier de vous annoncer la sortie de Caml2TeX, une application qui transforme du code Caml en document LaTeX2e. Vous pouvez le trouver sur : http://martin.jambon.fr/caml2html.html Je l'ai écrit très vite à partir du code de Caml2html, donc il peut rester quelques bugs, mais il a suffi pour les fichiers pour lesquels je l'ai écrit. Mon principal objectif était de rendre mes fichiers TeX portables, c'est-à-dire d'éviter de créer des nouveaux packages LaTeX. Donc, aucune installation nécessaire pour compiler les documents LaTeX. Par contre, les en-têtes sont très longues. Bugs connus : - Les fonctions de caml (float_of_int, print_int...) ne sont pas reconnues comme fonctions par Caml2TeX - Les fonctions qui suivent un # (les objets de OCaml) ne sont pas reconnues comme fonctions. - J'écris mon Caml avec emacs, les indentations sont un peu étranges et mal reconnues par Caml2TeX - Si on passe à une fonction 'f' un argument 'a', et que 'a' est déjà déclaré comme fonction, 'a' ne sera pas reconnu comme un argument dans 'f' mais comme une fonction. A mon avis, le compilateur Caml devrait le reconnaître comme un bug : comme on fait pour utiliser la fonction 'a' dans 'f' ? P.E. Meunier