Version française
Home     About     Download     Resources     Contact us    
Browse thread
Syntaxe Caml en LaTeX
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] Syntaxe Caml en LaTeX
Pierre-Etienne Meunier wrote:

> Here comes the english version :
> 
> I'd like to include Caml code in a LaTeX file, but since it is pretty 
> big, I want it to be easily readable. Then I want to keep the colored 
> syntax, like in tuareg for emacs. Do you know how to do it ?

You could use the Scintilla (http://www.scintilla.org/) text editing 
component - and the editor based on it, SciTE 
(http://www.scintilla.org/SciTE.html).

It "understands" OCaml source inasmuch as it can syntax color it... 
combined with the ability [in SciTE] to export to LaTeX (as well as 
HTML, PDF and more), your needs may be met.

Note that the specific colors used for the syntax elements are easily 
adjusted by editing the "caml.properties" file.

Robert Roessler
roessler@rftp.com
http://www.rftp.com