# How to place a Tagging Rule in the Page Header

I have successfully created the meta data "Calculus I" for a notebook by executing the following code in the notebook.

SetOptions[InputNotebook[],
TaggingRules -> {"meta" -> {"Calculus I"}}]


I then placed the following in my private stylesheet for that notebook.

PageHeaders -> {{CurrentValue[
InputNotebook[], {TaggingRules, "meta"}], None,
None}, {CurrentValue[InputNotebook[], {TaggingRules, "meta"}],
None, None}}


I am somewhat comfortable with Page Headers, but I'm not sure what I am doing wrong here. For some reason, the header does not appear on any of the pages when I go to print preview. Can you tell me what I am doing wrong here?

• Okay, quick question, Let's say you add filler to your test notebook so that you have 2 pages on your print preview, is the header on the second page? – user6014 Oct 29 '16 at 2:50
• No it is not. I made sure to check this. – Michael McCain Nov 1 '16 at 18:30

I hope this will help. With the following I had the page headers you were looking for on all pages:

SetOptions[EvaluationNotebook[],

• Can you describe how it doesn't work? If I evaluate SetOptions[InputNotebook[], TaggingRules -> {"meta" -> {"Calculus I"}}] followed by the above code in a fresh notebook, and then go to Print Preview, I reliably have "Calculus 1" on the top of the page. How is it not working for you? – user6014 Nov 1 '16 at 19:32