* howto define MyRule ?
@ 2012-03-20 9:10 Steffen Wolfrum
2012-03-20 13:42 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-03-20 9:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
how can I define the length of footnote's rule and the distance below it?
"rulecommand" doesn't seem to take these values (see below).
Steffen
-------
\setupnote[footnote]
[rulecolor=orange,% OK
rulecommand={\vrule width10mm\vskip10mm},% ???
rulethickness=5pt]% OK
\starttext
text\footnote{test}.
\stoptext
___________________________________________________________________________________
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: howto define MyRule ?
2012-03-20 9:10 howto define MyRule ? Steffen Wolfrum
@ 2012-03-20 13:42 ` Wolfgang Schuster
2012-03-20 16:35 ` Steffen Wolfrum
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2012-03-20 13:42 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 20.03.2012 um 10:10 schrieb Steffen Wolfrum:
> Hi,
>
> how can I define the length of footnote's rule and the distance below it?
> "rulecommand" doesn't seem to take these values (see below).
You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this).
The distance between the rule and the notes has to be added (you use \blank) in the rule definition but a “inbetween” key would be more convenient.
\def\strc_notes_place_inserts_indeed
{\relax
\ifdim\ht\currentnoteins>\zeropoint
\endgraf
\ifvmode
\whitespace
\noteparameter\c!before
\fi
% \bgroup
% \setupalign[\noteparameter\c!align]%
\placenoterule % alleen in ..mode
% \par
% \egroup
+ \ifvmode
+ \noteparameter\c!inbetween
+ \fi
\bgroup
\strc_notes_set_bodyfont
\setbox\scratchbox\hbox
{\strc_notes_flush_inserts}%
\setbox\scratchbox\hbox
{\setupcurrentnote
[\c!location=,
\c!width=\v!fit,
\c!height=\v!fit,
\c!strut=\v!no,
\c!offset=\v!overlay]%
\inheritednoteframed
{\ifdim\dp\scratchbox=\zeropoint % this hack is needed because \vadjust
\hbox{\lower\strutdp\box\scratchbox}% % in margin number placement
\else % hides the (always) present depth
\box\scratchbox
\fi}}%
\setbox\scratchbox\hbox{\lower\strutdepth\box\scratchbox}%
\dp\scratchbox\strutdepth % so we know that it has the note bodyfont depth
\box\scratchbox
\egroup
\endgraf
\ifvmode
\noteparameter\c!after
\fi
\fi}
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: howto define MyRule ?
2012-03-20 13:42 ` Wolfgang Schuster
@ 2012-03-20 16:35 ` Steffen Wolfrum
2012-03-20 16:45 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-03-20 16:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:
> You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this).
rule=command,rulecommand=\MyRule
instead of
rulecommand=\MyRule
hm ... this logic I didn't not yet internalize.
Thanks, 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: howto define MyRule ?
2012-03-20 16:35 ` Steffen Wolfrum
@ 2012-03-20 16:45 ` Wolfgang Schuster
2012-03-20 17:59 ` [***SPAM***] " Steffen Wolfrum
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2012-03-20 16:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum:
>
> Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:
>
>> You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this).
>
>
> rule=command,rulecommand=\MyRule
>
> instead of
>
> rulecommand=\MyRule
>
> hm ... this logic I didn't not yet internalize.
You have to tell context it should use your own rule instead of the default rule, it’s like “alternative=command” for other setups.
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
* [***SPAM***] Re: howto define MyRule ?
2012-03-20 16:45 ` Wolfgang Schuster
@ 2012-03-20 17:59 ` Steffen Wolfrum
2012-03-20 18:49 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-03-20 17:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.03.2012 um 17:45 schrieb Wolfgang Schuster:
>
> Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum:
>
>>
>> Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:
>>
>>> You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this).
>>
>>
>> rule=command,rulecommand=\MyRule
>>
>> instead of
>>
>> rulecommand=\MyRule
>>
>> hm ... this logic I didn't not yet internalize.
>
> You have to tell context it should use your own rule instead of the default rule, it’s like “alternative=command” for other setups.
Sure, I know what you mean.
But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
To me this already means exactly this: "tell context it should use my rule".
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: [***SPAM***] Re: howto define MyRule ?
2012-03-20 17:59 ` [***SPAM***] " Steffen Wolfrum
@ 2012-03-20 18:49 ` Hans Hagen
2012-03-20 19:28 ` Steffen Wolfrum
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2012-03-20 18:49 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
On 20-3-2012 18:59, Steffen Wolfrum wrote:
> But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
> To me this already means exactly this: "tell context it should use my rule".
Then we need double checking and I'm pretty sure that you would run into
expansion mess again and ask for another hack.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [***SPAM***] Re: howto define MyRule ?
2012-03-20 18:49 ` Hans Hagen
@ 2012-03-20 19:28 ` Steffen Wolfrum
0 siblings, 0 replies; 7+ messages in thread
From: Steffen Wolfrum @ 2012-03-20 19:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 20.03.2012 um 19:49 schrieb Hans Hagen:
> On 20-3-2012 18:59, Steffen Wolfrum wrote:
>
>> But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
>> To me this already means exactly this: "tell context it should use my rule".
>
> Then we need double checking and I'm pretty sure that you would run into expansion mess again and ask for another hack.
>
> Hans
Convinced ;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
end of thread, other threads:[~2012-03-20 19:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 9:10 howto define MyRule ? Steffen Wolfrum
2012-03-20 13:42 ` Wolfgang Schuster
2012-03-20 16:35 ` Steffen Wolfrum
2012-03-20 16:45 ` Wolfgang Schuster
2012-03-20 17:59 ` [***SPAM***] " Steffen Wolfrum
2012-03-20 18:49 ` Hans Hagen
2012-03-20 19:28 ` Steffen Wolfrum
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).