On 8/27/07, luigi scarso <[EMAIL PROTECTED]> wrote:
> On 8/28/07, John Luciani <[EMAIL PROTECTED]> wrote:
> > I created the file hello.w containing the following lines ---
> >
> > @** Hello.
> >
> > @c
> > @<header files@>@;
> >
> > int main(void) {
> >   printf("Hello World.\n");
> >   return(0);
> > }
> >
> > @ Header files.
> > @<header files@>+=
> > #include <stdio.h>
> >
> > I run the commands
> >     cweave hello.w
> >     texexec --pdf --modules m-cweb hello.tex
> >
> > The text that is output in hello.pdf are cweb macros ---
> >
> > \input cwebmac
> > \N{0}{1}Hello.
> > \Y\B\X2:header files\X\7
> For printed version
>
> $> texexec --pdf test.tex
> %% hello.tex
> \input m-cweb
> \activateCWEB
> \starttext
> \N{0}{1}Hello.
>
> \Y\B\X2:header files\X\7
> \&{int} \\{main}(\&{void})\1\1\2\2\6
> ${}\{{}$\1\6
> \\{printf}(\.{"Hello\ World.\\n"});\6
> \&{return} (\T{0});\6
> \4${}\}{}$\2\par
> \fi
>
> \M{2}Header files.
> \Y\B\4\X2:header files\X${}\E{}$\6
> \8\#\&{include} \.{<stdio.h>}\par
>
> \U1.\fi
>
>
> \inx
> \fin
> \con
> \stoptext

Thanks. The printed version now compiles!

I noticed the following differences from the pdftex version ---
  * The first line is not indented
  * The section hyperlinks are not created
  * The @d sections and the @< @> declaration sections begin in the
     left margin.

>
> for screen ....

???

Thanks for your help.

(* jcl *)

-- 
http://www.luciani.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to