Well, an ugly but effective perl script has been used for ages for doing this... http://caml.inria.fr/pub/old_caml_site/caml-list-ar/0651.html Many of us (including me) have a modified version adapted to their LaTeX style. If somebody takes the time to revamp all this, and properly package it, with documentation, etc. , that would be really cool :-) 2015-03-15 21:08 GMT+01:00 José Romildo Malaquias : > Hello. > > PythonTeX [https://www.ctan.org/pkg/pythontex] is a LaTeX package that > allows Python code entered within a TeX document to be executed, and the > output to be included in the original document. It supports other > languagens beside Python. > > I have just requested inclusion of OCaml support in PythonTeX: > https://github.com/gpoore/pythontex/issues/62 > > The author of PythonTeX says it could be possible, and he explained what > would be needed from the OCaml side. See the discussion in issue #62 in > the previous link. > > Basically, it would need a program which reads lines from a text file, > and these lines are given as input to an interactive session, giving > back input interspersed with output. He gives more details in the issue > discussion. Please read the issue discussion in the above link. > > Is there already such a program? If not, can it be easily written? > > I appreciate any help in providing this program. > > Regards, > > Romildo > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- Roberto Di Cosmo ------------------------------------------------------------------ Professeur En delegation a l'INRIA PPS E-mail: roberto@dicosmo.org Universite Paris Diderot WWW : http://www.dicosmo.org Case 7014 Tel : ++33-(0)1-57 27 92 20 5, Rue Thomas Mann F-75205 Paris Cedex 13 Identica: http://identi.ca/rdicosmo FRANCE. Twitter: http://twitter.com/rdicosmo ------------------------------------------------------------------ Attachments: MIME accepted, Word deprecated http://www.gnu.org/philosophy/no-word-attachments.html ------------------------------------------------------------------ Office location: Bureau 320 (3rd floor) Batiment Sophie Germain Avenue de France Metro Bibliotheque Francois Mitterrand, ligne 14/RER C ----------------------------------------------------------------- GPG fingerprint 2931 20CE 3A5A 5390 98EC 8BFC FCCA C3BE 39CB 12D3