[NTG-context] Some problems creating a wiki page

2011-04-15 Thread Cecil Westerhof
I started making a page about indent:
http://wiki.contextgarden.net/indent

Two problems. When using the following in context:
\setupindenting[yes,medium,next]

\starttext

\input knuth

\blank

\input knuth

\stoptext

The first paragraph after the blank is indented, but on the wiki it is not.

When using the following code:
\setupindenting[yes,medium,next]

\usemodule[fancybreak]

\definefancybreak[myblank][indentnext=no]

\starttext

\input knuth

\myblank

\input knuth

\stoptext

It compiles under ConTeXt without a problem, but on the wiki I get a
texexec error.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \completecontent

2011-04-15 Thread Wolfgang Schuster

Am 15.04.2011 um 06:24 schrieb Cecil Westerhof:

 But why is there a difference between using \completecontent
 immediately or later in the document.

The TOC is empty when you have \chapter commands before
\(complete|place)content, to flush the entries you have
to use now “criterium=all”, for a TOC at the end of
the document you can also use “criterium=previous”.

Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Wolfgang Schuster

Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:

 It compiles under ConTeXt without a problem, but on the wiki I get a texexec 
 error.

The fancybreak is only shipped with the minimals but not with TeXLive which is 
AFAIR used by the wiki.

Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \completecontent

2011-04-15 Thread Cecil Westerhof
2011/4/15 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 15.04.2011 um 06:24 schrieb Cecil Westerhof:

 But why is there a difference between using \completecontent
 immediately or later in the document.

 The TOC is empty when you have \chapter commands before
 \(complete|place)content, to flush the entries you have
 to use now “criterium=all”, for a TOC at the end of
 the document you can also use “criterium=previous”.

Thanks. I put it on the wiki.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Cecil Westerhof
2011/4/15 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 It compiles under ConTeXt without a problem, but on the wiki I get a texexec 
 error.

 The fancybreak is only shipped with the minimals but not with TeXLive which 
 is AFAIR used by the wiki.

How can I only put the code on the wiki?

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Wolfgang Schuster

Am 15.04.2011 um 13:37 schrieb Cecil Westerhof:

 2011/4/15 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 It compiles under ConTeXt without a problem, but on the wiki I get a 
 texexec error.
 
 The fancybreak is only shipped with the minimals but not with TeXLive which 
 is AFAIR used by the wiki.
 
 How can I only put the code on the wiki?

You can write code for the source and the output where you use fancbreak
in the source (already written by you) and for the output you just write
“\blank\noindentation” to simulate the \myblank command.

Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Cecil Westerhof
2011/4/15 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 It compiles under ConTeXt without a problem, but on the wiki I get a 
 texexec error.

 The fancybreak is only shipped with the minimals but not with TeXLive which 
 is AFAIR used by the wiki.

 How can I only put the code on the wiki?

 You can write code for the source and the output where you use fancbreak
 in the source (already written by you) and for the output you just write
 “\blank\noindentation” to simulate the \myblank command.

Done.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Difference between texexec and context when using indent

2011-04-15 Thread Cecil Westerhof
With the following code:
\setupindenting[yes,medium,next]

\starttext

\input knuth

\blank

\input knuth

\stoptext

When using texexec (MKII) the paragraph after the \blank is not
indented. When using context (MKIV) it is. Why this difference?

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Framecolor in \showframe

2011-04-15 Thread Markus Finke

Hello,

how can I change the green frame in \showframe[margin] on black?

I need more contrast on the paper and there is no option to print all 
color in black with Adobe Reader on Kubuntu.


Thanks in advance,
Markus
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Framecolor in \showframe

2011-04-15 Thread Wolfgang Schuster

Am 15.04.2011 um 15:05 schrieb Markus Finke:

 Hello,
 
 how can I change the green frame in \showframe[margin] on black?
 
 I need more contrast on the paper and there is no option to print all color 
 in black with Adobe Reader on Kubuntu.


Use \setupbackgrounds and not \showframe.

\setuppapersize[A5][A4]

\setupbackgrounds[text][leftmargin][frame=on]
\setupbackgrounds[page][frame=on]

\setuplayout[location=middle]

\starttext
\input knuth
\stoptext

Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Framecolor in \showframe

2011-04-15 Thread Markus Finke

\setupbackgrounds[text][leftmargin][frame=on]
\setupbackgrounds[page][frame=on]


That’s it. Thank you!
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Mojca Miklavec
On Fri, Apr 15, 2011 at 13:25, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:

 It compiles under ConTeXt without a problem, but on the wiki I get a texexec 
 error.

 The fancybreak is only shipped with the minimals but not with TeXLive which 
 is AFAIR used by the wiki.

No, wiki is not using TeX Live, but it doesn't contain modules. (I'll
fix that on the new machine.)

Mojca
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Cecil Westerhof
2011/4/15 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 On Fri, Apr 15, 2011 at 13:25, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:

 It compiles under ConTeXt without a problem, but on the wiki I get a 
 texexec error.

 The fancybreak is only shipped with the minimals but not with TeXLive which 
 is AFAIR used by the wiki.

 No, wiki is not using TeX Live, but it doesn't contain modules. (I'll
 fix that on the new machine.)

But it uses texexec (MKII) and not context (MKIV)? The results I get
are the same as using texexec, not context.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Aditya Mahajan

On Fri, 15 Apr 2011, Cecil Westerhof wrote:


2011/4/15 Mojca Miklavec mojca.miklavec.li...@gmail.com:

On Fri, Apr 15, 2011 at 13:25, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:


Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:


It compiles under ConTeXt without a problem, but on the wiki I get a texexec 
error.


The fancybreak is only shipped with the minimals but not with TeXLive which is 
AFAIR used by the wiki.


No, wiki is not using TeX Live, but it doesn't contain modules. (I'll
fix that on the new machine.)


But it uses texexec (MKII) and not context (MKIV)? The results I get
are the same as using texexec, not context.


IIRC, there were some security concerns with MkIV:

   \ctxlua{os.execute(cat /etc/passwd)}

Aditya
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Cecil Westerhof
2011/4/15 Aditya Mahajan adit...@umich.edu:
 On Fri, 15 Apr 2011, Cecil Westerhof wrote:

 2011/4/15 Mojca Miklavec mojca.miklavec.li...@gmail.com:

 On Fri, Apr 15, 2011 at 13:25, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:

 It compiles under ConTeXt without a problem, but on the wiki I get a
 texexec error.

 The fancybreak is only shipped with the minimals but not with TeXLive
 which is AFAIR used by the wiki.

 No, wiki is not using TeX Live, but it doesn't contain modules. (I'll
 fix that on the new machine.)

 But it uses texexec (MKII) and not context (MKIV)? The results I get
 are the same as using texexec, not context.

 IIRC, there were some security concerns with MkIV:

   \ctxlua{os.execute(cat /etc/passwd)}

If that is the only problem, you could use shadow passwords.

Would be a good idea to mention this. I personally would expect MKIV to be used.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some problems creating a wiki page

2011-04-15 Thread Hans Hagen

On 15-4-2011 7:44, Aditya Mahajan wrote:

On Fri, 15 Apr 2011, Cecil Westerhof wrote:


2011/4/15 Mojca Miklavec mojca.miklavec.li...@gmail.com:

On Fri, Apr 15, 2011 at 13:25, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:


Am 15.04.2011 um 08:41 schrieb Cecil Westerhof:


It compiles under ConTeXt without a problem, but on the wiki I get
a texexec error.


The fancybreak is only shipped with the minimals but not with
TeXLive which is AFAIR used by the wiki.


No, wiki is not using TeX Live, but it doesn't contain modules. (I'll
fix that on the new machine.)


But it uses texexec (MKII) and not context (MKIV)? The results I get
are the same as using texexec, not context.


IIRC, there were some security concerns with MkIV:

\ctxlua{os.execute(cat /etc/passwd)}


Althoug I admit that I tested it long ago (early days of mkiv) there is 
some control built in:


system.executionmode
system.executionlist

the mode can be set none or list an in the later case you need to 
mention the permitted programs. There are also some options for reading 
files.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

2011-04-15 Thread Reviczky, Adam
 there are some problems with the citecommand in the latest beta. I always get 
 a LuaTeX error...
I've hit the same problem, though apa doesn't seem to be affected, so in the 
meantime you can use:
\setuppublications[alternative=apa]

Adam
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

2011-04-15 Thread Bernhard Rosensteiner
when i use \cite[...][reference...] instead of \cite{reference} the error is 
also not triggered. Anyway strange.


best regards
Bernhard

On Samstag, 16. April 2011 at 06:47, Reviczky, Adam wrote: 
 there are some problems with the citecommand in the latest beta. I always get 
 a LuaTeX error...
 I've hit the same problem, though apa doesn't seem to be affected, so in the 
 meantime you can use:
 \setuppublications[alternative=apa]
 
 Adam
 ___
 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 : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___