emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org, Ramachandran Lakshmanan <rama@tzrl.org>
Subject: Re: Is it possible to #+include: src blocks and tangle them too?
Date: Tue, 13 Apr 2021 08:31:16 +0200	[thread overview]
Message-ID: <87im4qr8zv.fsf@web.de> (raw)
In-Reply-To: <87k0p7xjxk.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]


Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Ramachandran Lakshmanan <rama@tzrl.org> writes:
>
>> I have been wanting to include a number of small Common Lisp snippets in
>> individual files which I then include into a "master" .org file using:
>>
>> #+include: "snippet.org" src lisp
>>
>> Within snippet.org I have a src block such as:
>>
>
> [...]
>
>> I read somewhere that this is not possible in orgmode.  Is this true?  And
>> if not, can you point me to the right documentation?
>
> #+include is a keyword specific to export. I doubt it would work with
> tangling out of the box.

I tried it but didn’t get it to work. As solution I turned to autotools:

Variable definitions:
https://hg.sr.ht/~arnebab/ews/browse/Hauptdokument/ews30/configure.ac?ref=9b6d7459f2b1#L40
AC_SUBST_FILE(tabelle_kernantriebe)
tabelle_kernantriebe=$srcdir/tabelle-kernantriebe.org

Replacement definition:
https://hg.sr.ht/~arnebab/ews/browse/Hauptdokument/ews30/configure.ac?ref=9b6d7459f2b1#L69
AC_CONFIG_FILES([chargen.org])

Usage:
https://hg.sr.ht/~arnebab/ews/browse/Hauptdokument/ews30/chargen.org.in?ref=9b6d7459f2b1#L552
@tabelle_kernantriebe@

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

  reply	other threads:[~2021-04-13  6:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 15:35 Ramachandran Lakshmanan
2021-04-12 21:38 ` Nicolas Goaziou
2021-04-13  6:31   ` Dr. Arne Babenhauserheide [this message]
2021-04-13  6:59   ` Timothy
2021-04-14  0:26   ` Kevin M. Stout
2021-04-14  3:23 ` Greg Minshall
2021-04-14  3:48   ` Rama
2021-04-14  6:33     ` Dr. Arne Babenhauserheide
2021-04-14  6:52     ` Greg Minshall
2021-04-16 15:27     ` Greg Minshall
2021-04-16 21:14       ` Berry, Charles via General discussions about Org-mode.

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=87im4qr8zv.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=rama@tzrl.org \
    --subject='Re: Is it possible to #+include: src blocks and tangle them too?' \
    /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

Code repositories for project(s) associated with this 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).