TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 6 down vote accepted


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.