Difference between revisions of "CWEB"

From Wiki
Jump to navigation Jump to search
 
m (added parent link and pretty print)
Line 1: Line 1:
< [[The ConTeXt Way]]
+
< [[The ConTeXt Way]] | [[Modules]] | [[Bugs and workarounds]] >
  
 
Currenlty m-cweb seems to be broken. Take the wc.tex from the example directory from the cweb distribution (made with <tt>cweave wc.w</tt>) and you should be able to use it like this:
 
Currenlty m-cweb seems to be broken. Take the wc.tex from the example directory from the cweb distribution (made with <tt>cweave wc.w</tt>) and you should be able to use it like this:
  
<pre>
+
<texcode>
 
\usemodule [cweb]
 
\usemodule [cweb]
  
Line 14: Line 14:
  
 
\stoptext
 
\stoptext
</pre>
+
</texcode>
  
 
but ConTeXt is in an endless loop at:
 
but ConTeXt is in an endless loop at:

Revision as of 14:20, 13 September 2004

< The ConTeXt Way | Modules | Bugs and workarounds >

Currenlty m-cweb seems to be broken. Take the wc.tex from the example directory from the cweb distribution (made with cweave wc.w) and you should be able to use it like this:

\usemodule [cweb]

\starttext

\title {Contents} \processCWEBcontents wc \page
\title {Sections} \processCWEBsections wc \page
\title {Sources}  \processCWEBsource   wc \page
\title {Index}    \processCWEBindex    wc \page

\stoptext

but ConTeXt is in an endless loop at:

This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
 \write18 enabled.
 %&-line parsing enabled.
 (/opt/texlive/8/texmf/web2c/cp8bit.tcx)
entering extended mode

...

system         : macros of module cweb loaded
(/opt/context/2004.6.26/texmf/tex/context/base/m-cweb.tex
system         : mark CWEBfilename defined [CWEBfilename]
system         : mark CWEBsectiontitle defined [CWEBsectiontitle]
system         : mark CWEBsectionnumber defined [CWEBsectionnumber]
system         : mark CWEBsectiondepth defined [CWEBsectiondepth]
)
fonts          : needs map file: ec-public-lm.map
fonts          : needs map file: original-base.map
systems        : begin file main at line 3
title          : - Contents

What is wrong here?