Thank you all for your replies!
Your answers is not exactly what I am talking about... I try to write a version of
\makebox
(let us say
\makebox*
) so that
\makebox*{some text here}
respects
- Hyphenation rules of the document language
- it will respect line breaking i.e.
If there no more horizontal space left then the "some text here…" will continue to the
next line! So if , for example, I write
Code: Select all
\makebox*[1.5\textwidth][s]{This is my first sentence}
\makebox*[1.5\width] {This is my second sentence}
\makebox*[1\width] {This is my third sentence}
then the result will be a normal text except that: The “This is my first sentence” will be spread
1.5\width
in length and the “This is my second sentence” will be spread only
1.5\textwidth
in length! and the last This is my third sentence will be a normal spread sentence. That is, the first sentence will be more spread out that the second one (at a specific amount!)
Anyway thank you very much for your replies.