ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setupbars
Date: Tue, 10 Jul 2012 00:16:08 +0200	[thread overview]
Message-ID: <4FFB5828.5010006@wxs.nl> (raw)
In-Reply-To: <D7B478E1-A4C2-4BE7-97E5-EB5218A58CF2@gmail.com>

On 9-7-2012 09:26, Wolfgang Schuster wrote:
>
> Am 09.07.2012 um 09:09 schrieb Meer, H. van der:
>
>> There is still an issue here.
>>
>> \setupbars[unit=mm,rulethickness=1]
>> AB\startbar[underbar]CD\stopbar EF\crlf
>> \setupbars[unit=ex,rulethickness=1]
>> AB\startbar[underbar]CD\stopbar EF\crlf
>> \setupbars[unit=pt,rulethickness=1]
>> AB\startbar[underbar]CD\stopbar EF\crlf
>>
>> The first and third setup do not give an underbar, the second does.
>> Question: why does "ex" qualify as a dimension unit but "pt" and "mm" do not? Sounds strange.
>>
>> If I want an underbar exactly 1mm or 3pt's thick, why isn't that made possible? Doing the math myself is no option, becaus ex will not be known beforehand.
>
> The underlying Lua code accepts only “ex” and “em” as valid options for the “unit” key but I would also vote to accept either “pt”, “mm” etc. as unit value or to allow “rulethickness=…pt”.

actually it does accept more units but they were pretty small (needed an 
1/u)

anyhow, in the next beta we can do

\starttext

     \setupbars[unit=mm,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
     \setupbars[unit=ex,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
     \setupbars[unit=pt,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
     \setupbars[unit=pt,rulethickness=10pt] 
bar\startbar[underbar]foo\stopbar bar\blank

\stoptext

but someone has do document it

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


  parent reply	other threads:[~2012-07-09 22:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 20:24 setupbars Meer, H. van der
2012-07-08 20:44 ` setupbars Wolfgang Schuster
2012-07-08 21:40   ` setupbars Meer, H. van der
2012-07-09  7:09     ` setupbars Meer, H. van der
2012-07-09  7:26       ` setupbars Wolfgang Schuster
2012-07-09  7:38         ` setupbars Procházka Lukáš Ing. - Pontex s. r. o.
2012-07-09 15:35         ` setupbars Bill Meahan
2012-07-09 22:16         ` Hans Hagen [this message]
2012-07-10 13:25           ` setupbars Procházka Lukáš Ing. - Pontex s. r. o.
2012-07-10 14:31             ` setupbars 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=4FFB5828.5010006@wxs.nl \
    --to=pragma@wxs.nl \
    --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).