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.

Is it possible break up a long header or footer line so that they are positioned in two or more vertically aligned lines using fancyhdr? For example I want to break up

"This is an example of a very long header or footer line

into:

This is an example

of a very long header or footer line

share|improve this question
    
What is wrong with just \lhead{this is an example\\of a very long header or footer line} for example? What do you mean when you say "vertically aligned" in this case? The lines are supposed to be underneath each other if I understand correctly, how does verical alignment make sense? –  Roelof Spijker Dec 12 '11 at 16:04
    
Simple and perfect answer. I don't know why I didn't think of the most obvious. Thanks, Torbjorn. –  user3671 Dec 13 '11 at 6:58
add comment

migrated from stackoverflow.com Dec 12 '11 at 15:54

This question came from our site for professional and enthusiast programmers.

1 Answer

Apparently my comment was the solution the OP was after. I'll add it as an answer then.

You can simply use the normal way of making newlines: \\. So for instance: \lhead{this is an example\\of a very long header or footer line}.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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