From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: org-mode for swi-prolog and latex export ? Date: Sun, 20 Jul 2014 10:05:24 +0200 Message-ID: <87lhrolakb.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8m7s-00026X-L9 for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 04:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8m7l-0005tx-2u for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 04:05:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:42819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8m7k-0005tr-SC for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 04:05:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X8m7j-0001k3-Mm for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 10:05:35 +0200 Received: from e178190183.adsl.alicedsl.de ([85.178.190.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 10:05:35 +0200 Received: from tjolitz by e178190183.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 10:05:35 +0200 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: emacs-orgmode@gnu.org Joseph Vidal-Rosset writes: > Hello the list, > > Here is my question : is there a mean to use org-mode to export both > the prolog file (for example my-program.pl) and the documentation in . > tex (my-program.tex) ? > > I see that there are solutions in swi-prolog but I have difficulties > to understand the documentation, and therefore I wonder if there is an > org-mode route. 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. -- cheers, Thorsten