[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inline references in noweb?

From: Norman Walsh
Subject: Inline references in noweb?
Date: Sun, 05 Jan 2020 09:47:00 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)


I’ve read through most of the docs that turn up with the obvious web
searches and I haven’t been able to figure this out. However, it seems
like it should be possible…

I’m quite pleased with how babel and noweb can be used to write
“literate programs” for configuration files and scripts.

Cross references between code blocks with <<noweb-references>> work
just fine. What I’d like, but can’t work out, is how to refer to, for
example, a configuration value inline. Something like this:

  In order to engage the flux capacitor, you must set the
  chronometer dial to ~<<required_date>>~.

  #+begin_src conf :noweb yes
  date: <<required_date>>

I don’t care how or where “required_date” is defined, I just want the
ability to refer to it in the documentation and in code blocks.

Have I overlooked something obvious?

                                        Be seeing you,

Norman Walsh <address@hidden> | The stone fell on the pitcher? Woe to
http://nwalsh.com/            | the pitcher. The pitcher fell on the
                              | stone? Woe to the pitcher.--Rabbinic
                              | Saying

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]