Re: [NTG-context] ctx files

2009-01-06 Thread Alan Stone
What tool do you use to validate ctx files ?


On Fri, Dec 19, 2008 at 6:01 PM, Alan STONE
software.list.1e...@gmail.comwrote:

 Has there been any progress regarding the issues/inquiries of this thread ?

 If none, what is/are the alternative(s) ?

 --
 Best,
 Alan

___
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
___


Re: [NTG-context] ctx files

2009-01-06 Thread Hans Hagen

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
___


Re: [NTG-context] ctx files

2008-11-13 Thread Alan STONE
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
___
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
___


Re: [NTG-context] ctx files

2008-11-06 Thread Alan STONE
On Wed, Nov 5, 2008 at 3:44 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Alan STONE wrote:
  On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  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
___
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
___


Re: [NTG-context] ctx files

2008-11-05 Thread Alan STONE
On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE [EMAIL PROTECTED]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
___
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
___


Re: [NTG-context] ctx files

2008-11-05 Thread Hans Hagen
Alan STONE wrote:
 On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 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
___


Re: [NTG-context] ctx files

2008-11-03 Thread Alan STONE
On Fri, Oct 31, 2008 at 6:26 PM, Alan STONE
[EMAIL PROTECTED]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:flagsctx:include name='ctx-flags.ctx'/
 /ctx:flags
 ctx:process
 ctx:resourcesctx:include name='ctx-modes1.ctx'/
 /ctx:resources
 /ctx:process
  ctx:postprocess/
 /ctx:job

 *** ctx-flags.ctx ***

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

 ctx:flagtexengine=luatex/ctx:flag
 ctx:flaginterface=en/ctx:flag
 ctx:flagresult=ctx-modes/ctx:flag

 *** ctx-modes1.ctx ***

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

 ctx:modemode1a/ctx:mode

 *** ctx-modes2.ctx ***

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

 ctx:modemode2a/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
___
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
___


Re: [NTG-context] ctx files

2008-10-31 Thread Alan STONE
On Wed, Oct 29, 2008 at 11:32 AM, Hans Hagen [EMAIL PROTECTED] 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:flagtexengine=luatex/ctx:flag
ctx:flaginterface=en/ctx:flag
ctx:flagresult=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:modemode1a/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:modemode2a/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
___
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
___


Re: [NTG-context] ctx files

2008-10-31 Thread Alan STONE
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:flagtexengine=luatex/ctx:flag
ctx:flaginterface=en/ctx:flag
ctx:flagresult=ctx-modes/ctx:flag

*** ctx-modes1.ctx ***

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

ctx:modemode1a/ctx:mode

*** ctx-modes2.ctx ***

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

ctx:modemode2a/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
___
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
___


[NTG-context] ctx files

2008-10-29 Thread Alan STONE
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
___
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
___


Re: [NTG-context] ctx files

2008-10-29 Thread Hans Hagen
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
___