<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/928667cae629843ec349774c5971067d"
  from="Martin Jambon &lt;martin_jambon@e...&gt;"
  author="Martin Jambon"
  date="2005-05-29T23:26:16"
  subject="Re: [Caml-list] Syntaxe Caml en LaTeX"
  prev="2005/05/56f407dc3d21dc1297cdb13574bdcfa5"
  next="2005/05/12eb8e9c4d0a3b61eaf2b18ee41fdde4"
  prev-in-thread="2005/05/56f407dc3d21dc1297cdb13574bdcfa5"
  next-in-thread="2005/05/7eefb30de1ae624335d93464b385be7c"
  prev-thread="2005/05/034a45e75fe608992a6dfbf1786f1d2d"
  next-thread="2005/05/d298027f22c532037195c387de551c13"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Syntaxe Caml en LaTeX">
<msg 
  url="2005/05/56f407dc3d21dc1297cdb13574bdcfa5"
  from="Pierre-Etienne Meunier &lt;meunier.pe@f...&gt;"
  author="Pierre-Etienne Meunier"
  date="2005-05-29T11:53:26"
  subject="Syntaxe Caml en LaTeX">
<msg 
  url="2005/05/928667cae629843ec349774c5971067d"
  from="Martin Jambon &lt;martin_jambon@e...&gt;"
  author="Martin Jambon"
  date="2005-05-29T23:26:16"
  subject="Re: [Caml-list] Syntaxe Caml en LaTeX">
<msg 
  url="2005/05/7eefb30de1ae624335d93464b385be7c"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-30T10:41:04"
  subject="Re: [Caml-list] Syntaxe Caml en LaTeX">
</msg>
<msg 
  url="2005/05/f7d03a54af7b3da73362c55370fff386"
  from="Janne Hellsten &lt;jjhellst@g...&gt;"
  author="Janne Hellsten"
  date="2005-05-31T19:56:59"
  subject="ocaml + enscript (was Re: [Caml-list] Syntaxe Caml en LaTeX)">
</msg>
</msg>
<msg 
  url="2005/05/12eb8e9c4d0a3b61eaf2b18ee41fdde4"
  from="Chris Campbell &lt;cyberdanx@g...&gt;"
  author="Chris Campbell"
  date="2005-05-29T23:49:35"
  subject="Re: [Caml-list] Syntaxe Caml en LaTeX">
</msg>
<msg 
  url="2005/05/4829bcb645589c3e49b7525fdbcfb549"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-30T01:59:57"
  subject="Re: [Caml-list] Syntaxe Caml en LaTeX">
</msg>
</msg>
</thread>

<contents>
On Sun, 29 May 2005, Pierre-Etienne Meunier wrote:

&gt; Bonjour,
&gt;
&gt; Je voudrais savoir s'il y a un moyen d'intégrer les couleurs de syntaxe
&gt; Caml (comme avec tuareg dans emacs) dans une page LaTeX, pour rendre le
&gt; code présentable.
&gt; Amicalement,
&gt; Pierre-Etienne Meunier (meunier.pe@free.fr)
&gt;
&gt; Here comes the english version :
&gt;
&gt; I'd like to include Caml code in a LaTeX file, but since it is pretty
&gt; big, I want it to be easily readable. Then I want to keep the colored
&gt; syntax, like in tuareg for emacs. Do you know how to do it ?
&gt; Best regards,
&gt; Pierre-Etienne Meunier (meunier.pe@free.fr)

I don't know what people have used so far (you can ask Jon Harrop what he
used for his book http://www.ffconsultancy.com/products/ocaml_for_scientists/).

One solution would be to adapt Caml2html
(http://martin.jambon.free.fr/caml2html.html).
You can either (1) start an independent Caml2latex library/executable and
reuse some code from Caml2html, or (2) make Caml2html polyglot.
IMO solution (1) is better than (2) since the OCaml parser does not
require a lot of maintenance as opposed to the formatting options which
are not really reusable anyway.

Otherwise, you can convert your program to colorized PostScript with
enscript (ask Janne Hellsten, google for "ocaml and enscript") or directly
from emacs.


Martin

--
Martin Jambon, PhD
http://martin.jambon.free.fr


</contents>

</message>

