From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode for swi-prolog and latex export ?
Date: Mon, 21 Jul 2014 14:27:30 -0400 [thread overview]
Message-ID: <874mya7ejx.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: CAD-VTcGS-obd-DybKgG_j2TrZ=4FbE8Mm_QGBEP1Qwe5Q7QuEw@mail.gmail.com
Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> 2014-07-21 15:40 GMT+02:00 Nick Dokos <ndokos@gmail.com>:
>
> > 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
prev parent reply other threads:[~2014-07-21 18:30 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mya7ejx.fsf@alphaville.bos.redhat.com \
--to=ndokos@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.