I want a box (or minipage) containing some lines to make a specific height. Vertical spaces can be added automatically to fill between lines to adjust height. The box has to be as close as possible to the right margin.
I was able to manage this situation using parbox, \vfill and \hfill.
However i have to set the length of the box using the longest line and \wd.
Is there a way to make this more automatic ? I had no chance using pboxbecause you can't use \vfillthere.
\newsavebox\mybox
\sbox{\mybox}{hello.world_12345@mail.world}
\newlength{\abc}
\setlength{\abc}{18mm}
%other box of height \abc
\hfill
\parbox[c][\abc][t]{\wd\mybox}{
\faMobile\space 123.456.789
\vfill
\faEnvelope\space hello.world_12345@mail.world
\vfill
\faLocationArrow\space 123 liberty street
\vfill
\faCar\space driving license
\vfill
\faPassport\space working permit
\vfill
}
tabularto me, rather than a\parbox. Can you complete the document such that it compiles? What is the purpose of \vfill? To which height do you want to spread the lines? – gernot Jun 28 '23 at 15:01varwidthand set\baselineskipwith infinite glue. – cabohah Jun 28 '23 at 15:02