From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: org-mode for swi-prolog and latex export ? Date: Sun, 20 Jul 2014 22:37:22 +0200 Message-ID: References: <87lhrolakb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c10a5b912d04fea5f68e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8xrc-0008Bu-Qo for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 16:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8xrb-0007H6-Qd for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 16:37:44 -0400 Received: from mail-vc0-x22a.google.com ([2607:f8b0:400c:c03::22a]:40776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8xrb-0007H1-LJ for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 16:37:43 -0400 Received: by mail-vc0-f170.google.com with SMTP id lf12so10684104vcb.29 for ; Sun, 20 Jul 2014 13:37:43 -0700 (PDT) In-Reply-To: <87lhrolakb.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: "Liste-emacs-orgmode@gnu.org" --001a11c3c10a5b912d04fea5f68e Content-Type: text/plain; charset=UTF-8 2014-07-20 10:05 GMT+02:00 Thorsten Jolitz : > 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. --001a11c3c10a5b912d04fea5f68e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= 2014-07-20 10:05 GMT+02:00 Thorsten Jolitz <tjolitz@gmail.com>:
I have not seen an= ob-prolog.el yet, but maybe it does exist? =C2=A0If 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
| =C2=A0( ... 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 r= eply. Unfortunately, I don't see option to export into=C2=A0 the prolog= .pl format. If someone can explain to me how export any code=C2=A0 (python= , prolog, ocaml, etc.)=C2=A0 if it is possible with org-mode, I will be th= ankfull.

Best regards,

Jo.

--001a11c3c10a5b912d04fea5f68e--