1. I now have the various elements I want in headers and footers (chapter title in header, unique per page graphics in the footer etc.) but on the 1st page of a chapter the (even) footer is just the plain footer and not what I have specified. Obviously (?) I wouldn't want a chapter title header on the 1st page so Memoir is doing the sensible thing by suppressing it, but I do not get the footer I have specified.
I have overcome this by creating a special "1st page" style and forcing it using \thispagestyle... Is there a better way to do this?
2. Calling \chapter, which calls \cleardoublepage, results in a blank verso page thanks to a call (somewhere) of \thispagestyle{cleared}. How would I override that so that I still have header and/or footer on the blank verson? (or otherwise achieve the desired result?)
In this instance there is a minimal working example (font set to Times New Roman for the convenience of others...)
Code: Select all
Code, edit and compile here:
\documentclass[final,twoside,openright,showtrims,10pt]{memoir} %% XeTeX stuff\usepackage{xltxtra,fontspec,xunicode}% Page styles\makepagestyle{fragPage}\makeheadrule{fragPage}{\textwidth}{0.5pt} % for testing only\makefootrule{fragPage}{\textwidth}{0.5pt}{0pt} % NOTE THE EXTRA footskip parameter % for testing only\makeevenhead{fragPage}{}{\fontsize{11.5}{13.8} \fontspec[FakeSlant=0.3]{Times New Roman}\leftmark}{}\makeoddhead{fragPage}{}{\fontsize{11.5}{13.8} \fontspec[FakeSlant=0.3]{Times New Roman}\rightmark}{}% for the footers, the right way to get the unique per page graphic is to use "Ch\thechapter{}P\thesheetsequence{}.eps"\makeevenfoot{fragPage}{Ch\thechapter{}P\thesheetsequence{}.eps}{graphic code here}{\thepage}\makeoddfoot{fragPage}{\thepage}{graphic code here}{Ch\thechapter{}P\thesheetsequence{}.eps}\makeatletter % GENERALLY required in case of \@chapapp usage in \makepsmarks\makepsmarks{fragPage}{\nouppercaseheads % I don't like the uppercase heads\createmark{chapter}{both}{nonumber}{}{}}\makeatother % RETURN @ to being a non-letter\makepagestyle{fragFirstChPage}\makefootrule{fragFirstChPage}{\textwidth}{0.5pt}{0pt} % NOTE THE EXTRA footskip parameter % for testing only\makeevenhead{fragFirstChPage}{}{}{}\makeoddhead{fragFirstChPage}{}{}{}% for the footers, the right way to get the unique per page graphic is to use "Ch\thechapter{}P\thesheetsequence{}.eps"\makeoddfoot{fragFirstChPage}{Ch\thechapter{}P\thesheetsequence{}.eps}{graphic code here}{\thepage}\makeevenfoot{fragFirstChPage}{}{}{}%\makeatletter % GENERALLY required in case of \@chapapp usage in \makepsmarks% \makepsmarks{fragFirstChPage}{% \nouppercaseheads % I don't like the uppercase heads% \createmark{chapter}{both}{}{}{}%}%\makeatother % RETURN @ to being a non-letter\makechapterstyle{fragChap}{% Param 1 is the name of the chapter style to be made, and #2 is the code...\setlength{\beforechapskip}{-1\headsep}\setlength{\midchapskip}{0pt}\setlength{\afterchapskip}{24pt}\renewcommand*{\printchaptername}{}\renewcommand*{\printchapternum}{}
PS I've discovered that e.g. \pagestyle{style} has to come before \chapter... how does one know (infer from first principles?) that this is the required order? If I put the \pagestyle after \chapter then the headers and footers are whatever the default is... when does a \pagestyle command take effect?