From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45212 Path: news.gmane.org!not-for-mail From: "Alan STONE" Newsgroups: gmane.comp.tex.context Subject: Re: ctx files Date: Fri, 31 Oct 2008 18:26:44 +0100 Message-ID: <326847810810311026p1919817etc688174415dd25a6@mail.gmail.com> References: <326847810810290313qae61571j13de9eda053227a8@mail.gmail.com> <49083BB2.10902@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0205013441==" X-Trace: ger.gmane.org 1225474112 13856 80.91.229.12 (31 Oct 2008 17:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 17:28:32 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 31 18:29:33 2008 connect(): Connection refused 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 1KvxoL-0007mS-Si for gctc-ntg-context-518@m.gmane.org; Fri, 31 Oct 2008 18:29:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6740B1FBAC; Fri, 31 Oct 2008 18:28:17 +0100 (CET) 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 30460-01-4; Fri, 31 Oct 2008 18:27:22 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 19DF81FBC1; Fri, 31 Oct 2008 18:27:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E3F11FBBE for ; Fri, 31 Oct 2008 18:27:21 +0100 (CET) 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 30460-01-3 for ; Fri, 31 Oct 2008 18:26:44 +0100 (CET) Original-Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.148]) by ronja.ntg.nl (Postfix) with ESMTP id D42BB1FB95 for ; Fri, 31 Oct 2008 18:26:44 +0100 (CET) Original-Received: by ey-out-1920.google.com with SMTP id 21so452464eyc.38 for ; Fri, 31 Oct 2008 10:26:44 -0700 (PDT) Original-Received: by 10.210.66.1 with SMTP id o1mr1742261eba.174.1225474004650; Fri, 31 Oct 2008 10:26:44 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Fri, 31 Oct 2008 10:26:44 -0700 (PDT) In-Reply-To: <49083BB2.10902@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:45212 Archived-At: --===============0205013441== Content-Type: multipart/alternative; boundary="----=_Part_37391_27956995.1225474004659" ------=_Part_37391_27956995.1225474004659 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline After giving it some further thought, I tried the following (which seems more logical) but that doesn't work either... *** ctx-test.tex *** \starttext \doifmode{mode1a} {mode1a} \doifmode{mode2a} {\blank mode2a} \stoptext *** ctx-main.ctx *** *** ctx-flags.ctx *** texengine=luatex interface=en result=ctx-modes *** ctx-modes1.ctx *** mode1a *** ctx-modes2.ctx *** mode2a *** end of code *** A Google search for the XML include element didn't bring much wisdom either. What's missing/wrong please ? -- Best, Alan * texexec --lua foo * ConTeXt minimals ver: 2008.10.31 13:58 MKIV fmt: 2008.10.31 int: english/english * Ubuntu 8.04 Hardy Heron ------=_Part_37391_27956995.1225474004659 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline After giving it some further thought, I tried the following (which seems more logical) but that doesn't work either...

*** ctx-test.tex ***

\starttext

\doifmode{mode1a}
    {mode1a}
   
\doifmode{mode2a}
    {\blank mode2a}

\stoptext

*** ctx-main.ctx ***

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

<ctx:job>
     <ctx:preprocess/>
    <ctx:flags>
            <ctx:include name='ctx-flags.ctx'/>
    </ctx:flags>
    <ctx:process>
        <ctx:resources>
            <ctx:include name='ctx-modes1.ctx'/>
        </ctx:resources>
    </ctx:process>
     <ctx:postprocess/>
</ctx:job>

*** ctx-flags.ctx ***

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

<ctx:flag>texengine=luatex</ctx:flag>
<ctx:flag>interface=en</ctx:flag>
<ctx:flag>result=ctx-modes</ctx:flag>

*** ctx-modes1.ctx ***

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

<ctx:mode>mode1a</ctx:mode>

*** ctx-modes2.ctx ***

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

<ctx:mode>mode2a</ctx:mode>

*** end of code ***

A Google search for the XML include element didn't bring much wisdom either. What's missing/wrong please ?

--
Best,
Alan

* texexec --lua foo
* ConTeXt  minimals ver: 2008.10.31 13:58 MKIV  fmt: 2008.10.31  int: english/english
* Ubuntu 8.04 Hardy Heron
------=_Part_37391_27956995.1225474004659-- --===============0205013441== 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 ___________________________________________________________________________________ --===============0205013441==--