ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \setupmarginrules
Date: Tue, 28 Mar 2006 17:05:53 +0200	[thread overview]
Message-ID: <442950D1.1030903@elvenkind.com> (raw)
In-Reply-To: <44294D0B.6030702@boede.nl>


Hi Willi (and Vit),

Willi Egger wrote:
> Hi Vit!
> 
> Thanks for this patch. Do you know why the rulethickness must be given 
> in integer dimension. e.g. 2.5pt will cause an error, telling that a 
> wrong dimension is used.

(I'll pretend to be Vit)

That is because in that case, it expands to  \hskip -.52.5pt

Try this:

   \unprotected
   \def\doalinealijn#1#2%
     {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
       {\dimen2=#1\relax
        \dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
        \hskip.5\dimen2
        \hskip-.5\dimen4 % TH
        \vrule\!!width\dimen4 % TH
        \hskip-.5\dimen4 % TH
        \hskip.5\dimen2}
       {\hskip#1}}

Cheers, Taco

  reply	other threads:[~2006-03-28 15:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15 23:53 \page inside a block frantisek holop
2006-03-16 10:38 ` Hans Hagen
2006-03-16 21:50   ` frantisek holop
2006-03-16 22:17     ` Aditya Mahajan
2006-03-16 22:27     ` Thomas A. Schmitz
2006-03-16 22:57   ` frantisek holop
2006-03-17 18:49     ` Willi Egger
2006-03-26 19:42       ` \setupmarginrules (was: Re: \page inside a block) frantisek holop
2006-03-26 20:12         ` \setupmarginrules Vit Zyka
2006-03-26 20:41           ` \setupmarginrules frantisek holop
2006-03-27 20:54             ` \setupmarginrules Vit Zyka
2006-03-28 14:49               ` \setupmarginrules Willi Egger
2006-03-28 15:05                 ` Taco Hoekwater [this message]
2006-03-28 15:10                 ` \setupmarginrules Vit Zyka
2006-03-28 15:14                   ` \setupmarginrules Taco Hoekwater
2006-03-28 16:58                     ` \setupmarginrules Vit Zyka
2006-03-28 17:13                       ` \setupmarginrules Hans Hagen
2006-03-30 19:18                     ` \setupmarginrules Willi Egger
2006-03-28 16:42                   ` \setupmarginrules Hans Hagen
2006-03-28 17:12                   ` \setupmarginrules Hans Hagen
2006-03-28 18:55                     ` \setupmarginrules Vit Zyka
2006-03-28 21:44                     ` \setupmarginrules frantisek holop
2006-03-29  8:14                       ` \setupmarginrules Hans Hagen

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=442950D1.1030903@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.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).