[NTG-context] ctx files
Alan STONE
software.list.1es9s at gmail.com
Mon Nov 3 14:39:13 CET 2008
On Fri, Oct 31, 2008 at 6:26 PM, Alan STONE
<software.list.1es9s at gmail.com>wrote:
> 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 ?
>
Hi Hans,
You wrote "<ctx:include name='whatever.ctx"/> should work"
Given the above example, I'd really like to learn how to make it work. :O)
texmfstart texexec --ctx=ctx-main ctx-test
--
Best,
Alan
P.S. Happy Birthdaybeforeyesterday.
* ConTeXt minimals ver: 2008.10.31 13:58 MKIV fmt: 2008.10.31 int:
english/english
* Ubuntu 8.04 Hardy Heron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20081103/e019e931/attachment.html
More information about the ntg-context
mailing list