I am using LyX and would like (all) my document pages to have a fancy header style that I defined. However, including
\thispagestyle{fancy}
or
\AtBeginDocument{\thispagestyle{fancy}}
doesn't work! The only way I got it to work is using the ERT command
\thispagestyle{fancy}
at the beginning of the document. Does anyone know how to get over it without using an ERT?