How can I left-align the [multiple-row] text in the right portion of my header using fancyhdr? I have something like this
\rhead{row 1\\row 2\\row 3}
where the rows aren't the same length, and I wish for them to be aligned on the left.
fancyhdrheader-footerhorizontal alignment
How can I left-align the [multiple-row] text in the right portion of my header using fancyhdr? I have something like this
\rhead{row 1\\row 2\\row 3}
where the rows aren't the same length, and I wish for them to be aligned on the left.
Best Answer
You could use
\parbox
in the argument of\rhead
. For example:If you would like to align the widest row to the right margin, you could use
\settowidth
together with a length macro and use it for the parbox width. Or have a look at the eqparbox package for auto-sizing parboxes in general.