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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12. PAGE NOTESWhich is a special construction the makes the text go flush against the text block on sidespecified via \sideparmargin. Since the margin par area is usually quite narrow it mightbe an idea to use a ragged setup which enables hyphenation. This can be achieved by\usepackage{ragged2e}\newcommand*{\sideparform}{%\ifmemtortm\RaggedRight\else\RaggedLeft\fi}<strong>The</strong> macro \sideparmargin{〈placement〉} can be used to specify which margin theside note should go to. 〈placement〉 should be one of left, right, outer, or inner. Interpretationof which is explained in Figure 12.2. For some now forgotten reason the defaultcorresponds to \sideparmargin{left}. 6By default the 〈right〉 argument is put in the left margin. When the twoside option isused the 〈right〉 argument is put into the right margin on the verso (even numbered) pages;however, for these pages the optional 〈left〉 argument is used instead if it is present. Fortwo column text the relevent argument is put into the ‘outer’ margin with respect to thecolumn.<strong>The</strong> original convoluted methods of specifying the margin for \sidepar is deprecated,although still supported; if you need to know what they are then you can read all aboutthem in <strong>memoir</strong>.dtx.\parnoparWhen La<strong>TeX</strong> is deciding where to place the side notes it checks whether it is on an oddor even page and sometimes <strong>TeX</strong> doesn’t realise that it has just moved onto the next page.Effectively <strong>TeX</strong> typesets paragraph by paragraph (including any side notes) and at theend of each paragraph sees if there should have been a page break in the middle of theparagraph. If there was it outputs the first part of the paragraph, inserts the page break,and retains the second part of the paragraph, without retypesetting it, for eventual outputat the top of the new page. This means that side notes for any given paragraph are in thesame margin, either left or right. A side note at the end of a paragraph may then end up inthe wrong margin. <strong>The</strong> macro \parnopar forces a new paragraph but without appearingto (the first line in the following paragraph follows immediately after the last element inthe prior paragraph with no line break). You can use \parnopar to make <strong>TeX</strong> to do itspage break calculation when you want it to, by splitting what appears to be one paragraphinto two paragraphs.Bastiaan Veelo has kindly provided example code for another form of a side note, thecode is shown in Sniplet C.3 on page 402.Bastiaan also noted that it provided an example of using the \foremargin length. Ifyou want to try it out, either put the code in your preamble, or put it into a package (i.e.,.sty file) without the \makeat... commands.12.4 SIDEBARSSidebars are typeset in the margin and usually contain material that is ancilliary to themain text. <strong>The</strong>y may be long and extend for more than one page. 76 As not to change existing documents, we have decided to leave it like that.7 Donald Arseneau’s help has been invaluable in getting the sidebar code to work.240

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

Saved successfully!

Ooh no, something went wrong!