From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Using context with cweave
Date: Sat, 1 Sep 2007 03:00:04 +0200 [thread overview]
Message-ID: <fe8d59da0708311800n70a4292o873cb5b2fd0c4510@mail.gmail.com> (raw)
In-Reply-To: <fe8d59da0708311601h559398ees1bc7654df1e6ae25@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2117 bytes --]
Anothers step:
1)...
2a) put this in test001b.tex
\usemodule[cweb]
\setupbodyfont
[9pt]
\setuppapersize
[S6][S6]
\setuplayout
[backspace=72.5pt,
leftmargin=50pt,
leftmargindistance=12.5pt,
rightmargin=0pt,
rightedge=80pt,
rightedgedistance=10pt,
leftedge=0pt,
width=430pt,
topspace=10pt,
header=0pt,
footer=30pt,
bottomdistance=10pt,
bottom=15pt,
height=410pt,
style=\ss]
\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
2b)put this in process.tex
\usemodule[abr-01]
\usemodule[mod-00]
\usemodule[mod-02]
\def\TypeThreeModule#1%
{\readfile{#1.tex}{}{}%
\WriteBatchFile}
\def\WriteBatchFile
{\doglobal\increment\ModuleNumber
\immediate\write\BatchFile{texmfstart texexec --pdf --batch \FileName }}
\starttext
\TitelBlad{Documentation}
\placemodulecontent
\ModuleGroup{test001b}{test001b}
\processmodule{test001b} {3}
\placemoduleregister
\ColofonBlad
\stoptext
3) now you must set shell_escape=t and compile with
$> texexec --pdf process
Ok, now we have a "dirty" screen version (better than nothing, isn't it ?)
--
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
[-- Attachment #1.2: Type: text/html, Size: 3179 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-09-01 1:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <608bfe540708271838h5e567c6cm1aa92a20a4d24536@mail.gmail.com>
[not found] ` <fe8d59da0708271941s7b8241c3p8b3e5b5aaaf17509@mail.gmail.com>
[not found] ` <608bfe540708280432m178923a0w80c1c7f0063eea94@mail.gmail.com>
[not found] ` <fe8d59da0708280503y3e41fe80x6cc135331c95d43a@mail.gmail.com>
[not found] ` <608bfe540708280520w6152e7d6x9171e60748a08269@mail.gmail.com>
2007-08-30 19:17 ` Aditya Mahajan
2007-08-31 12:16 ` John Luciani
2007-08-31 14:31 ` Aditya Mahajan
2007-08-31 17:17 ` John Luciani
2007-08-31 17:52 ` Aditya Mahajan
2007-08-31 19:07 ` Hans Hagen
2007-08-31 19:48 ` John Luciani
2007-08-31 20:10 ` Hans Hagen
2007-08-31 20:47 ` John Luciani
2007-08-31 19:50 ` John Luciani
2007-08-31 21:26 ` luigi scarso
2007-08-31 22:30 ` luigi scarso
2007-08-31 23:01 ` luigi scarso
2007-09-01 1:00 ` luigi scarso [this message]
2007-09-02 0:48 ` John Luciani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe8d59da0708311800n70a4292o873cb5b2fd0c4510@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).