1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
\documentclass{minimal} \usepackage[T1]{fontenc} \usepackage{makebox} \unitlength1mm \begin{document} |asdf| |\makebox[20mm][l]{asdf}| |\makebox[20mm][r]{asdf}| |\makebox[20mm][c]{asdf}| |asdfasdf| |\makebox*{asdfasdf}[l]{asdf}| |\makebox*{asdfasdf}{asdf}| |\makebox*{asdfasdf}[r]{asdf}| |\makebox(20,3)[r]{asdf}| \end{document}