ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* pack_black_rule_pickup ?
@ 2012-02-17 13:41 Steffen Wolfrum
  2012-02-18 17:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-02-17 13:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

<empty file>

<inserted text> 
                \par 
<*> ./eeeee.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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-17 13:41 pack_black_rule_pickup ? Steffen Wolfrum
@ 2012-02-18 17:56 ` Wolfgang Schuster
  2012-02-18 19:04   ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2012-02-18 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Steffen Wolfrum


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-18 17:56 ` Wolfgang Schuster
@ 2012-02-18 19:04   ` luigi scarso
  2012-02-18 19:12     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2012-02-18 19:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Feb 18, 2012 at 6:56 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-18 19:04   ` luigi scarso
@ 2012-02-18 19:12     ` Wolfgang Schuster
  2012-02-18 19:19       ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2012-02-18 19:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-18 19:12     ` Wolfgang Schuster
@ 2012-02-18 19:19       ` luigi scarso
  2012-02-18 20:18         ` Steffen Wolfrum
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2012-02-18 19:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-18 19:19       ` luigi scarso
@ 2012-02-18 20:18         ` Steffen Wolfrum
  2012-02-18 20:35           ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-02-18 20:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.02.2012 um 20:19 schrieb luigi scarso:

> On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: pack_black_rule_pickup ?
  2012-02-18 20:18         ` Steffen Wolfrum
@ 2012-02-18 20:35           ` luigi scarso
  0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2012-02-18 20:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Feb 18, 2012 at 9:18 PM, Steffen Wolfrum <context@st.estfiles.de> wrote:
>
> Am 18.02.2012 um 20:19 schrieb luigi scarso:
>
>> On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster
>> <schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-18 20:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17 13:41 pack_black_rule_pickup ? Steffen Wolfrum
2012-02-18 17:56 ` Wolfgang Schuster
2012-02-18 19:04   ` luigi scarso
2012-02-18 19:12     ` Wolfgang Schuster
2012-02-18 19:19       ` luigi scarso
2012-02-18 20:18         ` Steffen Wolfrum
2012-02-18 20:35           ` luigi scarso

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).