ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: howto define MyRule ?
Date: Tue, 20 Mar 2012 14:42:19 +0100	[thread overview]
Message-ID: <BE15C86B-FBDA-49FC-A450-0A5250B22BBD@googlemail.com> (raw)
In-Reply-To: <D0A238B4-A27C-4079-A686-895E6F266003@st.estfiles.de>


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
___________________________________________________________________________________


  reply	other threads:[~2012-03-20 13:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20  9:10 Steffen Wolfrum
2012-03-20 13:42 ` Wolfgang Schuster [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BE15C86B-FBDA-49FC-A450-0A5250B22BBD@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).