6

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:

\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{\scriptsize{\textsf{Address:Address line1\newline\hspace{1in}{Address line2}}}}

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

user3671
  • 655

1 Answers1

6

Use

\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\pagestyle{fancy}
\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.

Werner
  • 603,163