I am using the article class and a custom package where I use the fancyhdr package. I define my header using :
\fancyhead[CO,CE]{}
\fancyhead[RO,RE]{\scshape\leftmark}
The problem is that I have several sections and sections*. At each section* page, the header displays the name of the previous section and not the name of the section *.
I have no clue on how to change that, any help would be appreciated.



titlepswhich comes withtitlesec, as it defines a\sectiontitlecommand. – Bernard Aug 19 '19 at 09:41