I am looking for a command I am pretty certain to have used before but which I cannot recall (and I did search for it):
I want to create (horizontal) space of some length, e.g. created using \phantom{text}
, with some other (shorter) text. It should simply fill the white space for as far as the replacing text reaches, i.e. it does not need to be stretched to fill the whole space.
I hope I explained this sufficiently since providing a MWE is hard without knowing the answer...
\phantom
to me! Can you explain why this doesn't do what you require (and perhaps add a picture to illustrate)?\phantom
places the "alternative" text after the spacing created, whereas I would like to put it inside the space. Maybe I am not using it correctly?