From: Chris Campbell <cyberdanx@gmail.com>
To: Pierre-Etienne Meunier <meunier.pe@free.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Syntaxe Caml en LaTeX
Date: Mon, 30 May 2005 00:49:34 +0100 [thread overview]
Message-ID: <c22844d105052916494f664720@mail.gmail.com> (raw)
In-Reply-To: <4299ACEA.5050901@free.fr>
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
On 29/05/05, Pierre-Etienne Meunier <meunier.pe@free.fr> wrote:
>
>
> 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 ?
> Best regards,
> Pierre-Etienne Meunier (meunier.pe@free.fr)
You might consider using the listings package for latex.
http://www.atscire.de/index.php?nav=products/listings
I have not used it for OCaml code, but I think you can use
\lstset{language=[objective]Caml}
or something like that.
It supports small code snippets, larger snippets and separate files.
You can customise it to set the colours of keywords, symbols, etc.
\lstset{keywordstyle=\color{blue}, stringstyle=\color{green}}
It's all documented in the pdf inside the zip.
If it doesn't support of the current ocaml syntax, it's fairly easy to tweak
it.
[-- Attachment #2: Type: text/html, Size: 1373 bytes --]
next prev parent reply other threads:[~2005-05-29 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-29 11:52 Pierre-Etienne Meunier
2005-05-29 23:25 ` [Caml-list] " Martin Jambon
2005-05-30 10:40 ` Jon Harrop
2005-05-31 19:56 ` ocaml + enscript (was Re: [Caml-list] Syntaxe Caml en LaTeX) Janne Hellsten
2005-05-29 23:49 ` Chris Campbell [this message]
2005-05-30 2:01 ` [Caml-list] Syntaxe Caml en LaTeX Robert Roessler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c22844d105052916494f664720@mail.gmail.com \
--to=cyberdanx@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=meunier.pe@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox