custom header and footer not working

Added by anna noy 16 days ago

I tried to use a custom header as described here:
https://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Custom_header_and_footer

It does not seem to work... See attached file. What am I missing?

AMC version 1.7.0 on Debian 13

mwe.tex (848 Bytes)


Replies (1)

RE: custom header and footer not working - Added by Alexis Bienvenüe 15 days ago

You should now use fancypagestyle to set all page headers/footers and corner marks, like this:

\makeatletter
  \fancypagestyle{AMCpageFull}{
  \fancyhead[L]{\AMC@LR{\he@dbas{\leavevmode\m@rque{positionHG}}}}%
  \fancyhead[R]{\AMC@LR{\he@dbas{\leavevmode\m@rque{positionHD}}}}%
  \fancyfoot[L]{\AMC@LR{\leavevmode\m@rque{positionBG}}}%
  \fancyfoot[R]{\AMC@LR{\leavevmode\m@rque{positionBD}}}%
  \fancyhead[C]{ ...header... }
  \fancyfoot[C]{\AMCIDBoxesABC}
}
\makeatother

AMCpageFull is used for a standard page, AMCpageHeadOnly for a page in the corrected sheets, AMCpageNoMarks for a page with no marks.

(1-1/1)