From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36344 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Using context with cweave Date: Sat, 1 Sep 2007 01:01:06 +0200 Message-ID: References: <608bfe540708271838h5e567c6cm1aa92a20a4d24536@mail.gmail.com> <608bfe540708280432m178923a0w80c1c7f0063eea94@mail.gmail.com> <608bfe540708280520w6152e7d6x9171e60748a08269@mail.gmail.com> <608bfe540708310516u7678254cv3efd4e812a7f8d71@mail.gmail.com> <608bfe540708311017l4e6335c4qb91aaac5a4f51d60@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0503317046==" X-Trace: sea.gmane.org 1188603165 15476 80.91.229.12 (31 Aug 2007 23:32:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 23:32:45 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 01 01:32:43 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IRFyl-0003IG-Pq for gctc-ntg-context-518@m.gmane.org; Sat, 01 Sep 2007 01:32:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84F8F1FCB1; Sat, 1 Sep 2007 01:32:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22002-02-2; Sat, 1 Sep 2007 01:32:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC1F6203BA; Sat, 1 Sep 2007 01:01:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6BA10203BA for ; Sat, 1 Sep 2007 01:01:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17041-02-18 for ; Sat, 1 Sep 2007 01:01:16 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by ronja.ntg.nl (Postfix) with ESMTP id DD617203B9 for ; Sat, 1 Sep 2007 01:01:14 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id e27so817424nfd for ; Fri, 31 Aug 2007 16:01:06 -0700 (PDT) Original-Received: by 10.78.165.16 with SMTP id n16mr1783404hue.1188601266230; Fri, 31 Aug 2007 16:01:06 -0700 (PDT) Original-Received: by 10.78.202.1 with HTTP; Fri, 31 Aug 2007 16:01:06 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36344 Archived-At: --===============0503317046== Content-Type: multipart/alternative; boundary="----=_Part_11010_9245481.1188601266182" ------=_Part_11010_9245481.1188601266182 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/1/07, luigi scarso wrote: > On 8/31/07, luigi scarso wrote: Anothers step: 1).. 2) put this in test0001a.tex %% test0001a.tex \usemodule[cweb] \setupinteraction[state=start] \def\ignoreCWEBinput{\relax} \unprotect \def\fixtranslatednumber[#1--#2::#3]{% \@@filterpagepart[#1--#2--#3]} \protect \defCWEBmacro\contentsline#1#2#3#4#5% {\ifnum#2=0 \smallbreak \fi \line{\consetup{#2}#1 \rm \leaders\hbox to .5em{.\hfil}\hfil\ {\localcolortrue\goto{#3}[web:#3]}% below: \gotorealpage ? should be changed \hbox to3em{\localcolortrue\hss\gotorealpage{}{}{#5}{\fixtranslatednumber[#4]\presetgoto}}}} \starttext \title {Contents} \processCWEBcontents wc \page \title {Sections} \processCWEBsections wc \page \title {Sources} \processCWEBsource wc \page \title {Index} \processCWEBindex wc \page \stoptext 3) texexec --pdf test0001a Now compile well. And again, no news for screen version. -- luigi ---------------------------------------------------------------- If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ------=_Part_11010_9245481.1188601266182 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 9/1/07, luigi scarso <luigi.scarso@gmail.com> wrote:
> On 8/31/07, luigi scarso <luigi.scarso@gmail.com> wrote:
Anothers step:
1)..
2) put this in test0001a.tex
%% test0001a.tex
\usemodule[cweb]

\setupinteraction[state=start]
\def\ignoreCWEBinput{\relax}
\unprotect
\def\fixtranslatednumber[#1--#2::#3]{%
\@@filterpagepart[#1--#2--#3]}
\protect
\defCWEBmacro\contentsline#1#2#3#4#5%
  {\ifnum#2=0
     \smallbreak
   \fi
   \line{\consetup{#2}#1
   \rm
   \leaders\hbox to .5em{.\hfil}\hfil\
   {\localcolortrue\goto{#3}[web:#3]}%  below: \gotorealpage ? should be changed
   \hbox to3em{\localcolortrue\hss\gotorealpage{}{}{#5}{\fixtranslatednumber[#4]\presetgoto}}}}


\starttext

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


 
3) texexec --pdf  test0001a
Now compile well.
And again, no news for screen version.


--
luigi
----------------------------------------------------------------
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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
------=_Part_11010_9245481.1188601266182-- --===============0503317046== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________ --===============0503317046==--