12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12. PAGE NOTESvalue of the pagenote counter in the main text. By default it is printed as a superscript,but this can be changed, or even eliminated.\newcommand*{\notenumintext}[1]{\textsuperscript{#1}}In the page note listTo better understand how a page note entry is formatted in the page note list, we start withthe following pseudo code (it is not exactly what you will see in the .ent file, but macroswill end up being called in this manner)\prenoteinnotes\noteidinnotes{〈notenum〉}{〈id〉}\pageinnotes{〈auto generated note label key〉}\prenotetext〈Page note text〉\postnotetext\postnoteinnotesAt the start and end we have the two macros \prenoteinnotes and \postnoteinnotes,they take care of preparing for and ending an entry in the list. <strong>The</strong> list is typeset in amanner where each item is (at least) a paragraph, so the default definition is\newcommand{\prenoteinnotes}{\par\noindent}\newcommand{\postnoteinnotes}{\par}A user could change this to make it look a bit more like a list construction. For examplethe following would give a hanging indentation\renewcommand{\prenoteinnotes}{\par\noindent\hangindent 2em}<strong>The</strong> \noteidinnotes calls \idtextinnotes to print the note 〈id〉 if it was given as theoptional argument to pagenote, otherwise it calls \notenuminnotes to print the notenumber.\noteidinnotes{〈notenum〉}{〈id〉}\idtextinnotes{〈id〉}\notenuminnotes{〈num〉}<strong>The</strong>se are defined respectively as:\newcommand*{\idtextinnotes}[1]{[#1]\space}\newcommand*{\notenuminnotes}[1]{\normalfont #1.\space}Next we execute \pageinnotes{〈note label key〉} which does nothing by default. Butif \notepageref is issued in the preamble two things happen, (1) each page noteissues a label such that we can refer back to its page, and (2) \pageinnotes calls\printpageinnotes (or if hyperref is loaded \printpageinnoteshyperref)\pageinnotes{〈auto generated note label key〉}\printpageinnotes{〈auto generated note label key〉}\printpageinnoteshyperref{〈auto generated note label key〉}Default definitions\newcommand*{\printpageinnotes}[1]{%(\pagerefname\ \pageref{#1})\space}248

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!