emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode for swi-prolog and latex export ?
Date: Sun, 20 Jul 2014 10:05:24 +0200	[thread overview]
Message-ID: <87lhrolakb.fsf@gmail.com> (raw)
In-Reply-To: CAD-VTcFdCdy8pBcOTst7GkGc2kiprMtvXBULMvkRCz=qZFPF4Q@mail.gmail.com

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> 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

  reply	other threads:[~2014-07-20  8:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-20  7:54 org-mode for swi-prolog and latex export ? Joseph Vidal-Rosset
2014-07-20  8:05 ` Thorsten Jolitz [this message]
2014-07-20 20:37   ` Joseph Vidal-Rosset
2014-07-20 21:38     ` Thomas S. Dye
2014-07-21  4:16       ` Nick Dokos
2014-07-21  9:15         ` Joseph Vidal-Rosset
2014-07-21 10:01           ` Thorsten Jolitz
2014-07-21 10:19             ` Nick Dokos
2014-07-21 10:34               ` Joseph Vidal-Rosset
2014-07-21 13:40                 ` Nick Dokos
2014-07-21 17:49                   ` Joseph Vidal-Rosset
2014-07-21 18:27                     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhrolakb.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).