<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 14, 2011, at 1:52 PM, Luis Sequeira wrote:</div><blockquote type="cite"><div><blockquote type="cite">Greetings,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am using the article documentclass and the following header formatting:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">\usepackage{fancyhdr}<br></blockquote><blockquote type="cite">\pagestyle{fancy}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">\lhead{\smaller\nouppercase{\textsc{\leftmark}}}<br></blockquote><blockquote type="cite">\chead{}<br></blockquote><blockquote type="cite">\rhead{\smaller\nouppercase{\textit{\rightmark}}}<br></blockquote><blockquote type="cite">\lfoot{}<br></blockquote><blockquote type="cite">\cfoot{\smaller\thepage}<br></blockquote><blockquote type="cite">\rfoot{}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The documentation for fancyhdr points out that if one wants both the current section (\leftmark) and subsection (\rightmark) to appear in one's header (and the code above shows that I do), on the first page of a new section the \rightmark will be empty and hence the subsection, even though it appears on that page, will not show up in the header for that page.  The documentation then notes:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> If this is a problem you must manually insert extra \markright <br></blockquote><blockquote type="cite"> commands or redefine the ... \sectionmark command to issue a<br></blockquote><blockquote type="cite"> \markboth command with two decent parameters.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Alas, although it looks like it would be easy for a TeX whiz, I have no idea how to implement these solutions.  I have spent a good bit of time trying to hunt more concrete code on the web, to no avail.  A relevant URL or a code snippet would be most appreciated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Chris Menzel<br></blockquote><blockquote type="cite"><br></blockquote><br>I tried a small example with a section and a subsection starting in the first page of that section and the title of the subsection DOES APPEAR on the right - so apparently your problem has already been solved (probably the documentation is older than the implementation and the author of fancyhdr has solved the problem for you already :-)).<br></div></blockquote><div><br></div><div>Well, except that I am actually <i>having</i> the problem (with MacTeX 2011) not simply reading about it. :-) Perhaps there is a conflict with one of the other packages I'm using that you didn't use in your test. But thanks very much for the report, that gives me hope for a simpler solution!</div><br><blockquote type="cite"><div>[By the way, the only change I had to make was because \smaller was unrecognized - perhaps you meant \small instead?]<br></div></blockquote><div><br></div><div>No, Herb rightly surmised that I was using the relsize package (removing which, alas, did not solve my problem, but I am using other packages as well that I'll try eliminating).</div><div><br></div><div>Chris Menzel</div></div><br></body></html>