4

I have a number of parameter files that my code needs as inputs and I would like them all to be in the same org file in different blocks and have them all tangled to different files.

Can I somehow tangle #+BEGIN_EXAMPLE ... #+END_EXAMPLE blocks or some other block type? I tried this which didn't work:

#+BEGIN_EXAMPLE :tangle methanol.rtf

MASS     1 H      1.00800 H ! polar H
...
#+END_EXAMPLE

Alternatively can I define new languages for org-mode to recognize but not execute?

1 Answer 1

6

Just use fundamental as "language", i.e. replace your example by:

#+BEGIN_SRC fundamental :tangle methanol.rtf

MASS     1 H      1.00800 H ! polar H
...
#+END_SRC
4
  • This doesn't work if I have something in the block that take the form of an org-mode header, I've posted another question emacs.stackexchange.com/questions/19656/…
    – salotz
    Commented Jan 18, 2016 at 20:59
  • org 0.9 this throws an error: org-babel-execute-src-block: No org-babel-execute function for fundamental! any idea?
    – doctorate
    Commented Aug 17, 2017 at 11:46
  • @doctorate That source code block is not intended to be executed. Don't press C-c C-c on it! The original poster only wants to tangle.
    – Tobias
    Commented Aug 17, 2017 at 11:50
  • I see, so C-c C-v t.
    – doctorate
    Commented Aug 17, 2017 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.