[NTG-context] character width
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Oct 24 22:01:23 CEST 2006
On Tue, 24 Oct 2006 21:31:29 +0200 (CEST)
Peter Münster <pmlists at free.fr> wrote:
> On Tue, 24 Oct 2006, Wolfgang Schuster wrote:
>
> > \def\MySpace
> > {\dosingleempty\doMySpace}
> >
> > \def\doMySpace[#1]%
> > {\setbox\scratchbox=\hbox{#1}%
> > \unskip\hskip \the\wd \scratchbox}
>
> Or perhaps just:
>
> \starttext
> Text\hphantom{999}Text
> \stoptext
>
> ?
>
> Cheers, Peter
>
Hi Peter,
right this also works but we wont care about spaces in the souce.
Look:
\starttext
Text\hphantom{999}Text
Text\hphantom{999} Text
Text \hphantom{999} Text
\stoptext
Antoher solution for the spacemacro:
\def\MySpace
{\dosingleempty\doMySpace}
\def\doMySpace[#1]%
{\unskip\hphantom{#1}\ignorespaces}
\starttext
Text\hphantom{999}Text
Text\hphantom{999} Text
Text \hphantom{999} Text
\stoptext
and we have always the same gap.
Wolfgang
More information about the ntg-context
mailing list