From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mode for swi-prolog and latex export ? Date: Mon, 21 Jul 2014 14:27:30 -0400 Message-ID: <874mya7ejx.fsf@alphaville.bos.redhat.com> References: <87lhrolakb.fsf@gmail.com> <87d2czbb2m.fsf@gmail.com> <87fvhvni8c.fsf@gmail.com> <8761ir3tfs.fsf@alphaville.bos.redhat.com> <8761iqbzjq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9ILp-0007Nq-8S for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:30:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9ILf-00054k-1s for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:30:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:45072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9ILe-00053v-Sa for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 14:30:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X9ILb-0006FH-NE for emacs-orgmode@gnu.org; Mon, 21 Jul 2014 20:30:03 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2014 20:30:03 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2014 20:30:03 +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: > 2014-07-21 15:40 GMT+02:00 Nick Dokos : > > > 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