Package: noweb
Version: 2.11b-7
Severity: normal

man noweb says
<quote>
the first documentation chunk must contain a LaTeX \documentclass
command,  it  must contain  \usepackage{noweb}  in  the preamble, and
finally it must also contain a LaTeX \begin{document} command.
</quote>

So I tried this (simplified example):
<sample>
@
\documentclass{article}
\usepackage{noweb}
\begin{document}
Hi there.

<<t1.py>>=
class Foo:
   pass
@
\end{document}
</sample>

Running this through noweb produces a tex file that can't be latexed
because the first word is an undefined control sequence.

Experimenting revealed that removing the first line, the one with the
@, fixed the problem.  It also showed that emacs noweb mode kept
jumping to the top of the file every time I hit enter or tab when the
first @ was missing.  So the first alternative doesn't work and the
second produces a file that is very difficult to edit with emacs.
Note I do have ess installed, and as per another bug I'm getting emacs
noweb mode from there.

The second issue is that the format of the input file differs between
noweb and noweave.  The latter generates the boilerplate automatically
(\documentclass through \begin{document} as well as the
\end{document}) and also has different rules for generating output
files than noweb (noweb makes file from all top level code blocks with
names that contain no spaces while notangle creates it from <<*>> by
default or a command-line specified name).

It is unfortunate that the two commands, in the same system, place
contradictory requirements on the input file.

-- System Information:
Debian Release: 5.0.9
  APT prefers oldstable
  APT policy: (995, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages noweb depends on:
ii  gawk                    1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii  iconx                   9.4.3-2          Executor for Icon, a high-level pr
ii  libc6                   2.7-18lenny7     GNU C Library: Shared libraries

noweb recommends no packages.

noweb suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to