Take the 2-minute tour ×

Possible Duplicate:
How can I force a \hspace at the beginning of a line?

I am trying to put a postal address in the footer. I want the first line to be "Address: Address line1", then the next line should start with an indentation or horizontal space so that "Address line2" is aligned just under "Address line1", and so on. I tried:

\lfoot{\scriptsize{\textsf{Address:Address line1\newline\hspace{1in}{Address line2}}}}

But the hspace{} command is not working. What am I doing wrong?

share|improve this question
add comment

marked as duplicate by lockstep, Werner, egreg, Martin Scharrer Dec 13 '11 at 20:31


1 Answer

up vote 6 down vote accepted


\lfoot{\scriptsize{\textsf{Address: Address line1\newline\phantom{Address: }{Address line2}}}}

\phantom{<stuff>} leaves the space required for <stuff> without actually typesetting it. That way you're assured things will line up properly.

share|improve this answer
Perfect! Thanks, Werner. –  user3671 Dec 13 '11 at 8:05
add comment
