Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

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.

1 Answer

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
add comment

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