Minimal cross-link noweb example

I am trying to find a good tool for competent programming. Let me just say that this is not an easy decision. (Generals are too universal and specifics are too specific :))

Among others, I have noweband it works, but I have problems getting output, as I expected. The noweb wikipedia page has a minimal example that builds correctly with

noweave -index -latex hello.noweb > hello.tex && pdflatex hello && pdflatex hello

but at the end of each fragment there are no cross-references. For example, CWEBhas pointers such as "This code is used in section 12." and "See also sections 5 and 7." Is this function just missing in nowebor am I missing a compilation step?

+5
source share
2 answers

Is this function just missing in noweb or am I missing a compilation step?

None: nowebuses much thinner markers than you are used to seeing from CWEB. In the case of the Wikipedia example, the third piece (1c) appears in pieces 1a and 1b. This information is condensed into one “1”, which appears in parentheses on the right side of the definition.

To get long CWEB-style cross-references, use

\noweboptions{longxref}
+4
source

WP Hello World. , .

-, \nowebchunks (.. ) -x noweb.

, \nowebindex .

+1

All Articles