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: Nick Dokos
Subject: Re: [O] org-mode for swi-prolog and latex export ?
Date: Mon, 21 Jul 2014 14:27:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Joseph Vidal-Rosset <address@hidden> writes:

> 2014-07-21 15:40 GMT+02:00 Nick Dokos <address@hidden>:
>
>     > It is only because I do not understand how to "tangle the (prolog)
>     > code". I know the export function but I know nothing about tangle. Do
>     > not feel forced to answer. I know that I have to read the
>     > documentation first and I apologize.
>     >
>    
>     C-c C-v C-t
>    
>     or
>    
>     M-x org-babel-tangle
>
> Dear Nick,
>
> Many thanks for your impressive patience with newbies like me.
>

No problem - btw, I tried tangling the following and it worked with no
problems:

--8<---------------cut here---------------start------------->8---
#+PROPERTY: :exports code

* Documentation

This is documentation. It refers to a Prolog code
block which we want to tangle:

#+BEGIN_SRC prolog :tangle yes
foo :- bar.
#+END_SRC

#+BEGIN_SRC emacs-lisp :tangle yes
(setq foo bar)
#+END_SRC

#+name: preamble
#+begin_src latex :tangle preamble.tex
  % code goes here
#+end_src


--8<---------------cut here---------------end--------------->8---

Nick





reply via email to

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