\documentclass{article} \usepackage{axiom} \begin{document} \title{no title} \author{The Axiom Team} \maketitle \begin{abstract} \end{abstract} \eject \tableofcontents \eject \section{The code} This ought to work. <>= #!/bin/sh echo it works @ \section{The Makefile} And this is the magic <<*>>= tangle=/usr/local/noweb/notangle -t8 weave=/usr/local/noweb/noweave -delay all: source doc source: jose.pamphlet ${tangle} -Rcode jose.pamphlet >jose.sh doc: jose.pamphlet ${weave} jose.pamphlet >jose.tex latex jose.tex latex jose.tex remake: jose.pamphlet ${tangle} jose.pamphlet >Makefile @ \eject \begin{thebibliography}{99} \bibitem{1} nothing \end{thebibliography} \end{document}