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
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
On Sat, Feb 18, 2012 at 6:56 PM, 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.
You can try with \unexpanded\def\MyRule{\startcolor[orange]\vrule width18mm height0.4pt\stopcolor} \setupnote[footnote][rule=\MyRule] \starttext teset\footnote{text}. \stoptext -- luigi
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
On Sat, Feb 18, 2012 at 8:12 PM, 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.
it's ok for me -- it was a quick fix for Steffen -- luigi
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
On Sat, Feb 18, 2012 at 9:18 PM, Steffen Wolfrum
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
participants (3)
-
luigi scarso
-
Steffen Wolfrum
-
Wolfgang Schuster