emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: David Bremner <david@tethera.net>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: tangling from multiple files
Date: Thu, 19 Mar 2020 02:38:31 +0000	[thread overview]
Message-ID: <FB8EC846-4B92-415B-AB73-7B7C27C35973@health.ucsd.edu> (raw)
In-Reply-To: <87imj1i143.fsf@tethera.net>

> On Mar 18, 2020, at 6:29 PM, David Bremner <david@tethera.net> wrote:
> "Berry, Charles" <ccberry@health.ucsd.edu> writes:
>>> On Mar 17, 2020, at 4:21 PM, David Bremner <david@tethera.net> wrote:
>>> I've seen this question around e.g. stack overflow, but none of the
>>> answers I found seems really satisfactory.
>>> I'd like to share a set of begin_src / end_src blocks in a.org between
>>> b.org and c.org; in particular b.org and c.org contain noweb references
>>> to names defined in a.org. Is there a better way than using
>>> (org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring
>>> manual action every time a.org changes.
>> Put 
>> #+include: ./a./org
>> directives in b.org and c.org
>> You might want to put the directives inside a non-exported drawer. See `org-export-with-drawers’  docstring.
> This works fine (modulo the extra /) for exporting, but doesn't seem to
> work for tangling. Does it work for tangling for you; i.e. is b.scm
> produced with the two defines in it?

Right. It does not work directly for tangling. So also use 

#+export_file_name: b2.org


Then load ox-ob.el, export as C-c C-e O o (org-org-export-to-org),  visit b2.org and tangle from there. 



  reply	other threads:[~2020-03-19  2:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 23:21 tangling from multiple files David Bremner
2020-03-18 22:10 ` Berry, Charles via General discussions about Org-mode.
2020-03-19  1:29   ` David Bremner
2020-03-19  2:38     ` Berry, Charles via General discussions about Org-mode. [this message]
2020-03-19 17:40       ` Berry, Charles via General discussions about Org-mode.
2020-04-04 18:08         ` David Bremner
2020-04-05 17:56           ` Berry, Charles via General discussions about Org-mode.
2020-04-08 17:14             ` David Bremner

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:

  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=FB8EC846-4B92-415B-AB73-7B7C27C35973@health.ucsd.edu \
    --to=emacs-orgmode@gnu.org \
    --cc=ccberry@health.ucsd.edu \
    --cc=david@tethera.net \


* 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 public inbox


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).