* [Caml-list] insert ocaml source in latex
@ 2011-08-29 15:12 michel levy
2011-08-29 15:31 ` Benoit Montagu
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: michel levy @ 2011-08-29 15:12 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
I want to insert some Ocaml expressions in latex, but by cut/paste it's
impossible, because I lose
the identation.
Do you have a solution to insert Ocaml source in latex document ?
Do you know if someone has written a definition for using ocaml with the
listings package ?
--
Michel Lévy 36 rue George Sand 38400 Saint Martin d'Hères
tel : +33(0)476243339
email : michel.levy@imag.fr
http://membres-liglab.imag.fr/michel.levy
[-- Attachment #2: Type: text/html, Size: 974 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] insert ocaml source in latex
2011-08-29 15:12 [Caml-list] insert ocaml source in latex michel levy
@ 2011-08-29 15:31 ` Benoit Montagu
2011-08-29 15:41 ` Maxence Guesdon
2011-08-29 15:48 ` michel levy
2 siblings, 0 replies; 6+ messages in thread
From: Benoit Montagu @ 2011-08-29 15:31 UTC (permalink / raw)
To: michel levy; +Cc: caml-list
> I want to insert some Ocaml expressions in latex, but by cut/paste it's
> impossible, because I lose
> the identation.
> Do you have a solution to insert Ocaml source in latex document ?
> Do you know if someone has written a definition for using ocaml with the
> listings package ?
It might not be up to date, but there is one that is included in the
default listings package.
\lstset{
language=[Objective]Caml
}
should work.
-- Benoit
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] insert ocaml source in latex
2011-08-29 15:12 [Caml-list] insert ocaml source in latex michel levy
2011-08-29 15:31 ` Benoit Montagu
@ 2011-08-29 15:41 ` Maxence Guesdon
2011-08-29 15:48 ` michel levy
2 siblings, 0 replies; 6+ messages in thread
From: Maxence Guesdon @ 2011-08-29 15:41 UTC (permalink / raw)
To: michel levy; +Cc: caml-list
On Mon, 29 Aug 2011 17:12:13 +0200
michel levy <michel.levy@imag.fr> wrote:
> I want to insert some Ocaml expressions in latex, but by cut/paste it's
> impossible, because I lose
> the identation.
> Do you have a solution to insert Ocaml source in latex document ?
> Do you know if someone has written a definition for using ocaml with the
> listings package ?
You may have a look at highlight:
http://www.andre-simon.de/doku/highlight/en/highlight.html
-- Maxence
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] insert ocaml source in latex
2011-08-29 15:12 [Caml-list] insert ocaml source in latex michel levy
2011-08-29 15:31 ` Benoit Montagu
2011-08-29 15:41 ` Maxence Guesdon
@ 2011-08-29 15:48 ` michel levy
2011-08-29 16:16 ` Esther Baruk
2 siblings, 1 reply; 6+ messages in thread
From: michel levy @ 2011-08-29 15:48 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
On 29/08/2011 17:12, michel levy wrote:
> I want to insert some Ocaml expressions in latex, but by cut/paste
> it's impossible, because I lose
> the identation.
> Do you have a solution to insert Ocaml source in latex document ?
> Do you know if someone has written a definition for using ocaml with
> the listings package ?
>
Thank you all, for your answers to my questions.
But for my limited needs, I have also seen that cut/paste was a
solution, if, in emacs,
you replace the tabs by spaces. For example, M-x untabify replaces in a
selected region the tabs by spaces.
[-- Attachment #2: Type: text/html, Size: 1128 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] insert ocaml source in latex
2011-08-29 15:48 ` michel levy
@ 2011-08-29 16:16 ` Esther Baruk
0 siblings, 0 replies; 6+ messages in thread
From: Esther Baruk @ 2011-08-29 16:16 UTC (permalink / raw)
To: michel levy; +Cc: caml-list
[-- Attachment #1: Type: text/plain, Size: 877 bytes --]
Hi,
for this purpose, you can also add " '(indent-tabs-mode nil)" to your
"custom-set-variables" in your .emacs file.
This will put some spaces when you press TAB instead of a tabulation.
Esther Baruk
On Mon, Aug 29, 2011 at 5:48 PM, michel levy <michel.levy@imag.fr> wrote:
> **
> On 29/08/2011 17:12, michel levy wrote:
>
> I want to insert some Ocaml expressions in latex, but by cut/paste it's
> impossible, because I lose
> the identation.
> Do you have a solution to insert Ocaml source in latex document ?
> Do you know if someone has written a definition for using ocaml with the
> listings package ?
>
> Thank you all, for your answers to my questions.
> But for my limited needs, I have also seen that cut/paste was a solution,
> if, in emacs,
> you replace the tabs by spaces. For example, M-x untabify replaces in a
> selected region the tabs by spaces.
>
>
[-- Attachment #2: Type: text/html, Size: 1524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1021401908.2930.1314630761934.JavaMail.root@zmbs2.inria.fr>]
end of thread, other threads:[~2011-08-29 16:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-29 15:12 [Caml-list] insert ocaml source in latex michel levy
2011-08-29 15:31 ` Benoit Montagu
2011-08-29 15:41 ` Maxence Guesdon
2011-08-29 15:48 ` michel levy
2011-08-29 16:16 ` Esther Baruk
[not found] <1021401908.2930.1314630761934.JavaMail.root@zmbs2.inria.fr>
2011-08-29 15:37 ` luc.maranget
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox