Re: [NTG-context] pack_black_rule_pickup ?

2012-02-18 Thread luigi scarso
On Sat, Feb 18, 2012 at 9:18 PM, Steffen Wolfrum  wrote:
>
> Am 18.02.2012 um 20:19 schrieb luigi scarso:
>
>> On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
>>  wrote:
>>> can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two 
>>> step mechanism like \setuplist[…][alternative=command,command=\MyList] are 
>>> better but that’s only my opinion.
>> it's ok for me -- it was a quick fix for Steffen
>
>
>
> ;o)
Hm I don't know ;o) :
smiley  (non-commutative ? ) algebra

;o) =  ;-)  +  :o)

:-) =  :o) +  ;-)





-- 
luigi
___
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] pack_black_rule_pickup ?

2012-02-18 Thread Steffen Wolfrum

Am 18.02.2012 um 20:19 schrieb luigi scarso:

> On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
>  wrote:
>> 
>> Am 18.02.2012 um 20:04 schrieb luigi scarso:
>> 
>> I think a separate key for the command is better because this
>> 
>>> \setupnote[footnote][rule=\MyRule]
>> 
>> can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two 
>> step mechanism like \setuplist[…][alternative=command,command=\MyList] are 
>> better but that’s only my opinion.
> it's ok for me -- it was a quick fix for Steffen



;o)


Steffen
___
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] pack_black_rule_pickup ?

2012-02-18 Thread luigi scarso
On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
 wrote:
>
> Am 18.02.2012 um 20:04 schrieb luigi scarso:
>
> I think a separate key for the command is better because this
>
>> \setupnote[footnote][rule=\MyRule]
>
> can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step 
> mechanism like \setuplist[…][alternative=command,command=\MyList] are better 
> but that’s only my opinion.
it's ok for me -- it was a quick fix for Steffen



-- 
luigi
___
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] pack_black_rule_pickup ?

2012-02-18 Thread Wolfgang Schuster

Am 18.02.2012 um 20:04 schrieb luigi scarso:

I think a separate key for the command is better because this

> \setupnote[footnote][rule=\MyRule]

can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step 
mechanism like \setuplist[…][alternative=command,command=\MyList] are better 
but that’s only my opinion.

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] pack_black_rule_pickup ?

2012-02-18 Thread luigi scarso
On Sat, Feb 18, 2012 at 6:56 PM, Wolfgang Schuster
 wrote:
>
> Am 17.02.2012 um 14:41 schrieb Steffen Wolfrum:
>
>> Hi,
>>
>> what's wrong here??
>>
>> \unexpanded\def\MyRule{\blackrule[color=orange,width=18mm,height=0.4pt]}
>>
>> \setupnote[footnote][rule=\MyRule]
>>
>> \starttext
>>
>> teset\footnote{text}.
>>
>> \stoptext
>
> Your \MyRule commands (even though you use \unexpanded) is expanded in 
> \strc_notes_set_rule_step and and since \blackrule (because of the optional 
> argument) isn’t expandable TeX quits.
>

You can try with
\unexpanded\def\MyRule{\startcolor[orange]\vrule width18mm
height0.4pt\stopcolor}
\setupnote[footnote][rule=\MyRule]
\starttext
teset\footnote{text}.
\stoptext

-- 
luigi
___
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] pack_black_rule_pickup ?

2012-02-18 Thread Wolfgang Schuster

Am 17.02.2012 um 14:41 schrieb Steffen Wolfrum:

> Hi,
> 
> what's wrong here??
> 
> \unexpanded\def\MyRule{\blackrule[color=orange,width=18mm,height=0.4pt]}
> 
> \setupnote[footnote][rule=\MyRule]
> 
> \starttext
> 
> teset\footnote{text}.
> 
> \stoptext

Your \MyRule commands (even though you use \unexpanded) is expanded in 
\strc_notes_set_rule_step and and since \blackrule (because of the optional 
argument) isn’t expandable TeX quits.

@Hans Won’t it be better to set a customized rule with 
\setupnote[…][rule=command,rulecommand=\MyRule].

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
___


[NTG-context] pack_black_rule_pickup ?

2012-02-17 Thread Steffen Wolfrum
Hi,

what's wrong here??


\unexpanded\def\MyRule{\blackrule[color=orange,width=18mm,height=0.4pt]}

\setupnote[footnote][rule=\MyRule]

\starttext

 teset\footnote{text}.
 
 \stoptext


... gives ...


{\currentnote }]{\pack_black_rule_pickup }\def 
\syst_helpers_next_optional_command_nop \ETC.
! File ended while scanning use of \setup_notation.

system  > tex > error on line 0 in file : File ended while scanning use 
of \setup_notation ...



 
\par 
<*> ./e.tex 
\stoptext
? 


Steffen
vers. 2012.02.16
___
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
___