At 10:49 AM 1/28/2003 +0100, Hans van der Meer wrote:
Hi Hans,
In the manual it is claimed for the command \fixedspaces that (4.6 Word spacing) "After this command the ~ (tilde) generates a tight space with the width of a number."
This turns out to be not true for -at least- the lucida font, cmr gives no trouble (my problem is: I like lbr most):
% the code below gives spaces that are too small \setupbodyfont[lbr] {\tt\fixedspaces 0~1~~2~~~3~~~~4~~~~~5\crlf \fixedspaces 0~~~~~~~~~~~~~~~~~~~5}
% this code gives spaces that are correctly sized \setupbodyfont[cmr] {\tt\fixedspaces 0~1~~2~~~3~~~~4~~~~~5\crlf \fixedspaces 0~~~~~~~~~~~~~~~~~~~5}
Could it be that there is something missing in the font definitions for [lbr] ?
lucida digits have non-equal spaces, you can try: %%%%%% in cont-new.tex \def\fixedspace {\setbox\scratchbox\hbox\ifmmode{$0$}\else{0}\fi \hskip\wd\scratchbox\relax} \appendtoks \fixedspaces \to \everytable %%%%%%% test file \starttext \startbuffer \startlines \tt \fixedspaces 0~1~~2~~~3~~~~4~~~~~5 0~~~~~~~~~~~~~~~~~~~5 $0~1~~2~~~3~~~~4~~~~~5$ $0~~~~~~~~~~~~~~~~~~~5$ \stoplines \starttabulate[|~|] \NC 0~1~~2~~~3~~~~4~~~~~5 \NC \NR \NC 0~~~~~~~~~~~~~~~~~~~5 \NC \NR \NC $0~1~~2~~~3~~~~4~~~~~5$ \NC \NR \NC $0~~~~~~~~~~~~~~~~~~~5$ \NC \NR \stoptabulate \starttable[||] \NC 0~1~~2~~~3~~~~4~~~~~5 \NC \AR \NC 0~~~~~~~~~~~~~~~~~~~5 \NC \AR \NC $0~1~~2~~~3~~~~4~~~~~5$ \NC \AR \NC $0~~~~~~~~~~~~~~~~~~~5$ \NC \AR \stoptable \stopbuffer \setupbodyfont[cmr] \getbuffer \setupbodyfont[lbr] \getbuffer \stoptext Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------