I have a question environment defined as follows:

    {\bf #1}

The argument is the "question name". I would now like to include the name of every question which appears on a page in the header of that page. For example, if a page includes questions foo and bar, I want foo, bar to appear in the header. In particular, if a question spans multiple pages, I want this question to be listed on every page it was split across.

This is somewhat similar to listing the chapter name in the corner, however I will often have multiple questions on one page.

My goal is closely related to Decorate every page of an environment, however rather than simply identifying that there exists a question on the page, I need to store a list of those questions.

How can I do this in LaTeX?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.