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
___________________________________________________________________________________

Reply via email to