I'm trying to get images in the header. I succeeded in putting one on the left header side of the right page. But I'm unable to put it on the right header side of the left page.
I'm using fancyheaders and the working code for the right page is:
This, I think, should work as usual an display the image on the right header side of the left page.
But it gives me some four hundred errors (distributed across the whole document) and the first one refers to the line \end{picture} in the \rhead statement. Too many }'s \end{picture}
But the bracket count is correct.
Does someone know what causes this peculiar problem and how to solve it?
The \rule behaves well in every case and doesn't reproduce the error. So I'm not able to provide you with an MWE.
The problem occurs with the \lhead statement as well if I put the \picture statement in the square brackets istead of the curly brackets of the \lhead statement.
square brackets cannot be nested this way, the square brackets of \includegraphics could cause a problem when used in an optional parameter. The problem can be fixed by using additional curly braces: