Home

Addendum

image

Contents

1. pagenote Another note 27 4 FRONT AND REAR Notes Chapter 1 One 1 An end note 2 Fascinating information Chapter 9 Last 30 Another note Figure 4 1 Example endnote listing printpagenotes hhh no more chapters end document continuousnotenums notepageref The pagenote counter is used for the notes By default the endnotes are numbered per chapter If you want the numbering to be continuous throughout the document use the continuousnotenums declaration Normally the information on which page a note was created is discarded but will be made available to notes in the endnote listing following the notepageref declaration These declarations should be put in your preamble Because of how TeX writes information to files when the notepageref declaration is used there must be no notes on the page where printnotes or printnotes closes the ent file If necessary a clearpage or similar must be used before the print command notesname notedivision When printnotes or printnotes is called the first thing it does is call the macro notedivision By default this is defined as newcommand notesname Notes newcommand notedivision chapter notesname In other words it will print out a heading for the notes that will be read from the ent file print then closes the ent file for writing and after this inputs it to get and process the notes 28 End
2. fussy sloppy begin sloppypar end sloppypar midsloppy begin midsloppypar end midsloppypar The default mode for LaTeX typesetting is fussy where the variation of interword spacing in justified text is kept to a minimum Following the sloppy declaration there may be a much looser setting of justified text The sloppypar environment is equivalent to par sloppy par Additionally the class provides the midsloppy declaration and the midsloppypar environment which allows a setting somewhere between fussy and sloppy Using nidsloppy you will get fewer overfull lines compared with fussy and fewer obvious large interword spaces than with sloppy I have used midsloppy for this manual it hasn t prevented overfull lines or noticeably different interword spaces but has markedly reduced them compared with fussy and sloppy respectively Three Document divisions 3 1 Book headings Frederic Connes has told me that in French typography there is often a document division above the Apart level This is also sometimes the case with English typography the Chicago Manual of Style p21 shows an example Based on code that he kindly sent me a new document division Book is provided that is above Part in the division hierarchy There are now six levels of document division and these are given in Table B 1 book toc title title Nbook title The book command is like the
3. 1 space 2 3 dotfill 4 relax else 1 dotfill 4 2 3 fi makeatother The redefinition of glossitem works as follows it is similar to code used in the set ting of a capt ion 1 Put the whole entry into a temporary box 25 4 FRONT AND REAR 2 Set up a hanging paragraph with 2em indentation after the first line 3 Check if the length of the entry is less than 80 of the linewidth 4 For a short entry set the name description and any reference then fill the remainder of the line with dots with the number at the right margin 5 For a longer entry set the title and number on a line separated by a line of dots then set the description and reference on the following lines In the document the raw data is collected by the glossary commands in the body of the text For instance although I have not actually used the first two glossary cs cs cs gmarg name Typesets texttt name as a macro name with preceding backslash e g cs name glossary gmarg cs gmarg gmarg arg Typesets texttt arg as a required argument e g gmarg arg glossary glossaryname cs glossaryname Name for a glossary glossary memgloterm cs memgloterm gmarg term Wrapper round a glossary term Any change to the glossary entries will be reflected in the glo produced from that LaTeX run Then run Makelndex on the glo file using the appropriate gst configura tion file and run LaTeX agai
4. 2 Page layout 2 1 Text height 2 2 Side margins 2 3 Overfull lines oP Ww 3_ Document divisions 7 3 1 Book headings es exo erg xx kant anne 7 8 3 2 Part headings 3 3 Chapter styl e imb Ren Re oer ER che zur 10 10 Southall 10 Chappell 11 11 viii 3 4 Poem BEES cido a enn toe A ee oe ee all 12 Main Poem Title layout parameters 13 Detailed Poem Title layout parame 13 4 Front and rear 15 A 7 01 15 aaa A dst 8 Kose oe na Ie UTE I end i 15 Book ToC entry 17 4 3 Iheindex 339123 Re eco x oom ey be EX EEG ES 18 4 4 Glossaries vas sem wan ws Kaas Y ERR koss 4 19 4 5 Controlling the glossary ee 20 Setting up makeindex 23 The listing 24 The glossary for 25 4 6 Eudnotes socios a ae Das a a 26 29 81 5 1 Sidebars san lima EE deb hee ERK eed cane el ES 31 5 2 Side not s 14 4 23 e nase S Y X E Ru ORDE Pons 31 5 3 Boxedverbatims om mn 31 5 4 Mersel ia m do uU ob m oe Se e mE E 32 D5 JistS 4beccaGcoedisucem 4G aa kan cube 33 35 Vr cen ned cc A E 35 36 62 Caption title text i a orb Rd x s nd Rm EES s 38 7 Miscellaneous 39 7 1 General u eos se 0 2 2 ole a ee kolle He AE DR E Ro 39 1 7 2 Forpackagewriters e 42 Emulating packages 22 Extending a macro 42 Inserting code before and after a file package or class 43 47 Bibliography 57 59 1x List of Figures 4 1 Exam
5. if tempswa global maxdepth z flupdates botnum botroom botlist 40 General inserttrue global floatatbottrue Mi Mi Mil Let p wold output outputpage renewcommand outputpage 7 p wold output global floatattopfalse global floatatbotfalse endinput floatattop is probably set TRUE if there is a float at the top of the page and floatatbot is probably set TRUE if there is a float at the bottom of the page TWO SIMPLE MACROS There are two trivial macros that can be generally useful memjustarg text memgobble text The Nnemjustarg macro just uses its argument and is defined as newcommand memjustarg 1 1 The Nnemgobble macro gobbles down and swallows its argument Its definition is newcommand memgobble 1 Do not redefine either memjustarg or memgobble if you do various pieces of code will behave in unexpected ways that you will not like TRIM MARKS showtrimsoff showtrimson If the showtrims option has been used then the showtrimsoff switches off the trim marks the showtrimson declaration which is the default switches on the trim marks These declarations do nothing if the showtrims option is not used VERTICAL CENTERING The manual describes one method for centering text vertically The new vplace environ ment provides a simpler way begin vplace num text end vplace The contents of the vplace environment are v
6. make sure that the sidecaption gets placed where it won t be overlaid by the main text 6 2 Caption title text captiontitlefinalt stuff captiontitlefinalt stuff will put stuff immediately at the end of a caption s title but stuff willnot appear in the LoF or LoT The default is captiontitlefinal but it could be called instead as say captiontitlefinal to put a period full stop after the title 38 Seven Miscellaneous 7 1 General FONT COMMANDS The Nem command is no longer deprecated it was a misreading on my part to deprecate it in the first place eminnershape shape If the Nemph commmand is used within italic text then the newly emphasized text will be typeset using the eminnershape font shape The default definition is newcommand eminnershape upshape which you can change if you wish FOOTNOTES There was a question on CTT asking how to ensure that footnotes were at the bottom of the page when raggedbottom was in effect The solution is to add a vfill to the footnoterule macro as below renewcommand footnoterule kern 3pt vfill hrule width 0 4 columnwidth kern 2 6pt FLOATS A page which consists of floats e g table figure with no body text is called a floatpage By default floats on a floatpage are centered vertically To move the floats to the top of the page try makeatletter setlength fptop Opt setlength dblfptop
7. Opt makeatother To move the floats to the bottom of the page replace fptop and dblfptop by fpbot and dblfpbot respectively 39 7 MISCELLANEOUS One author thought it would be nice to be able to have different page headings accord ing to whether the page was a floatpage or there was a float at the top of the page or a float at the bottom of a page or there was text at the top and bottom This I think is not a common requirement and further that to provide this involves changing parts of the LaTeX output routine something only to be tackled by the bravest of the brave If it were to be done then were best done in a package that could be easily ignored The following is an outline of what might be done I do not recommend it and if you try this and all your work dissappears then on your own head be it notefloat sty newif iffloatattop floatattopfalse newif iffloatatbot floatatbotfalse renewcommand addtotoporbot getfpsbit tw ifodd tempcnta flsetnum topnum ifnum topnum gt z tempswafalse flcheckspace toproom toplist if tempswa bitor currtype midlist botlist if test else flupdates topnum toproom toplist inserttrue global floatattoptrue fi fi fi Mi if insert else addtobot Mil renewcommand addtobot getfpsbit 4 relax ifodd tempcnta flsetnum botnum ifnum botnum gt z tempswafalse flcheckspace botroom botlist
8. chapter is numbered the ToC being an example of an unnumbered heading DEMO2 This is the original code for the demo chapterstyle makechapterstyle demo renewcommand printchaptername centering renewcommand printchapternum chapnumfont numtoName c chapter renewcommand chaptitlefont normalfont Huge sffamily renewcommand printchaptertitle 1 hrule vskip onelineskip raggedleft chaptitlefont 1 renewcommand afterchaptertitle vskip onelineskip hrule vskip afterchapskip end demo This has one serious failing and what I am now thinking is a poor design decision The failing is that if you have any appendices that use the demo chapterstyle then they are numbered instead of being lettered The poor design is that the position of the title with 11 3 DOCUMENT DIVISIONS respect to the top of the page is not the same for nambered and unnumbered chapters The demo2 chapterstyle below fixes both of these makechapterstyle demo2 renewcommand printchaptername centering renewcommand printchapternum chapnumfont ifanappendix thechapter else numtoName c chapter fi renewcommand chaptitlefont normalfont Huge sf family renewcommand printchaptertitle 1 hrule vskip onelineskip raggedleft chaptitlefont 1 renewcommand afterchaptertitle vskip onelineskip hrule vskip afterchapskip setlength beforechapskip 3 baselineskip renewcommand printchapternonum
9. e ae ran dee Vertical space between a part number and the part title midPoenTitleskip eed da beate ipod n Rond epi A Vertical space between the number and text of a poem title AmidsloppY stets seus Declaration for TeX to allow moderate interword space variations in justified text lines XbeginimidslOppypar un aaa Typeset contents of the enclosed paragraph s using midsloppy newleadpage page style cmdname title essen nennen nenn 9 Creates a command cmdname which typesets a part like page with title and the page style pagestyle if given otherwise it uses the empty pagestyle The title is added to the ToC newleadpage page style cmdname title T eese p Creates a command cmdname which typesets a part like page with title and the page style pagestyle if given otherwise it uses the empty pagestyle newlistentry within cntr ext level 1 oo eese Creates the commands necessary for typesetting an entry in the List of for the file with extension ext The entry uses the cntr possibly within counter and level 1 is the entry s level minus one nobookblankpage ss elu else ru e ERR ied dnek DER er EE rn Declaration for no blank page to be output after a book title page MioglossaryintoCc cessisse ar aia Declaration to prohibit adding glossary title to the ToC nopartblankpage ii Pl Declaration for not following a part page with a blank o
10. file for memman and friends h Output style parameters preamble begin theglossary postamble n end theglossary n group_skip n glossaryspace n item_0 n glossitem delim 0 memglonun encap suffix indent space Nt indent length 2 h Input style parameters keyword glossaryentry actual page compositor The group skip line asks that glossaryspace be put between the last entry for one letter and the first for the next letter The indent space and indent length give a smaller indent for continuation lines in the output than the default 21 4 FRONT AND REAR Table 4 2 Makelndex configuration file output parameters Keyword Default Description preamble s begin theindex n Text for the start of the output file postamble s n n end theindex n Text at the end of the output file group_skip s heading prefix s heading suffix s n n indexspace n Vertical space before a new letter group Prefix for heading for a new letter group Suffix for heading for a new letter group headings flag n 0 A value 0 inserts nothing between letter groups A value gt 0 includes an uppercase instance of the new symbol while a value 0 includes a lowercase instance all within heading prefix and heading suffix item 0 s n item Command inserted in front of a level 0 entry item_1 s n subitem As above for a level 1 entry item 2 s i
11. happen The RequireAtEndPackage command will like AtEndPackage insert code at the end of the pack package if it has not yet been used If the package has already been used then the code is called immediately NAtBeginClassf class H code AtEndClass class H code RequireAtEndClass class H code The AtBeginClass command will insert code just before the class class is used Sim ilarly AtEndClass will insert the code immediately after the class The class argu ment must be the same as used in the corresponding LoadClass command that is with out any extension The At Class commands must be issued before the corresponding class is used otherwise nothing will happen 43 7 MISCELLANEOUS The RequireAtEndClass command will like NAtEndClass insert code at the end of the class class if it has not yet been used If the class has already been used then the code is called immediately There is an unfortunate interaction between the kernel s NAtEndOfPackage and the class s AtEndPackage and similarly for the AtEndOfClass and AtEndClass I dis covered this when I tried to automate using the memhfixc package if hyperref was being used by putting the following into the memoir code AtEndPackage hyperref usepackage memhfixc which caused all sorts of problems The kernel scheme scheme looks like this newcommand usepackage 1 InputIfFileExists 1 lt AtEndOf
12. margin where the sidecaption will be placed The possible values for margin are one of left right inner or outer If left or right is specified the caption will go into the left or right margin If inner or outer is specified then in a two sided document the caption will be on different sides of the textblock according to whether it is a recto or verso page in a one sided document the caption margin is fixed The left margin is the default 1Well nearly always See the overridescapmargin command later 35 6 CAPTIONS When the caption is to be set in the left margin ifscapmargleft is set true and for a right margin it is set false setsidecappos pos By default a sidecaption is vertically centered with respect to the float it is captioning This can be altered by using the setsidecappos declaration The allowed values for pos are t the top of the caption is aligned with the top of the float c the default the center of the caption is aligned with the center of the float b the bottom of the caption is aligned with the bottom of the float The other kinds of simple captions can also be put at the side of a float The positioning and styling commands for these are exactly those for sidecaption Bilingual captions can only be placed above or below the float begin sidecontcaption title label the body of the float end sidecontcaption Sidecaptions may be continued w
13. the current package or class More precisely these macros call the code after the package or class file has been input via NInputIfFileExists The class provides a more comprensive set of macros for code insertions which should be used before the relevant file is called for AtBeginFilet file H code AtEndFilet file code The AtBeginFile macro inserts code just before the file file is Ninput or included etc Similarly AtEndFile inserts the code immediately after the file The file argu ment must be the same as used in the corresponding Ninput command If file includes an extension for example fred def then that is taken as the complete name otherwise if there is no extension for instance fred then the tex extension is automatically ap pended making the full name fred tex The At File commands must be issued before the corresponding file is input oth erwise nothing will happen AtBeginPackage pack H code AtEndPackage pack code RequireAtEndPackage pack code The AtBeginPackage command will insert code just before the pack package is used Similarly AtEndPackage will insert the code immediately after the pack The pack argument must be the same as used in the corresponding Nusepackage command that is without any extension The At Package commands must be issued before the cor responding pack is used otherwise nothing will
14. the num ber if any and the title and after the title has been set bookname printbookname booknamef ont booknamenum bookname defined as Nnewcommmand Nbookname Book is the name for a book printbookname prints the bookname using the booknamef ont which is defined as newcommand booknamefont normalfont huge bfseries This is followed by booknamenum which is defined to be space booknumfont printbooknum printbooknum prints the book number i e thebook using the booknumfont whose default definition is the same as booknamefont booktitlefont printbooktitle title printbooktitle title prints the book title using the Nbooktitlefont which is de fined as newcommand booktitlefont normalfont Huge bfseries 8 Part headings 3 2 Part headings partmark title The Apart code now includes partmark title for storing the title of the part if it is going to be used for example in page headers Its default definition is simply newcommand partmark 1 partblankpage nopartblankpage A page with a part title is normally followed by a blank page If you do not want this then use the nopartblankpage declaration The partblankpage declaration reverts the behaviour to the normal blank page A new pagestyle afterpart which defaults to empty is applied to the blank page if any following a part page ne
15. to read a glo file and generate a useful g1s file as by default it expects to read an index idx file and produce an index ind file A configuration file like an index ist file will be needed There is no recommended extension for such a file but I have come to favour gst The command line for Makelndex to create a sorted glossary from the raw data in a glo file say fred glo using a configuration file called say basic gst is makeindex s basic gst o fred gls fred glo For other jobs just change the file names appropriately So what is in a gst file The potential contents are given by Chen amp Harrison and also in the Companion Chap 11 Ata minimum you need this hhh basic gst basic makindex glossary style file 14h Output style parameters preamble begin theglossary postamble n end theglossary n item_0 n glossitem delim O memglonun encap suffix hhh Input style parameters keyword glossaryentry The keyword line says that each entry in an input glo file will be of the form glossaryentry entry text number and by a miracle of coding this is what memoir will put in a glo file for each glossary command The preamble and postamble lines tell the program to start and end its output file with begin theglossary and end theglossary respectively The item_0 tells the program to start each output entry with glossitem The delim_0 says that memglonum sould be put between the end of the entry tex
16. vertical placement of a sidecaption AsidecspBep se caus ves tree en naeh nee nb satelite tee etr a ever E RA Length specifying the horizontal separation between a sidecaption and the float sidecapstyle Style settings for a sidecaption sss begin sidecaption fortoc title L label esee Environment for setting a sidecaption Sidecapwidth cn Pet elo EE bennen ere Vera e ad Length specifying the maximum width of a sidecaption begin sidecontcaption title label eese Environment for setting a continued sidecaption begin sidelegend title label sess Environment for setting a legend kind of sidecaption Nbegin sidenamedlegendM title label neen Environment for setting a named legend kind of sidecaption eldeparl Ureh rd tadaa de a aid Rap Typeset right in the outer margin or if given left in the left of verso pages sideparvshift karmis teele nerd pende a diseno Vertical adjustment for sidepar marginal text SLOPPY ri Declaration for TeX to allow large interword space variations in justified text lines begin sloppypar eer o rav dt MR RU ERU Typeset contents of the enclosed paragraph s using sloppy subcaptionlabelfont fontspec cece ccc cece en The font for the identifier of a subcaption subcaptionref key hi cari A A Typesets a reference to the subcaption labelled with key using the subcaptionlabel font Xs bcaptiontef
17. vphantom chapnumfont One afterchapternum vskip topskip setlength beforechapskip 2 onelineskip end demo2 You may find it instructive to compare the code for the demo and demo2 chapterstyles Starting in November 2002 this document used the demo chapterstyle From July 2006 onwards it uses the demo2 chapterstyle 34 Poem Titles The new command PoemTitle provides more flexibility in typesetting titles of poems that the original poemtitle does PoemTitle fortoc L forhead title NumberPoemTitle PlainPoemTitle thepoem poemt it lemark forhead poemtitlepstyle The XPoemTitle command takes the same arguments as the chapter command it typesets the title for a poem and adds it to the ToC Following the declara tion NumberPoemTitle the title is numbered but there is no numbering after the PlainPoemTitle declaration The macro poemtitlemark is called with the argument forhead so that it may be used to set marks for use in a page header via the normal mark process The poemtitlepstyle macro which by default does nothing is provided as a hook so that for example it can be redefined to specify a particular pagestyle that should be used For example renewcommand poemtitlemark 1 markboth 1 1 renewcommmand poemtitlepstyle pagestyle headings thispagestyle empty 12 Poem Titles XPoemTitlex forhead title poemtitlestarmark forhead poemt
18. whereas for footnote it must be a number 30 Five Boxes and environments 5 1 Sidebars It is now possible to control on which side of the page a sidebar gets placed sidebarmargint margin For onecolumn documents and with sidebaronesidefalse you can use sidebarmargin to specify which margin you want sidebars to be located Posssi ble values for margin are left right inner or outer with the obvious meanings sidebarmargin right and sidebaronesidetrue are equivalent There are no positioning options for twocolumn documents 5 2 Side notes sidepar left Y L right sideparvshift sidepar provides a fixed version of marginpar In the original version the marginal text could shift up or down depending on the presence or absence of ascenders and de scenders in the marginal text and the main line text The length sideparvshift was provided to enable the shift to be compensated for and its default value was 2 08ex Dan Luecking has provided the new version of sidepar whereby the marginal text does not shift and the default value of sideparvshift is now Opt 5 3 Boxed verbatims bvendof page code A boxed verbatim may extend across a page break and the Nbvendofpage macro deter mines what happens at the bottom of the page just before the break The default definitions is newcommand bvendofpage hrule kern 4pt which results in a horizontal rule being
19. written out verbatim Material from the verbatimoutput environment is written to the file file On the other hand material from the writeverbatim environment is written to whatever file is currently associated with the stream output stream 1 6 Subcaptions subcaptionref key subcaptionref key subcaptionlabelfont fontspec To refer to a subcaption you can use either subcaptionref or the starred version subcaptionref In the latter case the normal font is used and in the former the refer ence is typeset using the subcaptionlabelfont 1 7 New list entries In section 10 4 New list of and entries of the manual I gave an example of creating a new list entry for a subanswer as newlistentry answer subanswer 1 Unfortunately newlistentry takes one optional and three required arguments newlistentry within cntr 4 ext MX level 1 The example should have read newlistentry answer subanswer ans 1 Two Page layout 2 1 Text height After specifying the page layout you want the checkandfixthelayout command has to be called to implement your specification checkandfixthelayout L algorithm checkthelayout algorithm The checkandfixthelayout algorithm macro uses checkthelayout algorithm to check the page layout specification you have given and then implements it The checkthelayout algorithm macro checks the layout m
20. Addendum ADDENDUM The Memoir Class for Configurable Typesetting User Guide Peter Wilson 2002 2006 Peter R Wilson All rights reserved The Herries Press Normandy Park WA Printed in the World The paper used in this publication may meet the minimum requirements of the American National Standard for Information Sciences Permanence of Paper for Printed Library Materials ANSI Z39 48 1984 10 09 08 07 06 05 04 03 02 20 19 18 17 16 15 First edition November 2002 Second impression with minor additions December 2002 Third impression with additions January 2003 Fourth impression with additions January 2003 Fifth impression with minor additions February 2003 Sixth impression with minor additions February 2003 Seventh impression with minor additions April 2003 Eighth impression with minor additions June 2003 Ninth impression with minor additions July 2003 Tenth impression with minor additions September 2003 Eleventh impression with minor additions November 2003 Second edition September 2005 Twelth impression with minor additions October 2005 Thirteenth impression with minor additions November 2005 Fourteenth impression with minor additions January 2006 Fifteenth impression with minor additions August 2006 addendum n L gerundive of addere see ADD 1 a thing added or to be added 2 an appendix or supplement to a book etc 3 the part of a gear tooth that projects beyond the pitch circle or the distance th
21. Apart command and produces a similar looking title page in the document Nbookmark4 title The book code includes bookmarkt title for storing the title of the book if it is going to be used for example in page headers Its default definition is simply newcommand bookmark 1 Table 3 1 Division levels Division Level book 2 part chapter section subsection subsubsection paragraph subparagraph OrPWNF OF 3 DOCUMENT DIVISIONS bookblankpage nobookblankpage A page with a book title is normally followed by a blank page If you do not want this then use the nobookblankpage declaration The bookblankpage declaration reverts the behaviour to the normal blank page The pagestyle book is applied to a book division title page and the pagestyle afterbook which defaults to empty is applied to the blank page if any following a book page BOOK HEADING LAYOUT The layout for a book page is very similar to that for a part page although there are separate controls for each The code for typesetting the page is in essence like this newcommand book 1 cleardoublepage thispagestyle book beforebookskip printbookname booknamenum booknumfont thebook midbookskip printparttitle 1 bookmark 1 afterpartskip beforebookskip midbookskip afterbookskip These commands are called before any part of the title is set between typesetting
22. BeginFile 43 AtBeginPackage NAtEndClass 43 AtEndDocument MAtEndFile 43 AtEndOfClass AtEndOfPackage AtEndPackage 59 atendtheglossaryhook 25 Wbackmatter xiii baselineskip length B 4 bef orebookskip 8 beforepartskip XbeforePoemTitleskip length 13 Nbegintheglossaryhook 25 book 7 8 17 45 book pagestyle 8 book 7 45 bookblankpage 8 bookmark bookname 8 booknamef ont 8 booknamenum 8 booknumf ont 8 booktabs package booktitlefont 8 bvendof page calc package capt ion 25 captionnamefont captiontitlefinal ccaption package centering 14 cftappendixname 15 cftbeforebookskip length 18 cftbookaf tersnum cftbookaf tersnumb cftbookdotsep everylistparindent length RE cftbookfont cftbookindent length 18 cftbookleader Ncftbooknumwidth length 18 cftbookpagefont cftbookpresnum cftchaptername cftfigurename cftparagraphname 16 cftpartname 15 cftsectionname 16 Ncftsubparagraphname cftsubsectionname cftsubsubsect ionname 16 cftt ablenane 16 changeglossactual 23 changeglossnum 23 23 24 on m changeglossref 23 chappell Capt chapter 10 12 1545 chapter 45 chapterbib package chapternane 30 chapterstyle chappell crapped a demo2 12 ee southall checkandf ixthelayout B A ostes Y 42 c
23. Package code gt The basic mechanism for implementing the class macros is by modifying the kernel s InputIfFileExists macro which internally uses a form of input to read in the file so that the inserted code comes immediately before and after the input somewhat like renewcommand InputIfFileExists 1 lt before code input 1 after code If NAtEndPackage is applied to a package that has an internal MMtEndOf Package then the result can be sketched as newcommand usepackage 1 lt before code gt input 1 lt after code gt lt AtEndOfPackage code In other words the body of the package is read in the AtEndPackage code is called and then after that the AtEndOfPackage code is called The hyperref package internally uses AtEndOf Package to read some files and memh fixc had to be input after these A way to automate memhfixc after hyperref is AtEndPackage hyperref AtBeginDocument usepackage memhf ixc but this seems more trouble than it s worth 7 3 Heading hooks On 2nd September 2005 I posted two messages to the comp text tex newsgroup saying that I was creating a new version of memoir and that I would consider inserting hooks into the class code that package writers might find useful I got no requests for any hooks or anything else from package writers I therefore assume that no package author sees any problems if a memoir class document author uses the package 44 Headi
24. Used to set marks for a PoemTitle poemtitlestarpstyle Page style for a NPoemTitle sess Nposthoteinnot6es sip cd aa Called by noteentry to finish the printing of an endnote COMMAND SUMMARY preglossaryhook mii e ER eee otn in eode Rage HOHER es Vacuous macro called after a glossary title is typeset prenoteinnotes denderen ee esee esee ss es he eme Called by Nnoteentry to initialise the printing of an endnote printbookname Prints the Nbookname using the Nbooknamefont 8 Aprintbooknum Prints the book number using the booknumfont 8 Nprintbooktitlei e k nun een nenne ea 8 Prints the book title using the booktitlefont printglossary MD een Prints the glossary from file jobname gls or file gls printpageinnotes pagenum eese mee Prints an endnote s page reference number printpagenotes iu ler eere ie Mee tank IP Ea ee m ki E PE e eaa He Ra Pipes E Input the pagenote ent file for printing then close it to any more notes printpagenotest s see esed beet ten adde Da el eee is Input the pagenote ent file for printing then empty it ready for further notes printPoemTitlenonum senden eenen eneen eenen dennen eenn Used instead of printPoemTitlenum for an unnumbered PoemTitle printPoemTitlenum Typesets the number fora PoemTitle printPoemTitletitlet title u cee wee dede eet des entend keine dee Typesets the title of a PoemTit
25. afterpnum cftparfillskip setpnumwidth 0em setrmarg 0 3 textwidth tableofcontents clearpage The above sets the page numbers as though they were left adjusted in the page number box but with LaTeX reporting overfull hboxes Changing the width of the box for the page number 16 The ToC setpnumwidth 1 5em results in the page numbers being right adjusted in the 1 5em wide box which I think does not look as good To get the left adjusted effect with no complaints try renewcommand cftchapterfillnum 1 cftchapterleader nobreak hbox to 1 5em cftchapterpagefont 1 hfil cftchapterafterpnum par The next piece of code will typeset a group of subsections in the ToC as a paragraph hhh have subsections as a paragraph in the ToC makeatletter let oldnumberline numberline renewcommand cftsubsectionfont itshape renewcommand cftsubsectionpagefont itshape renewcommand 1 subsection 2 relax def numberline 1 textit 1 leftskip cftsubsectionindent rightskip tocrmarg advance rightskip z plus hsize uncomment this for raggedright advance rightskip z plus 2em uncomment this for semi raggedright parfillskip fill ifhmode else noindent fi ignorespaces cftsubsectionfont 1 cftsubsectionpagefont 2 let numberline oldnumberline ignorespaces AtEndDocument addtocontents toc par makeatother The final piece of code below sets up the rest of the second ToC Default conte
26. aragraphname ssssssssess seem eee ees seen In the ToC called before the number of a subparagraph Ncftsubsectionnam e en ie ita In the ToC called before the number of a subsection Ncftsubsubsectiohname ic ce abere erdee ESO Fe Peau res In the ToC called before the number of a subsubsection cfttablename In the LoT called before the number of a table changeglossactual file char esses Specifies char as the actual character for glossary file changeglossnum file thecounter eese Specifies thecounter as the num for glossary file Nchangeglossnumformat file V format esee Specifies format as the format for num for glossary file changeglossref file thecounter eese Specifies thecounter as the ref for glossary file checkandfixthelayout algorithm sees Command to check and implement the page layout specifications adjusting the textheight using algorithm classic fixed lines or nearest the default being clas sic for the calculation checkthelayout algorithm esses Command to check the page layout specifications adjusting the textheight using algorithm classic fixed lines or nearest the default being classic for the calcula tion SOOMETHIOUSNOTSHUING MEN E E Declaration to make the numbering of endnotes continuous throughout the docu ment Noe Fault iists tn er RP other edd p d
27. at it projects Webster s New World Dictionary Second College Edition memoir 1 Fr m moire masc a memorandum memoir fem memory L memoria MEMORY 1 a biography or biographical notice usually written by a relative or personal friend of the subject 2 pl an autobiography usually a full or highly personal account 3 pl a report or record of important events based on the writer s personal observation special knowledge etc 4 a report or record of a scholarly investigation scientific study etc 5 pl the record of the proceedings of a learned society Webster s New World Dictionary Second College Edition Short contents Short content T Content List of Figure List of Table es a 3 O o z O jen oq O 3 O lt A Un un un N I un ntroduction to Edition ntroduction to Edition A 1 Corrections and omission 2 Page layout Document division 4 Front and rear 5 Boxes and environments Captions 7 Miscellaneou Command summar Bibliography Index un vii viii xi xiii 15 31 35 39 47 57 59 Contents Short contents vii Contents viii List of Tables xi xiii Introduction to Edition 2 XV Acknowledgements xvii 1 Corrections and omissions LI Pagination 9o 3a aus a Gok AS EM a a x a 13 Partheadings 14 Appendices 1 5 Writing out verbatim 1 6 Subcaptions 1 7 New list entries NNNRPRPRP RP ji
28. bookaftersnun ida vereende ied Macro called after a book number in the ToC in the number box cftbookaftersnumb eee eene Macro called after a book number s box in the ToC o zeten ee eene etend Separation between the dots on a book leader in the ToC Neitbookf ont zu ee Cent bl pe p raa n a Font for typesetting a book number and title in the ToC Nettbookindent ii ED E Indent of a ToC book entry from the left margin cttbookleader z cie be e ia Typesets the leader between a book title and page number in the ToC cftbookname In the ToC called before the number of a book Ncftbookn mwidthn 212 ke aete a daa ie Space allowed for a book entry s number in the ToC NAcftbookpagefont nanne dt id aseta ajal e dee de cec e bred rede Font for typesetting a book s page number in the ToC Ncftbookpresnum ve bee Bertel ve equa ii vaa ede cet A heeds Macro called before a book number in the ToC in the number box 48 Ncftchaptername dia In the ToC called before the number of a chapter cftfigurename In the LoF called before the number of a figure Ncftparagraplmname serranas emet veloute edad E heben senen raasde see In the ToC called before the number of a paragraph cftpartname In the ToC called before the number of a part Acfts ctilonname ii beret e eo der PA eR UY VR RE QVE dE ta In the ToC called before the number of a section cftsubp
29. bsequent line numbers to the left of the lines 5 5 Lists Normally within a list environment paragraphs are indented by listparindent By default this is set to Opt which can be overridden in the second argument to the list environment i e layout begin list H label layout N tem end list listparindent everylistparindent The class though initialises listparindent to everylistparindent which in turn is initialized to Opt defaultlists The command defaultlists sets the layout paramters for the list environment to their default values tightlists tightlists firmlists firmlists Following the tightlists declaration the layout of list environments such as itemize enumerate or description is tightened up by removing any internal ver tical spacing within the list If there is a blank line before the list then a vertical space of half onelineskip is put before and after the list This space is not added when the tightlist declaration is given In a tight list the paragraph indenta tion is set to the value of the regular parindent paragraph indentation by setting everylistparindent to parindent otherwise they would be block paragraphs with no interparagraph spaces The firmlists declaration sets the vertical spacing in lists midway between their default values and those for tightlists The starred version firmlists reduces the space before and after a l
30. ddtolength mylength sidecapsep addtolength mylength sidecapwidth 37 6 CAPTIONS begin table sidecapmargin left renewcommand sidecapfloatwidth mylength raggedleft begin sidecaption Permitted arguments for some sidecaption related commands scap one Ncentering begin tabular cc toprule cs sidecapmargin amp cs overridescapmargin midrule texttt left amp texttt left texttt right amp texttt right texttt inner amp NN texttt outer amp NN bottomrule end tabular end sidecaption end table The calculations on the mylength length are so that the sidecaption and float will just fit inside the textblock Note that the raggedleft command before the sidecaption environment makes the float s minipage be placed raggedleft i e moved across to the right hand edge of the textblock while the centering centers the tabular within the minipage You can get a variety of horizontal placements by judicious use of raggedright centering and raggedleft commands If you do move the float sideways to leave space for the caption make sure that the caption will go to the side you want In the example code I moved the float to the right so I made sure that the caption would go on the left by explicitly setting sidecapmargin left As far as TeX is concerned a sidecaption takes no horizontal space If you use a side caption in a wrapped float from say the wrapfig package
31. drawn A hrule takes 0 4pt of vertical space and the kern of 0 4pt backs up by 0 4pt vertically so as far as TEX is concerned no space has been used You may change the macro to something that better matches your needs if necessary 31 5 BOXES AND ENVIRONMENTS 5 4 Verse There are a couple of small additions to the code for verse vleftofline text A verse line may start with something for example open quote marks where itis desirable that it be ignored as far as the alignment of the remainder of the line is concerned a sort of hanging left punctuation When it is put at the start of a line in the verse environ ment the text of vleftof line is typeset but ignored as far as horizontal indentation is concerned Compare the two settings below noindent No this is what was spoken by the prophet Joel begin verse EX A In the last days God says NN I will pour out my Spirit on all people NN Your sons and daughters will prophesy NN ldots NN And everyone who calls Mdots end verse No this is what was spoken by the prophet Joel In the last days God says T will pour out my Spirit on all people Your sons and daughters will prophesy And everyone who calls noindent No this is what was spoken by the prophet Joel begin verse vleftofline In the last days God says NN vleftofline I will pour out my S
32. e pramble when you will be using xindy to process the raw index there is no need to use memhyperindexfalse as well as this 4 4 Glossaries Unlike for indexes LaTeX provides less than minimal support for glossaries It provides a Nnakeglossary command for initiating a glossary and a glossary command which puts its argument plus the page number into a glo file and that s it memoir combined with the Makelndex program CH88 enables you to generate and print a glossary in your document The commands for creating a glossary are similar to those for indexes makeglossary L file You have to put makeglossary in your preamble if you want a glossary This opens a file called by default jobname glo If you use the optional file argument the file file glo will be opened A glossary glo file is analagous to an index idx file XprintglossaryL file To print a glossary call Nprintglossary which will print the glossary from file Xjobname gls or from file gls if the optional argument is used A glossary gls file is analagous to an index ind file glossary L file 1 C key term H desc Use the glossary command to add a term and its description desc to a glossary file By default this will be jobname glo but if the optional file argument is given then the information will be written to file glo The key argument is optional If present then key will be added to the file to ac
33. e upper space to the lower space begin writeverbatim stream oen enen enen meme Environment whose contents will be written verbatim to the stream output stream xIndyindex ci iia Declaration to be put in the preamble when the xindy program will be used to process the raw index 56 Bibliography CB99 Warren Chappell and Robert Bringhurst A Short History of the Printed Word Hartley amp Marks 1999 ISBN 0 88179 154 7 CH88 Pehong Chen and Michael A Harrison Index Preparation and processing September 1988 Available from CTAN in indexing makeindex paper Dow00 Michael J Downes The patchemd package July 2000 Available from CTAN in macros latex contrib patchcmd CMS93 John Grossman Managing Editor The Chicago Manual of Style Fourteenth Edition University of Chicago Press 1993 MG 04 Frank Mittelbach Michael Goossens et al The LaTeX companion Second Edition Addison Wesley 2004 ISBN 0 201 36299 6 57 Index The first page number is usually but not always the primary reference to the indexed topic wrglom m dblfpbot dblfptop fpbot 39 f pt op 39 abstract package 42 Naddtonotes 0 afterbook pagestyle 8 vafterbookskip 8 afterpart pagestyle 9 Nafterpartskip NafterPoemTitle 13 afterPoemTitlenum afterPoemTitleskip length 13 appendix package appendixname AtBeginClass AtBeginDocument 43 MAt
34. eX commands for vertical and horizon tal spacing to lay it out or perhaps use a picture environment Vincent Zoonekynd has a collection of a range of example title pages These and the code used to produce them are available at http zoonek free fr LaTeX LaTeX_ samples title O html 42 TheToC There have been requests for a ToC layout along the following lines PART I Title of part Chapter 1 Title of chapter 1 1 A section Appendix A Title of appendix A 1 Another section Danie Els suggested that this could be accomplished with a few new commands Ncftpartname Ncftchaptername Ncftappendixname These commands form part of the code for Apart and chapter entries in the ToC coming before the relevant number Their default definitions are empty To get the above ToC you can do the following 1Plus the recoding of some internal macros 15 4 FRONT AND REAR renewcommand cftpartname PART renewcommand cftchaptername chaptername renewcommand cftappendixname appendixname renewcommand cftchapteraftersnum dot after number setlength cftchapternumwidth 2em allow more space Lars Madsen further suggested that the scheme be extended to include names for fig ures and tables as several academic institutions like each figure or table entry in a LoF or LoT to be redundantly labeled as a figure or table cftsectionname cftsubsectionname cftsubsubsectionname cft
35. ee enn Vacuous macro called as the last thing by begin theglossary book toc title title Tr Typsets a numbered book title and adds the number and title to the ToC A tea ied dda le E AA wwe de Typsets an unnumbered book title and puts nothing in the ToC bookblankpage 14 4 554474 sei er BRE ienei deter OBERE RR PRG delden ede We e Declaration for a blank page to be output after a book title page This is the default booknm rktforhend Fica O E pb EYE TREE anne PETERE neces For setting any marks containing the text of a header for a Nbook bookname The name for a book division default Book Nbooknamenui c roe eC UP mada wee E an ERE WV KE bc RE 8 Macro called after printbookname and before printbooknum Defaults to a space booknamefont nt EOS Font used for printing a book name Defaults to a huge bold font booknunfont u Font used for printing a book number Defaults to a huge bold font book Page style applied to the book title page Defaults to empty NbooktitlefOnt ie vb e A we 8 Font used for printing a book title Defaults to a Huge bold font bvendofpage code sss em hee Controls the appearance of a page break in a boxed verbatim Ncftappendixname nr aten ee MO EVER PAR ee In the ToC called before the number of a chapter forming an appendix cftbeforebookskip Space before a book entry in the ToC etft
36. enotesubhead typesets the subheadings in an endnote list It is inserted into the ent file via addtonotes The chapapp argument is normally chaptername but if the notes are from an appendix then appendixname is used in stead num is the number of the chapter or blank if there is no number Lastly title is pnchap for regular chapters which defaults to the ToC entry or pnschap for starred chapters which defaults to the normal title The default definition of pagenotesubhead is very simply newcommand pagenotesubhead 3 7 section 1 2 3 The scheme is set up under the assumption that notes will only be printed at the end of the document If you intend to put them at the end of each chapter then you will probably want to change the definitions of the notedivision and pagenotesubhead macros For example renewcommand notedivision section notesname renewcommand pagenotesubhead 3 and remember to use printnotes at each place you want the current set of notes to be printed foottopagenote pagetofootnote You can have both footnotes and endnotes in the same document However you may start with all footnotes and later decide you would have preferred endnotes instead or vice versa The foottopagenote declaration makes footnotes behave as pagenotes and pagetofootnote has the opposite effect In either conversion the optional argument will be ignored as for pagenote it can be arbitrary text
37. ertically centered The optional num argument can be used to specify the ratio of the upper space to the lower space You can put other text on the page above or below the centered text The environment may be useful for title pages 41 7 MISCELLANEOUS 7 2 For package writers The facilities described in this section are for anyone to use but I suspect that they may be most useful to package developers EMULATING PACKAGES EmulatedPackaget package date XEmulatedPackageWithOptionst optionlist package date These commands are for package writers they are based on a conversation with Donald Arseneau on CTT They fool IEX into thinking that the package has already been loaded so it won t try loading it again These are probably only useful if your package includes the actual code for package memoir does include code from several packages and uses a similar internal command to ensure that the packages are not loaded following some later usepackage command The names of the emulated packages are written to the log file At the time of writing the emulated packages are abstract appendix array booktabs ccaption chngcntr crop dcolumn delarray enumerate epigraph framed ifmtarg ifpdf index makeidx moreverb needspace newfile nextpage pagenote patchcmd shortvrb showidx tabularx titleref tocbibind tocloft verbatim and verse As well as the emulated packages memoir pro vides func
38. f the User Manual Edition 2 of the Addendum applies to Edition 6 of the User Manual and covers memoir v1 618 extensions Further impressions may be released if there are later extensions The more major changes or extensions noted in this edition include New part like pages Improved control over higher level ToC entries New macros for typesetting the titles of poems New macros for making and typsetting glossaries Minor extensions for sidebars boxed verbatims and verses The Nem command is no longer deprecated and minor extension to Nemph Side captions New book document division Minor extension to numbering verse lines The following extensions are more for package writers than general authors e New macros for specifying emulated packages e New macro for extending an existing macro e Hooks into sectioning captioning etc commands XV Acknowledgements The Acknowledgements list in the User Manual is somewhat out of date I am very grate ful to the following who have improved memoir by noting or fixing errors or provid ing ideas suggestions or code Paul Abrahams William Adams Tim Arnold Donald Arseneau Stephan von Bechtolsheim Jens Berger Karl Berry Javier Bezos Sven Bovin Ignasi Furi Caldenty Ezequiel Mart n Camara David Carlisle Gustavo Cevolani Jean C me Charpentier Michael A Cleverly Steven Douglas Cochran Frederic Connes Zarko E Cutej Michael W Daniels Michael Downes Christopher Dutchy
39. f the note The page number is often used as well with this method The text argument of pagenote is the contents of the note and if the optional id argu ment is not used the result is similar to having used footnote a number in the main text and the corresponding number in the endnotes listing as in IJabove For the second reference style 2labove use the optional id argument for the few words and no mark will be put into the main text but id will be used as the identification in the listing For one set of endnotes covering the whole document put printpagenotes where you want them printed typically before any bibliography or index The printpagenotes macro inputs the ent endnote file for printing and then closes it to any further notes For notes at the end of each chapter put printpagenotes which inputs the ent file for printing then empties it ready for more notes at the end of each chapter The simple use is like this documentclass memoir makepagenote begin document chapter One pagenote An end note pagenote Fascinating information chapter Last chapter 9 pagenote Another note 30th note printpagenotes end document This will result in an endnote listing looking like Figure 4 1 For notes at the end of each chapter documentclass memoir makepagenote begin document chapter One pagenote An end note printpagenotes chapter Last
40. ferent sort key for term glossarycolsep Columns separation in a two column glossary glossaryintoc Declaration to add glossary title to the ToC e glossarymark Redefine to specify marks for headers oooccooocccooocccorccoronos glossaryname Name for a glossary nun nee Ngloss ryrule u se ea ee Width of inter column rule in a two column glossary glossitemt term desc Hlref F num neee eeen Glossary entry used in a theglossary environment idtextinnotes id Prints an endnote s id text cece cece eee eee eens Nifanappendix inci da aaa iaa TRUE when processing an appendix otherwise FALSE difsidecaplelt aiii see ae ac true if sidecaptions will be set in the left margin otherwise they will be set in the right margin leadpagetoclevel sec 0 0 cece ccc ccc cece mme eme eene 9 The ToC style for an entry from a newleadpage generated command Nbegin listii label layout eese List environment with entries introduced by Nitem label is the default label for item and layout specifies changes to the default layout listparindent Paragraph indentation in a list environment makeglossary E ME uota laa eret Vr A Opens file Xjobname glo or file glo for glossary entries N akepagenotes errar evenaren ii bdo eds Preamble command for enabling page end notes 50 memappchapinf ol thechapter fortoc F4 forhead KA title E cc
41. hapter or appendix chapapp num called title Mpagetofootnote oed id ron dn deem ine eeu ein Declaration which turns Npagenotes into footnotes partblankpage cesta a ehren tene TER Pl Declaration for following a part page with a blank one Apartnarkti orhead F su ee ee re a o For setting any marks containing the text of a header for a Apart patchcommand macro Histart code KX end code T eeen Inserts start code before the current definition of the macro and end code at the end of the current definition PlainPoemTitle oo oie ccc cece ese eene Declaration for PoemTitle to be unnumbered NDING Hap MH Chapter title for pagenotesubhead Defaults to the ToC entry NON SCHED CC Starred chapter title for pagenotesubhead Defaults to the regular title PoemTitleL fortoc forhead 1 title eeen Typesets the title for a poem and puts it into the ToC PoemTitleL fortoc forhead 1 title eee Typesets an unnumbered title for a poem but does not add it to the ToC PoemTitlefont Font for the text of a poem title cesses PoemTitleheadstart 2 e er en Called at the start of typesetting a NPoemTitle poemtitlemark forhead oenen meh Used to set marks for a PoemTitle PoemTitlenumfont Font for the number of a poem title ennn poemtitlepstyle Page style for a PoemTitle verssorrssersn eers poemtitlestarmark forhead onee mee
42. he Table of Contents page This is wrong All pages take part in the pagination including the Half title and Title pages It is the folios i e the printed page numbers that usually start on the Table of Contents page 1 2 Folding paper In section 2 1 of the manual I say that you cannot fold a piece of paper more than six times This is incorrect A high school stuent Britney Gallivan has managed to fold a sheet of paper in half twelve times see for example http mathworld wolfram com Folding html 13 Partheadings The manual claims that midpartskip is a length it is not it is a macro and cannot be altered by a setlength beforepartskip midpartskip afterpartskip The definitions of these three macros which control the vertical spaces in a part heading are newcommand beforepartskip null vfil newcommand midpartskip par vskip 20pt newcommand afterpartskip vfil newpage 1 4 Appendices ifanappendix When memoir is processing an appendix ifanappendix is set TRUE otherwise it is FALSE 1 CORRECTIONS AND OMISSIONS 15 Writing out verbatim The class provides two methods for writing out verbatim material to a file Unfortunately only one was described in the manual Here are the two methods Nbegin verbatimoutput M file material end verbatimoutput begin writeverbatim stream material end writeverbatim The material in these environments is
43. head title memsecstarinfo name title Hooks for appendix like page headings memapppageinf o title Mnemapppagestarinfod title memleadpageinf of pstyle cmdname title memleadpagestarinfo pstyle cmdname H title Hooks for poemtitle PoemTitle and their starred versions Mnempoeminfodt title mempoemstarinf of title memPoemTitleinf of thepoem fortoc F4 forhead title memPoemTitlestarinfo fortoc H title Hooks for the several kinds of caption and legend commands 45 7 MISCELLANEOUS 46 memcaptioninf of type thetype FX fortoc FX title memlegendinf o title memnamedlegendinfo fortoc title membitwonumcaptioninf of type thetype H fortoc1 MX title1 name2 fortoc2 KA title2 membionenumcaptioninf of type thetype M C fortoc1 FX title name2 fortoc2 1 title2 Y membicaptioninfot type thetype fortoc1 title1 FX name2 title2 Command summary addtonotes text Inserts text into the endnotes ent file afterbook d EE 8 Page style applied to the blank page if any following a book title page Defaults to empty afterbookskip Macro called after setting a book title svv 8 afterpatf werde A dta etste ASA enn eene nd 9 Page style applied to the blank page if any following a part
44. hngentr package 42 class xiii article memoir Comnes Frederic continuousnotenums counter pagenote crop package dcolumn package 42 addtonotes 30 Ndefaultlists 33 84 60 description environment 83 ti document environment Downes Michael 42 Dye Thomas 10 Els Danie 9 Ven kv eminnershape Vemph xv xv 39 empty pagestyle BIL EmulatedPackage anlstedPacka cen THE ions 42 Vendnote 26 endnotes package 26 ent file P6130 enumerate environment enumerate package 42 environment description B3 document 3 enumerate figure itemize list 3 nn minipage 37 38 picture 15 sidecaption EET sidecontcaption 36 sidelegend 36 sidenamedlegend 56 sloppypar 5 table tabular thebibliography theglossary 20 theindex verbat imout put 2 verse 32 B3 vplace 41 writeverbatim epigraph package everylistparindent length 33 fancyhdr package memapppageinfo fancyhdr package 42 figure environment 39 file ent 26180 log Md firmlists firmlists flushbotton footnote 26 271130 footnoterule foottopagenote Ford Matthew framed package frontmatter fussy 5 futurelet 42 geometry package glossary 19 20 glossarycolsep length 25 glossaryentry 23 glossaryintoc 24 glossarymark glossaryname oe len la glossitem 2
45. ist a little below that for the unstarred declaration 33 5 BOXES AND ENVIRONMENTS The regular list layout can be set at any time by issuing the defaultlists declara tion This documentis set using tightlists If you are going to use any of the non default list settings then I suggest that this one is perhaps the most useful 34 Captions 6 1 Side captions The class now provides for placing captions at the side of figures or tables or other floats begin sidecaption fortoc title L label the body of the float end sidecaption The sidecaption environment is used for a sidecaption rather than a macro The body of the float is put inside the environment For example begin figure begin sidecaption An illustration fig il1 centering includegraphics end sidecaption end figure whereby the caption Figure N An illustration will be placed in the margin alongside the graphic and for reference purposes will be given given the label fig ill sidecapwidth sidecapsep sidecapmargint margin ifscapmargleft scapmarglefttrue scapmargleftfalse The caption is set in a box sidecapwidth wide the default is marginparwidth offset sidecapsep default marginparsep into the margin If the float is a single column float in a twocolumn document then the caption is al ways placed in the adjacent margin otherwise the sidecapmargin command controls the
46. ith the sidecontcaption environment begin sidenamedlegend L fortoc X title the body of the float end sidenamedlegend Named legends may be set at the side with the sidenamedlegend environment begin sidelegend title the body of the float end sidelegend Legends may be set at the side with the sidelegend environment TWEAKS sidecapstyle Just before the caption is set the sidecapstyle command is called This may be used to set the styling for the particular caption By default it sets captions that are in the left margin raggedleft and those that are in the right margin are set raggedright The default definition is newcommand sidecapstyle hhh captionnamefont bfseries ifscapmargleft captionstyle raggedleft else captionstyle raggedright Mil 36 Side captions sidecapmargin overridescapmargin Table 6 1 Permitted arguments for some left left sidecaption related right right commands inner outer You can change the command to suit your purposes for example uncommenting the captionnamefont line would result in the caption s float name being set in a bold font See the manual for more information on what you can do to change the appearance of a caption overridescapmargin margin sidecapraise Sometimes the caption may not be placed exactly where you want it it may be in the wrong margin or at the wrong heigh
47. itlemark 12 moreverb XPoemTitlenumfont natbib xiii Xpoemtitlepstyle needspace 42 Xpoemtitlestarmark newfile 42 Xpoemtitlestarpstyle nextpage Xpostnoteinnotes pagenote 26 Xpreglossaryhook 24 patchcmd prenoteinnotes shortvrb printbookname 8 showidx 42 Xprintbooknun 8 sidecap Mprintbooktitle 8 subfigure printglossary tabularx printnotes titleref printnotes titlesec printpageinnotes tocbibind printpagenotes 26 27 tocloft 42 printpagenotes 26 verbatim XprintPoemTitlenonun verse printPoemTitlenum wra eb printPoemTitletitle pageinnotes program Npagenote 6 Makelndex pagenote counter xindy pagenote package Xprotect pagenotesubhead pagestyle raggedbotton afterbook 8 raggedleft afterpart 9 raggedright book 8 renewcommand empty BIP renewleadpage 9 pagetofootnote renewleadpage parindent length Yreparticle 10 part 7H9 reparticle chapterstyle 10 part RequireAtEndClass 431144 partblankpage 9 RequireAtEndPackage partmark 9 patchcmd package 42 Ascapmargleftfalse Xpat chcommand 42 scapmarglefttrue picture environment section 10 45 NPlainPoemTitle 12 sectionbib option xiii pnchap Nsetlength 37 Xpnschap setsidecappos PoemTitle shortvrb package poemtitle showidx package 63 showtrims option Zoonekynd Vincent showtrims option tocloft package 42 showtrim
48. itlestarpstyle The PoemTitle command produces an unnumbered title that is not added to the ToC Apart from that it operates in the same manner as the unstarred version The poemtitlestarmark and poemtitlestarpstyle can be redefined to set marks and pagestyles MAIN POEM TITLE LAYOUT PARAMETERS PoemTitleheadstart printPoemTitlenonum printPoemTitlenum afterPoemTitlenum printPoemTitletitle title afterPoemTitle The essential of the code used to typeset a numbered title from a PoemTitle is PoemTitleheadstart printPoemTitlenum afterPoemTitlenum printPoemTitletitle title afterPoemTitle If the title is unnumbered then printPoemTitlenonum is used instead of the printPoemTitlenum and afterPoemTitlenum pair of macros The various elements of this can be modified to change the layout By default the number is centered above the title which is also typeset centered and all in a large font The elements are detailed in the next section DETAILED POEM TITLE LAYOUT PARAMETERS beforePoemTitleskip XPoemTitlenumfont midPoemTitleskip PoemTitlefont afterPoemTitleskip As defined PoemTitleheadstart inserts vertical space before a poem title The default definition is def PoemTitleheadstart vspace beforePoemTitleskip newlength beforePoemTitleskip setlength beforePoemTitleskip 1 onelineskip printPoemTitlenum typesets the number for a poem title The default definition be
49. l Kew l s ct e pa ud e Typesets a reference to the subcaption labelled with key using the normal font textheight The height of the textblock a seen a ae begin theglossary Environment for typesetting a glossary thepoem Typeset the current Poem Title number oons oven versen tightlists its er Declaration for removing vertical spacing from list based environments Half a onelineskip may be added before and after tightlistsk ENEN Declaration for removing vertical spacing from list based environments There is no additional space before or after EOpPSKI pi EEUU The height of the first line of text on a page This is usually less than the baselineskip begin verbatimoutput file cece eee een Environment whose contents will be written verbatim to the file file COMMAND SUMMARY verselinenumbersleft cc ccc cee cence ee hse raa nn a ee aea Declaration to have any verse line numbers set to the left of the lines verselinenumbersright nennen enen enen eneen eneen evene eeen Declaration to have any verse line numbers set in the righthand margin This is the default wleftmargin Minimum left margin for VE irc rh er reo en adat vleftofline text Puts text at the left of a line of verse begin vplace num s cece ccc cee een eenen venen rr The contents of this environment are centered vertically The optional num argument can be used to specify the ratio of th
50. lable at http www imf au dk system latex artikler MemoirChapStyles REPARTICLE When the article option is used the default chapter and section styles are close to but not identical the corresponding division headings in the article class The reparticle chapterstyle makes a chapter replicate the appearance of a section in the article class Xreparticle The reparticle command makes chapter and lower level division heads replicate those of the article class You can use it for example like ifartopt reparticle fi to call it if the article option has been requested SOUTHALL On 2006 01 08 Thomas Dye posted his southall chapterstyle on and kindly gave me permission to include it here It is based on the headings in a Cambridge Press book by Aidan Southall It produces a simple numbered heading with the title set as a block paragraph and with a horizontal rule underneath His original code called for lining figures for the number but I have commented out that bit Thomas Dye s southall chapter style newlength headindent newlength rightblock makechapterstyle southall setlength headindent 36pt setlength rightblock textwidth addtolength rightblock headindent setlength beforechapskip 2 baselineskip setlength afterchapskip 5 baselineskip setlength midchapskip Opt renewcommand chaptitlefont huge rmfamily raggedright renewcommand chapnumfont chaptitlefont renewcom
51. le renewleadpage page style cmdname title en p Redefines the cmdname see newleadpage renewleadpage page style cmdname title eese 9 Redefines the cmdname see newleadpage reparticie u ea ne ee Makes chapter and lower level headings replicate the equivalent article class head ings reparticle Chapter style replicating a section in an article enen RequireAtEndClasst class code esee Inserts code just after the class class is used or immediately if class has already been used RequireAtEndPackaget pack code esee Inserts code just after the pack package is used or immediately if pack has already been used Aaetaideappost pos M el Declaration of the vertical position of a sidecaption with respect to the float NShowtEimSO f 1 eh ida If the showtrims option has been used this declaration switches the trim marks off NSHOWLLIMSOLF Miri E pte deter t dues If the showtrims option has been used this declaration switches the trim marks on It El is the default sidebarmargin margin Set the margin s for sidebars sidecapfloatwidth length eneen eenen en Macro holding the width of a float with a sidecaption 54 sidecapmargin margin Sets the the margin forsidecaptions NSIdecapralse 5 0 be M Res Rer cw ed ee re re Vertical distance added to the default
52. low prints the number centered and in a large font def printPoemTitlenum PoemTitlenumfont thepoem newcommand PoemTitlenumfont normalfont large centering 13 3 DOCUMENT DIVISIONS The definition of printPoemTitlenonum which is used when there is no number is simply def printPoemTitlenonum afterPoemTitlenum is called between setting the number and the title It ends a paragraph thus making sure any previous centering is used and then may add some vertical space The default definition is def afterPoemTitlenum par nobreak vskip midPoemTitleskip newlength midPoemTitleskip setlength midPoemTitleskip Opt The default definition of printPoemTitletitle is below It typesets the title cen tered and in a large font def printPoemTitletitle 1 PoemTitlefont 1 newcommand PoemTitlefont normalfont large centering The macro afterPoemTitle finishes off the title typesetting The default definition is def afterPoemTitle par nobreak vskip afterPoemTitleskip newlength afterPoemTitleskip setlength afterPoemTitleskip 1 onelineskip 14 Four Front and rear 4 1 Title page In the manual I recommended that you did not use naketitle and the associated titling commands for title pages maketitle and friends do a reasonable job for titles of ar ticles or a quick report but are too inflexible for more prestigeous work In other words design your own title page and use the general LaT
53. lse glossarycolsep glossaryrule The glossary can be typeset in two columns onecolglossaryfalse but by default onecolglossarytrue it is set in one column When two columns are used the length glossarycolsep is the distance between the columns and the length glossaryrule is the width default 0 of a vertical rule between the columns begintheglossaryhook atendtheglossaryhook The last thing that begin theglossary does is call begintheglossaryhook Similarly the first thing that is done at the end of the environment is to call atendtheglossaryhook By default these macros do nothing but you can redefine them For example if you wanted the glossary in the form of a description list the following will do that renewcommand begintheglossaryhook begin description renewcommand atendtheglossaryhook end description renewcommand glossitem 4 item 1 2 3 4 THE GLOSSARY FOR THIS DOCUMENT The following is the code I have used to produce the glossary in this document This is the code that is in the preamble 4444 in the preamble makeglossary changeglossactual changeglossnum thepage changeglossnumformat hyperpage for hyperlinks renewcommand glossaryname Command summary renewcommand glossarymark markboth glossaryname makeatletter renewcommand glossitem 4 sbox tempboxa 1 space 2 3 4 par hangindent 2em ifdim wd tempboxa lt 0 8 linewidth
54. mand printchaptername renewcommand chapternamenum renewcommand afterchapternum renewcommand printchapternum beginfminipage t baselineskip b headindent 1Which I haven t seen 10 Chapter styles vspace 0Opt chapnumfont figureversion lining thechapter end minipage renewcommand printchaptertitle 1 hfill beginfminipage t rightblock vspace Opt chaptitlefont 1 par end minipage renewcommand afterchaptertitle par vspace baselineskip hrulefill par nobreak noindent vskip afterchapskip CHAPPELL Another style that includes rules is one I have called chappell which is based on the chap ter heads in CB99 The style can easily form the basis for general heads in non technical books makechapterstyle chappell setlength beforechapskip 0pt renewcommand chapnamefont large centering renewcommand chapnumfont large renewcommand printchapternonum vphantom printchaptername vphantom chapnumfont 1 afterchapternum vskip onelineskip renewcommand chaptitlefont Large itshape renewcommand printchaptertitle 1 hrule vskip onelineskip centering chaptitlefont 1 This style centers the chapter number draws a rule across the page under it and below that comes the title again centered All the fiddling in the printchapternonum macro is to try and ensure that the rule above the title is at the same height whether or not the
55. mlegendinfo 46 46 air ass itl 146 memoir class xiii iii xv xvi xvii Mnempartinfo 45 mempartstar IN mempoeminf o 45 mempoemstarinfo memPoemTitleinfo memPoemTitlestarinf 0 45 memsecinf o 45 memsecstarinfo 45 ui midpartskip midPoemTitleskip length 13 midsloppy 5 midsloppypar environment minipage environment 37 moreverb package 42 natbib package needspace package newcommand newfile package newleadpage 9 newleadpage 9 newlistentry newsubfloat nextpage package 42 62 nobookblankpage 8 noglossaryintoc nopartblankpage 9 notedivision 28 noteentry 29 noteidinnotes noteinnotes notenuminnotes notenumintext notepageref notesname NumberPoemTitle 12 PoemTitle 13 poemtitle 12 Nonecolglossaryfalse onecolglossarytrue 25 onelineskip length oneside option 4 option article xiii oneside 4 sectionbib xiii showtrims Voverridescapmargin B7 twoside 4 package abstract 42 appendix 42 array 42 booktabs 42 calc 3 ccaption 42 chapterbib chngentr 42 crop 42 dcolumn 42 delarray endnotes 26 enumerate 42 epigraph 42 fancyhdr 42 Xpageinnotes showidx package faril PoemTitle index PoemTitlefont 13 makeidx PoemTitleheadstart memhfixc poemt
56. n Thomas Dye Vic tor Eijkhout Danie Els Robin Fairbairns Simon Fear Kai von Fintel Ulrike Fischer Matthew Ford Musa Furber Daniel Richard G Ignacio Fern ndez Galv n Romano Gi annetti Donald Goodman Gabriel Guernik Matthias Haldiman Kathryn Hargreaves Sven Hartrumpf hazydirk Carsten Heinz Florence Henry Peter Heslin Lars Hoemke Urs Hofer Morten Hegholm Hendrik Holm Vladimir Ivanovic Martin Jergensen Ste fan Kahrs Marcus Kohm Jergen Larsen Kevin Lin Matthew Lovell Daniel Luecking Lars Madsen Vittorio De Martino Frank Mittelbach Vilar Camara Neto Rolf Niepraschk Patrik Nyman Heiko Oberdiek Scott Pakin Adriano Pascoletti Paul Steve Peter Erik Quaeghebeur Aaron Rendahl Chris Rowley Bernd Raichle Ren Robert Schlicht Dirk Schlimm Arnaud Schmittbuhl Rainer Sch pf Paul Stanley James Szinger Jens Taprogge Reuben Thomas Bastiaan Niels Veelo Emanuele Vicentini J rg Vogt J rgen Vollmer and David Wilson If I have inadvertently left anyone out please let me know and I will make the correction Along those lines if you have any questions please direct them to thelcomp text tex newsgroup instead of directly to me as you are more likely to get a satisfactory and timely response 1 am currently reachable via email at herries dot press at earthlink dot net xvii One Corrections and omissions 11 Pagination In section 1 2 of the manual I say that pagination usually starts with t
57. n subsubitem As above for a level 2 entry item_01 s n subitem Command inserted in front of a level 1 entry starting at level 0 item 12 s in subsubitem Command inserted in front of a level 2 entry starting at level 1 item x1 s n subitem Command inserted in front of a level 1 entry when the parent level has no page numbers item x2 s n subitem As above for a level 2 entry delim O s an Delimiter between level 0 entry and first page number delim_1 s en As above for level 1 entry delim_2 s M As above for level 2 entry delim n 5 N Delimiter between page numbers delim_r s NEN Designator for a page range encap_prefix s N Prefix in front of a page encapsulator encap_infix s NL Infix for a page encapsulator encap_suffix s Suffix for a page encapsulator page precedence s rnaRA Page number precedence for sorting r and R are lower and uppercase roman a and A are lower and uppercase alphabetic n is nu meric line max n TAN Maximum length of an output line indent_space s t t Indentation commands for wrapped lines indent_length n 16 Indentation length for wrapped lines s of type string n of type number n and Xt are newline and tab 22 Controlling the glossary The actual entry says that the input file will use instead of the default as the flag for separating a key from the start of the real entry The page_compositor indicates that any compound number
58. n the most appropriate textheight 2 2 Side margins In twoside printing the spine margin is normally the same on both recto and verso pages and unless the spine and foredge margins are the same the textblock is shifted side to side when printing the recto and verso pages Additionaly you an have different headers and footers for the recto and verso pages In oneside printing the textblock is not moved and the headers and footers are the same for both odd and even pages Some documents are designed to have say a very wide righthand margin in which to put illustrations this leads to needing the spine margin on verso pages to be much larger than the spine margin on recto pages This can be done with the oneside option However For comparison the optimum heights from equationP 1 for 10 11 and 12 lines are respectively 118pt 130pt and 142pt 4 Overfull lines different headers and footers are required for the recto and verso pages which can only be done with the twoside option The way to get the desired effects is like this twoside is the default documentclass memoir hhh Set up the recto page layout Ncheckandfixthelayout or perhaps checkandfixthelayout lines setlength evensidemargin oddsidemargin after checkandfix 23 Overfull lines TeX tries very hard to keep text lines justified while keeping the interword spacing as constant as possible but sometimes fails complaining about an overfull hbox
59. n to get the corrected sorted and formatted result printed by printglossary 4 6 Endnotes Endnotes are often used instead of footnotes so as not to interrupt the flow of the main text Although endnotes are normally put at the end of the document they may instead be put at the end of each chapter The endnotes package already uses the command endnote for an endnote so the class uses pagenote for an endnote so as not to clash if you prefer to use the package The following was originally supplied as the pagenote package makepagenotes pagenote id 14 text printpagenotes printpagenotes The general principal is that notes are written out to a file which is then input at the place where the notes are to be printed The note file has an ent extension like the table of contents file has a toc extension You have to put printpagenotes in your preamble if you want endnotes This will open the ent note file which is called jobname ent In the body of the text use use pagenote to create an endnote just as you would use footnote to create a footnote In the books that I have checked there are two common methods of identifying an endnote 26 Endnotes 1 Like a footnote put a number in the text at the location of the note and use the same number to identify the note when it finally gets printed 2 Put no mark in the text but when it is finally printed use a few words from the text to identify the origin o
60. ne notedivision eee eee re Heading printed by the printnotes and printnotes macros noteentry notenum X id FX text pagenum ccc cee cece ences Typesets a pagenote with number notenum identifier id contents text created on page pagenum noteidinnotes notenum A id Y eneen tenn ees Prints an endnote s number or id in the endnote listing noteinnotes text Prints the text of an endnote nennen notenuminnotes num Prints an endnote s number nen Anotenuminnotesimum J id Veeder wend eevee ee PES d Rd a gen Typesets the number num of a page note in the note listing Anotenumintexti nunm l anna een ne ER Ed RE ind Typesets the number num of a page note in the main text 52 N otepageref u a io Declaration that page numbers are available to notes in the endnote listing notesname Name for endnotes default Notes neee enen eenen NumberPoemTitle icc cee cece e e e e e ree Declaration for NPoemTitle to be numbered onecolglossaryfalse Declaration for a two column glossary onecolglossarytrue Declaration for a single column glossary overridescapmargin margin 1 0 eneen eneen nen A one time override of sidecapmargin pageinnotest pagenum ecni ireren inp i ei hee e een Controls the printing of an endnote s page reference number pagenotesubhead chapapp FC num title Y eese Typesets a subheading for notes from c
61. ng hooks However I have provided macros that that may be useful for those who want to do things with the contents of section headings captions and the like The macros are called within the relevant heading or caption code and by default are defined to do nothing Hooks for the Nbook and Nbook commands membookinf of thebook fortoc FA title membookstarinfof title Hooks for the part and part commands mempartinf of thepart F4 fortoc FX title mempartstarinf of title In many cases a Nnem info macro includes an argument related to the heading s number thepart for mempartinfo In certain circumstances such as a chapter in the frontmatter there might not be a number even though the normal unstarred version of the command is used In these cases the number argument thechapter in the case of memchapinfo is left empty Hooks for the chapter and chapter commands Note that regular chapters and those as appendices are treated differently memchapinf of thechapter F4 fortoc F4 forhead title memchapstarinfo fortoc title memappchapinf o thechapter H fortoc H forhead title memappchapstarinf of fortoc title Hooks for Nsection subsection etc and their starred versions name is the type of section e g section or subsection or subsubsection or Xmemsecinfol name thename fortoc F4 for
62. notes CHANGING THE APPEARENCE notenumintext num notenuminnotes num The pagenote counter is used for pagenotes The macro notenumintext is called by pagenote with the value of the pagenote counter as the num argument to print the value of the pagenote counter in the main text By default it is printed as a superscript but this can be changed or even eliminated In the note listing notenuminnotes is used to print the number of a note The default definitions are newcommand notenumintext 1 textsuperscript 1 newcommand notenuminnotes 1 normalfont 1 noteentry notenum 1 id FX text pagenum Xprenoteinnotes Npostnoteinnotes The pagenote macro writes noteentry with the appropriate values for the arguments to the ent file where notenum is the note number from the pagenote counter id and text are as supplied to pagenote and if the notepageref declaration option is used pagenum is the page number otherwise it is empty The Nnoteentry macro controls the typesetting of the note The default definition of noteentry is newcommand notentry 4 prenoteinnotes noteidinnotes 1 2 pageinnotes 4 noteinnotes 3 postnoteinnotes and the definitions of other macros are newcommand prenoteinnotes par noindent newcommand postnoteinnotes par so that the first paragraph of each note is printed as a non indented paragraph If you would prefer
63. nts renewcommand contentsname Contents let changetocdepth oldchangetocdepth let cftchapterfillnum oldcftchapterfillnum renewcommand cftchapterfont normalfont sffamily renewcommand cftchapterleader sffamily cftdotfill cftchapterdotsep renewcommand cftchapterafterpnum makeatletter renewcommand cftchapterbreak par addpenalty highpenalty makeatother setpnumwidth 2 55em setrmarg 3 55em setcounter tocdepth 2 tableofcontents BOOK TOC ENTRY There are the usual kinds of commands for configuring the appearance of book entries in the ToC cftbookname 17 4 FRONT AND REAR This is called before the book number is set in the ToC The default definition is empty Ncftbeforebookskip Ncftbookindent Ncftbooknumwidth These lengths control the vertical space before a book entry the indentation of the entry from the left margin and the space for typesetting the number Ncftbookfont Ncftbookpagefont These specify the fonts to be used for typesetting the number and title of a book entry in the ToC and the page number cftbookpresnum cftbookaftersnum cftbookaftersnumb The book number is typeset in a box cftbookpresnum and cftbookaftersnum are called within the box before and after the number cftbookaftersnumb is called after the box has been typeset By default these commands do nothing cftbookleader cftbookdotsep cftbo
64. o the underlying macro apply only to the glossary of that particular file or the jobname file if the argument is not present changeglossactual file char changeglossref file thecounter changeglossnum file thecounter Nchangeglossnumformat file C format changeglossactual sets char as the actual character for the file glossary It is initially This must match with the actual specified for the gst file that will be applied changeglossref specifies that thecounter should be used to generate the ref for the file glossary It is initially nothing 23 4 FRONT AND REAR Nchangeglossnum specifies that thecounter should be used to generate the num for the file glossary It is initially thepage Nchangeglossnumformat specifies that format should be used to format the num for the file glossary The format of format is form where is the encap character specified in the gst file and form is a formatting command taking one argument the number without any backslash For example changeglossnumformat textbf to get bold numbers It is initially set as memjustarg where this is defined as newcommand memjustarg 1 1 There must be a format defined for the num otherwise the arguments to glossitem will not be set correctly The makeglossary command uses the change commands to define the initial versions so only use the Xchange macros afte
65. odifying the textheight according to algorithm but does not implement the layout Following a suggestion by Morten Hegholm if you use the calc package then you can now use constructs like the following in a page layout specification setlength textheight 41 baselineskip topskip settypeblocksize 41 baselineskip topskip 33pc When using flushbottom LaTeX expects that the textheight is such that an in tegral number of text lines in the body font will fit exactly into the height If not then it issues underfull vbox messages More precisely if the b is the baselineskip and t is the topskip N is an integer the number of lines in the textblock and T is the textheight then to avoid underfull vboxes the following relationship must hold T N 1 d t 2 1 By default checkthelayout ensures that the final textheight meets this criterion The optional algorithm argument lets you control just how it does this In the following H is your requested value for the textheight and the other symbols are as before with T as the adjusted value and using integer arithmetic The permissable values for algorithm are fixed The textheight is not altered T H 2 2 If you use this option you may find that underfull vboxes are reported for flushbottom pages In this context integer arithmetic means that the result of a division will be rounded down For example 99 10 in real arithmetic results in 9 9 wherea
66. okleader typesets the leader between a book title and the page number in the ToC By default this is a dotted leader with cftbookdotsep between the dots By default this is set for a book entry to produce no dots 4 3 The index The internal indexing code has been changed slightly to make things more efficient Now any changes to indexed items will be immediately reflected in the idx file Previously it took two LaTeX runs to achieve this The Makelndex indexing program can handle a memoir hyperindex but the xindy pro gram cannot as indicated by the following extract from an email sent to me by Frederic Connes You use hyperspindexpage thepage which xindy doesn t recognize as a valid markup locref And I don t see how to add it because xindy only accepts one argument in markup locref if the number is not a page number it will still point to a page with that number so replacing it with hyperpage won t work It would be nice to be able to deactivate the hyperspindexpage part as it causes xindy to crash I don t use xindy but I have provided something that addresses the problem Xmemhyperindexfalse 18 Glossaries Putting memhyperindexfalse into the preamble will prevent any hyperindexing no matter what you have instructed the hyperref package to do Since then Frederic Connes has provided some code for when xindy will be used Xxindyindex Put the xindyindex declaration in th
67. oo Code hook into an appendix Nchapter memappchapstarinfof fortoc title ecce Code hook into an appendix Nchapter memapppageinf o title Code hook into Nappendixpage memapppagestarinfo title enen eneen mee Code hook into appendixpage membicaptioninfo type thetype fortoc1 title1 name2 title2 Code hook into membicaption membionenumcaptioninfo type i thetype t fortocl title1 name2 Artie ME o AS VERRE RESET Code hook into membionenumcaption membitwonumcaptioninfo type i thetype t fortocl titlel name2 Tutto TH tati bas sepu P kamen AER EUER Code hook into membitwonumcaption membookinf of thebook fortoc FX title E eenen Code hook into Nbook membookstarinfo title Code hook into Nbook nennen eee eee Amemcaptioninfof type thetype FX fortoc title oo eee cece eee Code hook into caption memchapinf of thechapter fortoc forhead title cece ee eee Code hook into chapter memchapstarinfot fortoc title Code hook into chapter memglodesc desc Wrapper round a glossary description memglonum num Wrapper round glossary numbers rsses memgloref ref Wrapper round a glossary ref sven ensen eenn memgloterm term Wrapper round a glossary term nnen memgobblet tex
68. paragraphname cftsubparagraphname cftfigurename cfttablename They are created by the newlistentry macro and by default the cft name macros have no content However for example if they required you to put Fig before the number of each entry in the LoF then renewcommand cftfigurename Fig enspace could be a suitable response in your preamble If you happen to use the newsubfloat floatenv command for instance newsubfloat figure to enable subfigures then there will also be a cftsubfloatfigurename created for you to use if the powers that be really push you Another query has been how to get the titles in the ToC to be set raggedright instead of the usual flushright Assuming that there are more than 100 pages in the document setrmarg 3 55em plus 1fil where the last four characters before the closing brace are digit 1 lowercase F lowercase I and lowercase L You may have noticed that there are two ToCs for this document a short one and a long one This is how they were produced The code below was used to produce the short ToC Short contents and Different ToC style renewcommand contentsname Short contents let oldchangetocdepth changetocdepth let oldcftchapterfillnum cftchapterfillnum renewcommand changetocdepth 1 setcounter tocdepth 0 chapters renewcommand cftchapterfont hfill sffamily renewcommand cftchapterleader textperiodcentered space renewcommand cftchapter
69. pirit on all people NN Your sons and daughters will prophesy ldots And everyone who calls ldots end verse No this is what was spoken by the prophet Joel Inthe last days God says T will pour out my Spirit on all people Your sons and daughters will prophesy And everyone who calls vleftmargin In the basic LaTeX verse environment the body of the verse is indented from the left of the text block by an amount leftmargini as is the text in many other environments based 1The problem was presented to me by Matthew Ford who also provided the example text 32 Lists on the basic LaTeX list environment For memoir s verse environment only the default indent is set by the length vleftmargin which is initially set equal to leftmargini For poems with particularly long lines it could for example be advantageous to eliminate any indentation via setlength vleftmargin Oem If necessary the verse could even be moved into the left margin by giving vleftmargin a negative length value such as 0 3em Later for poems with shorter lines the indentation can be reset to the default by setlength vleftmargin leftmargini verselinenumbersright verselinenumbersleft Following the declaration verselinenumbersright which is the default any verse line numbers will be set in the righthand margin The verselinenumbersleft declaration will set any su
70. ple endnote listing o ooo oo o 28 List of Tables 2 1 3 1 4 1 4 2 6 1 Results from sample textheight adjustments Divisionlevels Makelndex configuration file input parameters Makelndex configuration file output parameters Permitted arguments for some sidecaption related commands xi 21 22 37 Introduction to Edition 1 At the request of users I keep extending the memoir class The User Manual has some 250 or so pages and it is a burden to the author to keep changing it and also for the readers to keep getting new copies especially when a change can be as small as a sentence or paragraph Hence I trust that this addendum will suffice until there is enough material to warrant a new edition of the manual This addendum applies to the fifth edition of the User Manual which describes version 1 2 of the memoir class The class is currently at version 1 3a with patch version 1 9 or later The main extensions and changes to the class and manual include There is more flexibility in typesetting the titles of unnumbered chapters Major extensions for typesetting footnotes Major extensions for indexing including one column and multiple indexes Major extensions to cropmarks Ability to use tableofcontents and friends multiple times Sheet numbers in addition to page numbers plus access to the numbers of the last sheet and la
71. popas hrule 31 led ZE que H gholm Morten 3 sidecapfloatwidth 7 idtextinnotes ifanappendix ifmtarg package ifpdf package ifscapmargleft 35 36 include 43 index package 42 input 43 InputIfFileExists itemize environment kern large 13 leadpagetoclevel 9 ue ie length B2 p3 Xlegend 4 length afterPoemTitleskip 13 baselineskip 4 bef e cftbeforebookskip cftbookindent Vd e De Veverylistparindent 3 glossarycolsep 25 glossaryrule 251 2 midPoemTitleskip onelineskip parindent textheight 3 topskip l vleftmargin 32 listparindent length 33 NLoadClass 43 log file Luecking Daniel 31 Madsen Lars mainmatter makeglossary makeidx package Makelndex program 1821 23 Pe makepagenotes 26 maketitle marginpar marginparsep In marginparwidth length memappchapinf 0 45 memappchapstarinfo 45 memapppageinfo 61 memapppagestarinfo package memapppagestarinf membicaptioninfo membionenumcaptioninfo membitwonumcaptioninfo membookinf o 45 membookstarinfo memcaptioninfo memchapinf o 45 memchapstarinfo 45 memglodesc memglonum memgloref memgloterm memgobble memhfixc package 44 memhyperindexf alse 18 19 memj ustarg 41 memleadpageinf o 45 memleadpagestarinfo me
72. r makeglossary In this document an early version of the glossary was set up by makeglossary changeglossactual makeatletter changeglossnum currentlabel makeatother changeglossnum thepage The first call of changeglossnum makes the number the current numbered chapter or numbered section or numbered I didn t like that when I tried it so the second call resets the number to the page number THE LISTING The final glossary data in the gls file is typeset in the theglossary emnvironment which is much like the theindex and thebibliography environments The environment starts off with a chapter style unnumbered title There are several macros for specifying what happens after that glossaryname glossarymark glossaryintoc noglossaryintoc The title for the glossary is glossaryname whose initial definition is newcommand glossaryname Glossary glossarymark which by default does nothing can be redefined to set marks for headers The glossary title will be added to the ToC if the glossaryintoc declaration is in force but will not be added to the ToC following the noglossaryintoc preglossaryhook The macro preglossaryhook is called after the glossary title has been typeset By de fault it does nothing but you could redefine it to for example add some explanatory material before the entries start 24 Controlling the glossary onecolglossarytrue Nonecolglossaryfa
73. s will be like 1 2 3 instead of the default 1 2 3 RAW INPUT DATA Qwrglom m file H key HL term FC desc H ref H num The glossary macro writes its arguments to the aux file in the form of arguments to the wrglom m internal macro In turn this calls a series of other macros that eventually write the data to the file glo file in the format where Q is the actual flag glossaryentry key memgloterm term memglodesc desc memgloref ref memglonumf num which Makelndex then effectively converts into glossitem memgloterm term memglodesc desc memgloref ref memglonum memglonumf num memglotermt term memglodesc desc memgloref ref memglonum num These macros can be redefined to format the various parts of a glossary entry Their default definitions are simply newcommand memgloterm 1 1 newcommand memglodesc 1 1 newcommand memgloref 1 1 newcommand memglonum 1 1 For example if you wanted the term in bold the description in italics and no numbers renewcommand memgloterm 1 textbf 1 renewcommand memglodesc 1 textit 1 renewcommand memglonum 1 There are several macros that effect a glossary entry but which must not be directly modified the memglonumf shown above as part of the glossaryentry is one of these Each of the following changegloss macros takes an optional file argument The changes t
74. s with integer arithmetic the result is 9 not 10 3 2 PAGE LAYOUT Table 2 1 Results from sample textheight adjustments Algorithm fixed classic lines nearest Requested height adjusted height in pts lines 10 0Nbaselineskip 120 0pt 10 130pt 11 118pt 10 118pt 10 10 2 Nbaselineskip 1224pt 10 130pt 11 118pt 10 118pt 10 10 4 baselineskip 124 8pt 10 130pt 11 118pt 10 130pt 11 10 6 baselineskip 127 2pt 10 130pt 11 118pt 10 130pt 11 10 8 baselineskip 129 6pt 10 130pt 11 118pt 10 130pt 11 11 0 baselineskip 1320pt 11 142pt 12 130pt 11 130pt 11 classic This is the default and is the one used by the standard classes T b H b t 2 3 The relationship is maintained lines This is similar to classic but results in a smaller final value T b H b b t 2 4 The relationship is maintained nearest The calculated value is the nearest to the given value while still maintaining the relationship 2 1 T b H t b 2 b 2 5 Table p the results from the various textheight adjustment calculations where the baselineskip is 12pt and the topskip is 10pt which are the normal values for a Computer Modern 10pt font In all cases the fixed algorithm resulted in underfull vboxes If you know the number of lines that you want say 42 then requesting setting equivalent to setlength textheight 42 baselineskip checkandfixthelayout lines will result i
75. say hanging paragraphs try renewcommand prenoteinnotes par noindent hangindent 2em noteidinnotes notenum H id idtextinnotes id notenuminnotes num The noteidinnotes calls idtextinnotes to print the note id if it is given otherwise it calls notenuminnotes to print the note number These are defined respectively as newcommand idtextinnotes 1 1 space newcommand notenuminnotes 1 normalfont 1 space Npageinnotesi pagenum printpageinnotes pagenum The macro pageinnotes controls the printing of a note s page reference If the notepageref declaration has been used it calls printpageinnotes to do the actual printing Its definition is 29 4 FRONT AND REAR newcommand printpageinnotes 1 pagerefname 1 space noteinnotes text The macro noteinnotes text is simply newcommand noteinnotes 1 1 and is used to print the text of a note addtonotest text The macro addtonotes inserts text into the ent file For example before the first note in a chapter addtonotes is used to write the pagenotesubhead command to the file Note As the argument to pagenote and addtonotes is moving you may have to protect any fragile commands If you get strange error messages try using protect and see if they go away pagenotesubhead chapapp num title pnchap pnschap The macro pag
76. soff topskip length showtrimson twoside option A sidebarmargin sidebaronesidefalse sidebaronesidetrue sidecap package 42 sidecapfloatwidth sidecapmargin 35 sidecapraise length sidecapsep tise a sidecapstyle 36 sidecaption environment B5 B6 88 sidecapwidth length Sidecontcaption environment sidelegend environment Sidenamedlegend environment Nsidepar D1 sideparvshift length 31 sloppy 5 sloppypar environment southall chapterstyle 10 space 8 strictpagechecktrue subcaptionlabelfont subcaptionref subcaptionref subfigure package subsection table environment tableofcontents tabular environment tabularx package 42 textheight length BI thebibliography environment thebook 8 theglossary environment Po 24 theindex environment Nthepoen 12 tightlist tightlists tightlists titleref package titlesec package toc file 26 tocbibind package 42 64 Nusepackage 42 43 verbatim package 42 verbatimoutput environment verse environment 22 3 verse package 42 verselinenumbersleft verselinenumbersright Yvfi11 89 vleftmargin length 82 B3 vleftofline 32 vplace environment wrapfig package 38 writeverbatim environment xindy program xindyindex Zoonekynd Vincent 15
77. st page Various methods for formatting numbers e Better cooperation with the chapterbib and natbib packages when they use their sec tionbib option Sectioning commands can take a second optional argument for header text Section titles as well as numbers may be referenced Extra need space macros New macros for slashed fractions fractions like 6 59 Extensions to framed boxes Odd page checking extended to apply to non arabic numbered pages Means of setting optimum textwidth More intuitive effects of mainmatter and backmatter when the article option is used Control of the spacing of items in the bibliography e A fixed version of Nnarginpar e Extensions for typesetting arrays and tabulars including continuous tabulars and automatic tabulation As usual minor glitches have been removed from the code xiii Introduction to Edition 2 January 2004 saw a major extension of the memoir class to version 1 6 all the then current patches were folded into the class itself Edition 6 of the User Manual was released which included the contents of the November 2003 Addendum Thus at that time there was no need for either a patch file or the Addendum Since then new patches have been made for memoir fixing problems but adding no new commands However in September 2005 a new version v1 618 of memoir was re leased which did include some new functions but not significant enough to warrant a new edition o
78. t The command overridescapmargin will force the following caption into the margin you specify which can only be left or right In a twosided document where sidecapmargin is inner or outer and the caption goes in the wrong margin it is likely that the declaration strictpagechecktrue will solve the problem The wrong margin might be chosen in a twocolumn document where the float is in the second column use overridescapmargin right to fix this The caption may not be at quite the height you want with respect to the float The cap tion will be raised by the length sidecapraise in addition to the calculated movement or lowered if sidecapraise is negative sidecapfloatwidth length The float is set in a minipage with width sidecapfloatwidth whose default defini tion is newcommand sidecapfloatwidth linewidth That is the normal width is the same as the current linewidth For a narrow table say you may want to reduce this for example to half by renewcommand sidecapfloatwidth 0 5 linewidth Note that sidecapfloatwidth is a macro not a length so it must be altered by using a renewcommand not by setlength If you do reduce the sidecapfloatwidth you may notice that the sidecaption is actualy placed a distance sidecapsep with respect to the float s minipage not with respect to the text block Table 6 1 was created by the following code newlength mylength setlength mylength linewidth a
79. t Gobbles its argument Do not redefine it Amemhyperindexfals6 20m han betten dend Preamble command to prevent hyperindexing memjustargt text Definition is just text Do not redefine it memleadpageinfot pstyle Hicmdname KA title een Code hook into newleadpage and renewleadpage memleadpageinf of pstyle cmdname title en Code hook into newleadpage and Nrenewleadpage memlegendinfo title Code hook into legend 0 cece eee eee ee eee memnamedlegendinfo fortoc title eee Code hook into namedlegend Amempartinfof thepart fortoc title Code hook into part mempartstarinfo title Code hook into part ss esses mempoeminf of title y Code hook into poemtitle ere mempoemstarinfo title Code hook into poemtitle memPoemTitleinf of thepoem fortoc forhead title eee Code hook into PoemTitle memPoemTitlestarinfo fortoc Fi title Y neee Code hook into NPoemTitle COMMAND SUMMARY memsecinfo name thename F X fortoc F C forhead FX title ce eee Code hook into the Nname section command memsecstarinfo name title cesses mee Code hook into the Nname section command MAD OOK ENT rts Macro called between setting a book number and the title MiidpaktSEip 2 uh
80. t and the page number Finally encap_suffix requests to be put after any encapsulated page number 20 Controlling the glossary Table 4 1 Makelndex configuration file input parameters Keyword Default Description keyword s indexentry The argument to this command is a Makeln dex index entry arg_open c 244 Argument start delimeter arg close c up Argument end delimeter range open c c Start of an explicit page range range close c DE End of an explicit page range level c 213 Character denoting a new subitem level actual c Character denoting that the following text is to appear in the actual index file encap c dE Character denoting that the rest of the argu ment is to be used as an encapsulating com mand for the page number quote c dud Character that escapes the following charac ter escape c INN Symbol with no special meaning unless fol page compositor s lowed by the quote character when both characters will be printed The quote and escape characters must be different Composite number separator s of type string c of type character A complete listing of the possible entries in a configuration file also called a style file for Makelndex is in Table 4 1 and 4 2 with the exception of the output file page number setting keywords The gst file I have used for this document has a few more items than the basic one memman gst makindex glossary style
81. t as a sort key for the term otherwise term will be used as the sort key By using the optional file arguments you can have several glossaries subject to TeX s limitations on the number of files that can be open at any one time A simple glossary entry might be glossary glossary A list of terms and their descriptions The glossary facilites are designed so that the Makelndex program can be used to con vert the raw glossary data in a glo file into the printable glossary in a gls file begin theglossary entry list end theglossary 19 4 FRONT AND REAR Glossary entries are typeset in a theglossary environment It is assumed that a gls file will contain a complete theglossary environment from begin theglossary all the way through to end theglossary glossitem term desc FX ref num Y A glossitem is a glossary entry within a theglossary environment for a term with description The num argument is the page or section where the corresponding glossary was issued The ref argument if not empty might be the section or page number corresponding to the num page or section number The default definition is newcommand glossitem 4 1 2 3 4 which is not very exciting You may well prefer to use your own definition 45 Controlling the glossary SETTING UP MAKEINDEX If you just run Makelndex on a glo file you will get lots of errors Makelndex has to be configured
82. tions equivalent to those in the following packages although the class does not prevent you from using them fancyhdr geometry sidecap subfigure and titlesec DisemulatePackage package This command undoes any prior EmulatedPackage or EmulatedPackageWithOptions for the package package For example if you wish to use the index package instead of memoir s emulation then put DisemulatePackage index usepackage index in your preamble EXTENDING A MACRO patchcommand macro start code end code The patchcommand is from the late Michael Downes patchcmd package Dow00 It inserts the start code at the start of the current definition of the macro macro and inserts end code at the end of its current definition The macro can have zero to nine parameters If macro uses NEuturelet e g it is a starred command or takes an optional argument only start code is useful end code must be empty otherwise things get messed up If macro has any delimited arguments then patchcommand connot be used 42 For package writers INSERTING CODE BEFORE AND AFTER A FILE PACKAGE OR CLASS The kernel provides two commands AtBeginDocument and AtEndDocument which can only be used in the preamble for inserting code at the start and end of the document environment The kernel also provides the macros AtEndOfPackage code and AtEndOfClass code for inserting code at the end of
83. title page Defaults to empty afterpartskip Vertical space after a part heading ee ee afterPoemTitle rennen Called after printing the title of a PoemTitle afterPoemTitlenum sese ee ee e eee rere Called after printing the number of a PoemTitle afterPoemTitleskip Vertical space after a poem title eeen AtBeginClass pack code 0 eneen eneen eeen Inserts code just before the class class is used AtBeginFile file code neee n Inserts code just before the file is input or included etc AtBeginPackage pack code oenen eeen eenen Inserts code just before the pack package is used VAtEndGlass class FL code cia were ee ereen per edu tna beed Inserts code just after the class class is used AtEndFile file code eenen eenen rr Inserts code just after the file is input or included etc AtEndPackage pack code esses Inserts code just after the pack package is used atendtheglossaryhook cece cece cece eee eee nnn nent eee hme eee Vacuous macro called as the first thing by end theglossary beforebookskip o p Pipa dc dida Macro called before setting any part of a book page beforepartskip Vertical space before a part heading oooocccoocmmmmom o beforePoemTitleskip Vertical space before a poem title 47 COMMAND SUMMARY begintheglossaryhook nennen ee me
84. un era p nde Command setting list layout parameters to their default values DisemulatePackage package eese eme Undo a previous EmulatedPackage or EmulatedPackageWithOptions for the package package eminnershape shape vennen enen meme Font shape for emphasized text within emphasized text EmulatedPackage package date eee Claim that the package package has been loaded XEmulatedPackageWithOptionst optionlist package date nnana Claim that the package package has been loaded with options optionlist COMMAND SUMMARY everylistparindent sonde cence cece teen nent eee e ene tne een nenn Default value for listparindent the paragraph indentation in a list environ ment NES emere E eco UE dte ido Declaration for decreased vertical spacing in 1ist based environments Some addi tional space may be added before and after A Declaration for decreased vertical spacing in 1ist based environments There is no additional space before or after Meoottopapenote ironia er RU rade Declaration which turns footnotes into pagenotes NEUSSY adi utter pod iia Declaration for TeX to minimise interword space variations in justified text lines glossary file C key A term FX description eese Adds term and its description desc to a glossary file jobname glo by default or to file glo The optional argument key can be used to provide a dif
85. wleadpage page style cmdname title newleadpage page style cmdname title renewleadpage page style cmdname title renewleadpage page style cmdname H title newleadpage and associates are variants of the newcommand and companions the orig inal suggestion and code was from Danie Els The newleadpage macro defines a macro cmdname that when called typeset an Appendixpage like page with a title title using the page style for the page The default page style is empty The macro renewleadpage redefines an existing leadpage command For example newleadpage plates Picture Gallery creates the new command plates which when called generates an unnumbered part like page with the title Picture Gallery leadpagetoclevel When re newleadpage is used the resulting command adds title to the ToC as though it was an unnumbered chapter More precisely it will be added as though it were an un numbered leadpagetoclevel entry whose default definition is newcommand leadpagetoclevel chapter When the starred versions re newleadpage are used the resulting command will not add title to the ToC Internally the resulting commands use partmark for storing the title for possible later use by you 3 DOCUMENT DIVISIONS 3 3 Chapter styles Lars Madsen has collected a wide variety of chapter styles These and the code to produce them are avai

Download Pdf Manuals

image

Related Search

Addendum addendum addendum definition addendum vs amendment addendum b 2025 addendum plural addendum to contract addendum template addendum vs addenda addendum to lease addendum format addendum abbreviation addendum to lease agreement addendum to will form free addendum vs appendix addendum definition legal addendum significado addendum gear addendum o adendum addendum significato addendum letter meaning addendum atau adendum addendum meervoud addendum kontrak adalah addendum adalah

Related Contents

PDFファイル  Samsung SGH-C270 Manual de utilizare  Face Recognition User Manual - I-Cube  SEZ IV – GESTIONE DELLA SICUREZZA  Isère magazine N°92  Wasp WPA1000  取扱説明書 - TOEX  AMD340 – Microset  Module MP55  

Copyright © All rights reserved.
Failed to retrieve file