* ctx files
@ 2008-10-29 10:13 Alan STONE
2008-10-29 10:32 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-10-29 10:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 212 bytes --]
Hi,
How do you call ctx files from within a main ctx file ?
Thanks,
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: 346 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-10-29 10:13 ctx files Alan STONE
@ 2008-10-29 10:32 ` Hans Hagen
2008-10-31 11:42 ` Alan STONE
2008-10-31 17:26 ` Alan STONE
0 siblings, 2 replies; 12+ messages in thread
From: Hans Hagen @ 2008-10-29 10:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan STONE wrote:
> Hi,
>
> How do you call ctx files from within a main ctx file ?
<ctx:include name='whatever.ctx"/>
should work
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-10-29 10:32 ` Hans Hagen
@ 2008-10-31 11:42 ` Alan STONE
2008-10-31 17:26 ` Alan STONE
1 sibling, 0 replies; 12+ messages in thread
From: Alan STONE @ 2008-10-31 11:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-10-29 10:32 ` Hans Hagen
2008-10-31 11:42 ` Alan STONE
@ 2008-10-31 17:26 ` Alan STONE
2008-11-03 13:39 ` Alan STONE
1 sibling, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-10-31 17:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-10-31 17:26 ` Alan STONE
@ 2008-11-03 13:39 ` Alan STONE
2008-11-05 14:15 ` Alan STONE
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-11-03 13:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1600 bytes --]
On Fri, Oct 31, 2008 at 6:26 PM, Alan STONE
<software.list.1es9s@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
[-- Attachment #1.2: Type: text/html, Size: 2860 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-11-03 13:39 ` Alan STONE
@ 2008-11-05 14:15 ` Alan STONE
2008-11-05 14:44 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-11-05 14:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 515 bytes --]
On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE <software.list.1es9s@gmail.com>wrote:
> 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
>
Should I conclude, by the lack of response, that this feature doesn't work ?
--
Best,
Alan
* TeX engine = LuaTeX
* 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: 869 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-11-05 14:15 ` Alan STONE
@ 2008-11-05 14:44 ` Hans Hagen
2008-11-06 8:54 ` Alan STONE
0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2008-11-05 14:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan STONE wrote:
> On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE
> <software.list.1es9s@gmail.com <mailto:software.list.1es9s@gmail.com>>
> wrote:
>
> 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
>
>
>
> Should I conclude, by the lack of response, that this feature doesn't work ?
it's more that i have no time now to look into it
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-11-05 14:44 ` Hans Hagen
@ 2008-11-06 8:54 ` Alan STONE
2008-11-13 8:51 ` Alan STONE
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-11-06 8:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]
On Wed, Nov 5, 2008 at 3:44 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Alan STONE wrote:
> > On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE
> > <software.list.1es9s@gmail.com <mailto:software.list.1es9s@gmail.com>>
> > wrote:
> >
> > 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
> >
> >
> >
> > Should I conclude, by the lack of response, that this feature doesn't
> work ?
>
> it's more that i have no time now to look into it
Ok Hans. I understand. If there's any way you could have a look into it
sometime (not too) later, I'd really appreciate it.
Thanks in advance.
--
Best,
Alan
* TeX engine = LuaTeX
* 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: 1572 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-11-06 8:54 ` Alan STONE
@ 2008-11-13 8:51 ` Alan STONE
2008-12-19 17:01 ` Alan STONE
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-11-13 8:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 402 bytes --]
An additional cool and handy feature would be something like:
<ctx:if(not)(else) mode=abc>
<ctx:include name='somemodes.ctx'/>
<ctx:else(if) mode=def>
<ctx:include name='someothermodes.ctx'/>
<ctx:else(if) mode=ghi>
...
</ctx:if(not)(else)>
--
Best,
Alan
* TeX engine = LuaTeX
* 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: 552 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-11-13 8:51 ` Alan STONE
@ 2008-12-19 17:01 ` Alan STONE
2009-01-06 12:05 ` Alan Stone
0 siblings, 1 reply; 12+ messages in thread
From: Alan STONE @ 2008-12-19 17:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 268 bytes --]
Has there been any progress regarding the issues/inquiries of this thread ?
If none, what is/are the alternative(s) ?
--
Best,
Alan
* TeX engine = LuaTeX
*ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int:
english/english
* Ubuntu 8.04 Hardy Heron
[-- Attachment #1.2: Type: text/html, Size: 353 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2008-12-19 17:01 ` Alan STONE
@ 2009-01-06 12:05 ` Alan Stone
2009-01-06 13:26 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Alan Stone @ 2009-01-06 12:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 278 bytes --]
What tool do you use to validate ctx files ?
On Fri, Dec 19, 2008 at 6:01 PM, Alan STONE
<software.list.1es9s@gmail.com>wrote:
> Has there been any progress regarding the issues/inquiries of this thread ?
>
> If none, what is/are the alternative(s) ?
>
> --
> Best,
> Alan
>
[-- Attachment #1.2: Type: text/html, Size: 657 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ctx files
2009-01-06 12:05 ` Alan Stone
@ 2009-01-06 13:26 ` Hans Hagen
0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2009-01-06 13:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
>
> What tool do you use to validate ctx files ?
nothing (i just hit a button that runs tidy on an xml file)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-01-06 13:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-29 10:13 ctx files Alan STONE
2008-10-29 10:32 ` Hans Hagen
2008-10-31 11:42 ` Alan STONE
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
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).