From: "Alan STONE" <software.list.1es9s@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: ctx files
Date: Fri, 31 Oct 2008 18:26:44 +0100 [thread overview]
Message-ID: <326847810810311026p1919817etc688174415dd25a6@mail.gmail.com> (raw)
In-Reply-To: <49083BB2.10902@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2052 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:[~2008-10-31 17:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 10:13 Alan STONE
2008-10-29 10:32 ` Hans Hagen
2008-10-31 11:42 ` Alan STONE
2008-10-31 17:26 ` Alan STONE [this message]
2008-11-03 13:39 ` Alan STONE
2008-11-05 14:15 ` Alan STONE
2008-11-05 14:44 ` Hans Hagen
2008-11-06 8:54 ` Alan STONE
2008-11-13 8:51 ` Alan STONE
2008-12-19 17:01 ` Alan STONE
2009-01-06 12:05 ` Alan Stone
2009-01-06 13:26 ` Hans Hagen
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=326847810810311026p1919817etc688174415dd25a6@mail.gmail.com \
--to=software.list.1es9s@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).