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 12:42:10 +0100 [thread overview]
Message-ID: <326847810810310442p37324fb7v90c8996f6b83d091@mail.gmail.com> (raw)
In-Reply-To: <49083BB2.10902@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1842 bytes --]
On Wed, Oct 29, 2008 at 11:32 AM, Hans Hagen <pragma@wxs.nl> wrote:
> > How do you call ctx files from within a main ctx file ?
>
> <ctx:include name='whatever.ctx"/>
>
> should work
>
In my first attempt to cook something up, something seems to be missing
and/or wrong because no output is generated. If all is put into one *.ctx
file it works.
texmfstart texexec --lua --ctx=ctx-main ctx-test
*** 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:include name='ctx-flags.ctx'/>
<ctx:include name='ctx-modes1.ctx'/>
</ctx:preprocess>
<ctx:flags/>
<ctx:process/>
<ctx:postprocess/>
</ctx:job>
*** ctx-flags.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:flag>result=ctx-modes</ctx:flag>
</ctx:flags>
<ctx:process/>
<ctx:postprocess/>
</ctx:job>
*** ctx-modes1.ctx ***
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:preprocess/>
<ctx:flags/>
<ctx:process>
<ctx:resources>
<ctx:mode>mode1a</ctx:mode>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
*** ctx-modes2.ctx ***
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:preprocess/>
<ctx:flags/>
<ctx:process>
<ctx:resources>
<ctx:mode>mode2a</ctx:mode>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
*** end of code ***
Best,
Alan
--
* texexec --lua foo
* ConTeXt minimals ver: 2008.10.08 23:34 MKIV fmt: 2008.10.13 int:
english/english
* Ubuntu 8.04 Hardy Heron
[-- Attachment #1.2: Type: text/html, Size: 3727 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 11:42 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 [this message]
2008-10-31 17:26 ` Alan STONE
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=326847810810310442p37324fb7v90c8996f6b83d091@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).