\hphantom ! What a promising word for exactly what I needed!
Again and again I am surprised how many (strange) commands there
exist. Where does \hphantom come frome? Where is it documented?
Thank you for your replies! But it could be even better:
As I need, finally, a construct like ...
Wolfgang Schuster wrote:
\def\doMySpace[#1]%
{\unskip\hphantom{#1}\ignorespaces}
\ifhmode\unskip\fi
or use \removeunwantedspaces
-
Hans Hagen | PRAGMA ADE
Hi,
for fine-adjusting I need to have a variable horizontal space
sometimes the width of 999 sometimes of 1, for example.
Is there a command that reads the width of a character so it can be
used in some kind of horizontal space?
Steffen
___
Steffen Wolfrum wrote:
Hi,
for fine-adjusting I need to have a variable horizontal space
sometimes the width of 999 sometimes of 1, for example.
Is there a command that reads the width of a character so it can be
used in some kind of horizontal space?
There is a \fontcharwd primitive
Yes, that's it. Thank you!
But can it also be defined in a more handy \MySpace[999] ?
Sorry, I tried some \def ... but didn't succeed.
Steffen
Am 24.10.2006 um 14:55 schrieb Taco Hoekwater:
Steffen Wolfrum wrote:
Hi,
for fine-adjusting I need to have a variable horizontal space
On Tue, 24 Oct 2006 18:39:22 +0200
Steffen Wolfrum [EMAIL PROTECTED] wrote:
Yes, that's it. Thank you!
But can it also be defined in a more handy \MySpace[999] ?
Sorry, I tried some \def ... but didn't succeed.
Steffen
Am 24.10.2006 um 14:55 schrieb Taco Hoekwater:
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
--
On Tue, 24 Oct 2006 21:31:29 +0200 (CEST)
Peter Münster [EMAIL PROTECTED] 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: