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 NOTES\setsidebarheight{15\onelineskip}<strong>The</strong> default is the \textheight.Perhaps you would like sidebars to start two lines below the top of the typeblock butstill end at the bottom of the typeblock? If so, and you are using the calc package [TJ05],then the following will do the job:\setlength{\sidebartopskip}{2\onelineskip}\setsidebarheight{\textheight-\sidebartopskip}<strong>The</strong> alignment of the text in a sidebar with the main text may not be particularlygood and you may wish to do some experimentation (possibly through a combinationof \sidebarvsep and \setsidebarheight) to improve matters.Although you can set the parameters for your sidebars individually it is more efficientto use the \setsidebars command; it must be used if you change the font and/or theheight.\setsidebars{〈hsep〉}{〈width〉}{〈vsep〉}{〈topsep〉}{〈font〉}{〈height〉}<strong>The</strong> \setsidebars command can be used to set the sidebar parameters.\sidebarhsep is set to 〈hsep〉, \sidebarwidth is set to 〈width〉, \sidebarvsep is setto 〈vsep〉, \sidebartopsep is set to 〈topsep〉, \sidebarfont is set to 〈font〉, and finally\setsidebarheight is used to set the height to 〈height〉. <strong>The</strong> default is:\setsidebars{\marginparsep}{\marginparwidth}{\onelineskip}%{0pt}{\normalsize\normalfont}{\textheight}Any, or all, of the arguments can be a *, in which case the parameter corresponding to thatargument is unchanged. Repeating the above example of changing the topskip and theheight, assuming that the other defaults are satisfactory except that the width should be3cm and an italic font should be used:\setsidebars{*}{3cm}{*}{2\onelineskip}{\itshape}%{\textheight-\sidebartopsep}Changing the marginpar parameters, for example with \setmarginnotes, will notaffect the sidebar parameters.Note that \checkandfixthelayout neither checks nor fixes any of the sidebar parameters.This means, for instance, that if you change the \textheight from its default valueand you want sidebars to have the same height then after changing the \textheightyou have to call \checkandfixthelayout and then call \setsidebars with the (new)\textheight. For instance:...\settypeblocksize{40\baselineskip}{5in}{*}...\checkandfixthelayout\setsidebars{...}{...}{...}{...}{...}{\textheight}Unfortunately if a sidebar is on a double column page that either includes a doublecolumn float or starts a new chapter then the top of the sidebar comes below the float orthe chapter title. I have been unable to eliminate this ‘feature’.12.5 SIDE FOOTNOTESBesides three already mentioned macros for writing in the margin (\marginpar,\sidepar, and \sidebar) <strong>memoir</strong> also provide a functionality to add side footnotes. Ac-242

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

Saved successfully!

Ooh no, something went wrong!