From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44095 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: modes questions Date: Wed, 17 Sep 2008 21:11:32 +0200 Message-ID: <326847810809171211h7cd20ff3ua878510eb9083968@mail.gmail.com> References: <326847810809110247m2ae86edch725ae07e34e0a6e7@mail.gmail.com> <48C8F71E.50408@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1906317459==" X-Trace: ger.gmane.org 1221678816 22614 80.91.229.12 (17 Sep 2008 19:13:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 19:13:36 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 17 21:14:32 2008 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 1Kg2Th-0005ok-6r for gctc-ntg-context-518@m.gmane.org; Wed, 17 Sep 2008 21:14:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F3841FE81; Wed, 17 Sep 2008 21:13:13 +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 18498-06-21; Wed, 17 Sep 2008 21:12:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 12D771FD9B; Wed, 17 Sep 2008 21:12:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE54E1FE56 for ; Wed, 17 Sep 2008 21:12:09 +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 22800-04-5 for ; Wed, 17 Sep 2008 21:11:34 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with ESMTP id BFF5B1FD70 for ; Wed, 17 Sep 2008 21:11:32 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so1800083nfd.44 for ; Wed, 17 Sep 2008 12:11:32 -0700 (PDT) Original-Received: by 10.210.86.10 with SMTP id j10mr3614196ebb.58.1221678692486; Wed, 17 Sep 2008 12:11:32 -0700 (PDT) Original-Received: by 10.210.16.2 with HTTP; Wed, 17 Sep 2008 12:11:32 -0700 (PDT) In-Reply-To: <48C8F71E.50408@wxs.nl> 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:44095 Archived-At: --===============1906317459== Content-Type: multipart/alternative; boundary="----=_Part_11478_90921.1221678692472" ------=_Part_11478_90921.1221678692472 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen wrote: > Alan Stone wrote: > > Hi, > > > > (1) --mode=modelist > > > > (1.1) Is there a limit to the number of modes in modelist ? > > no, just what the console and memory permit > > > (1.2) Is there a way to call the modelist and submit it to conditional > > testing within ConTeXt ? For example, to lookup (true/false) the > > presence of modes containing/starting with (an) alphannumeric > > string(s) ? > > \doifmodeelse{somemode} { } { } etc etc etc > > > (2) --modefile=file > > > > (2.1) What's the syntax of a modefile ? > > this concerns examodes stuff that we use for process control at pragma > > > (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a > > modelist ( re: question 1.2 ) ? > > best use ctx files instead, like in > > == somefile.ctx === > > > > > > > texengine=luatex > interface=en > > > > proofing > somestyle.tex > > > > > > texexec .... --ctx=somefile As I'm not familiar with XML, neither using ConTeXt with XML... What if I want to pass a list of modes: mode1, mode2, mode3, .... ? -- Best, Alan * ConTeXt ver: 2008.09.10 14:01 MKIV fmt: 2008.9.14 int: english/english * Windows XP Home SP3 ------=_Part_11478_90921.1221678692472 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen <pragma@wxs.nl> wrote:
Alan Stone wrote:
> Hi,
>
> (1) --mode=modelist
>
> (1.1) Is there a limit to the number of modes in modelist ?

no, just what the console and memory permit

> (1.2) Is there a way to call the modelist and submit it to conditional
> testing within ConTeXt ? For example, to lookup (true/false) the
> presence of modes containing/starting with (an) alphannumeric
> string(s) ?

\doifmodeelse{somemode} { } { } etc etc etc

> (2) --modefile=file
>
> (2.1) What's the syntax of a modefile ?

this concerns examodes stuff that we use for process control at pragma

> (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a
> modelist ( re: question 1.2 ) ?

best use ctx files instead, like in

== somefile.ctx ===

<?xml version='1.0' standalone='yes'?>

<ctx:job>
    <ctx:preprocess/>
    <ctx:flags>
        <ctx:flag>texengine=luatex</ctx:flag>
        <ctx:flag>interface=en</ctx:flag>
    </ctx:flags>
    <ctx:process>
        <ctx:resources>
            <ctx:mode>proofing</ctx:mode>
            <ctx:environment>somestyle.tex</ctx:environment>
        </ctx:resources>
    </ctx:process>
    <ctx:postprocess/>
</ctx:job>

texexec .... --ctx=somefile
 
As I'm not familiar with XML, neither using ConTeXt with XML...
 
What if I want to pass a list of modes: mode1, mode2, mode3, .... ?


--
Best,
Alan

* ConTeXt ver: 2008.09.10 14:01 MKIV fmt: 2008.9.14 int: english/english
* Windows XP Home SP3
------=_Part_11478_90921.1221678692472-- --===============1906317459== 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 ___________________________________________________________________________________ --===============1906317459==--