emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-mode for swi-prolog and latex export ?


From: Joseph Vidal-Rosset
Subject: Re: [O] org-mode for swi-prolog and latex export ?
Date: Sun, 20 Jul 2014 22:37:22 +0200


2014-07-20 10:05 GMT+02:00 Thorsten Jolitz <address@hidden>:
I have not seen an ob-prolog.el yet, but maybe it does exist?  If so,
exporting both code and result of its execution would be:

,----
| * My documentation
|
| Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
| hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
| nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis
| natoque penatibus et magnis dis parturient montes, nascetur ridiculus
| mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non
| turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
| accumsan nisl.
|
| #+header: :exports both
| #+begin_src prolog
|  ( ... my-program ...)
| #+end_src
`----

PS
Code and documentation text is always exported together, thats what
Org Babel is for, as long as you don't specify :exports none or so.

Thanks for this reply. Unfortunately, I don't see option to export into  the prolog .pl format. If someone can explain to me how export any code  (python , prolog, ocaml, etc.)  if it is possible with org-mode, I will be thankfull.

Best regards,

Jo.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]