Home

Addendum - Index of

image

Contents

1. 45 47 6 2 Caption title text e m n RES RAE PR ee eG 49 Miscellaneous 51 7 1 Ge etall sia a da rd XL ee ee 51 Font commands 51 Floats 51 Two simple macros 53 Trim marks 53 Time 53 Vertical centering 54 54 55 Inserting code before and after a file package or class 55 7 3 ig hooks x aes HAE Rok ox he ue Be re wa 57 59 Bibliography 71 73 1x List of Figures 4 1 Example endnote listing o nennen 34 List of Tables 2 1 Results from sample textheight adjustments 6 8 1 Division levels lle 11 4 1 Makelndex configuration file input parameters 27 4 2 Makelndex configuration file output parameters 28 6 1 Permitted arguments for some sidecaption related commands 48 xi 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 ma
2. flushbottom footnote 33 foottopagenote 37 Ford Matthew framed package frontmatter fussy 7 futurelet 55 G Garcia Gerardo 17 geometry GE IA length 30 glossaryentry glossaryintoc glossarymark glossaryname Br length BO glossitem 2 26 29 31 graphicx package 17 18 hmpunct 53 54 hrule 40 hyperref eae STi H gholm Morten 5 75 sidecapfloatwidth memgloref I sidecapfloatwidth H7 idtextinnotes ifanappendix ifmtarg package ifpdf package if Pin e 45 46 include index EEN 5455 indextitlepagestyle pagestyle 24 input ES InputIfFileExists itemize environment K kern 40 large 19 leadpagetoclevel leftmargini derer legend 58 length afterPoemTitleskip baselineskip 5 6 Do Ncftbeforebookskip cftbookindent cftbooknumwidth everylistparindent 42 glossarycolsep midPoemTitleskip onelineskip parindent Yparskip 9 sidebarhsep 76 sidebarwidth sidecapraise 47 sidecapsep 45 48 sidecapwidth 45 sideparvshift 40 textheight 5 6 topskip 5 6 8 vleftmargin listparindent length 42 LoadClas s 56 log file 54 Luecking Daniel 40 lyhne chapterstyle 17 Lyhne Anders 17 M madsen chapterstyle Madsen Lars mainmatter makeglossary makeidx packa
3. eese Environment for setting a legend kind of sidecaption begin sidenamedlegend title label eene Environment for setting a named legend kind of sidecaption 68 Aide dE IE Gr E Typeset right in the outer margin or if given left in the left of verso pages sideparvshift et s eres een Vertical adjustment for Nsidepar marginal text begin SingleSpace Environment form of SingleSpacing SingleSpacins 2 2 a ee ee ee ee Declaration restoring normal single spacing or that set by SetSingleSpace NS LOPPY es nn ee Declaration for TeX to allow large interword space variations in justified text lines SLOPPYybotLom 122 2 0 eto bus a Declaration for TeX to allow an extra line at the bottom of a page The topskip must have been increased beforehand Nbeganisloppypaf ze tetro elus ten E EA Typeset contents of the enclosed paragraph s using sloppy SQUALL RM TTL A raggedright chapterstyle with the number and title on the same line and a rule below begin SingleSpace factor sess mee Environment form of SetSingleSpace subcaptionlabelfont fontspec 0 0 cece cee eene The font for the identifier of a subcaption subcaptionreft key F u nee ress tenes esa e E tease e era ue Typesets a reference to the subcaption labelled with key using the subcaptionlabel font Subcaptionret 4i key Frias Typesets a reference to the subcaption labelled with key usi
4. setsidebarheight textheight Perhaps you would like the sidebars to start two lines below the top of the textblock but still end at the bottom of the textblock If so and you are using the calc package then the following will do the job setlength sidebartopskip 2 onelineskip setsidebarheight textheight sidebartopskip Although you can set the parameters for your sidebars individually it is more efficient to use the setsidebars command it must be used if you change the font and or the height setsidebarst hsep width H vsep H topsep FX font FX height 39 5 BOXES AND ENVIRONMENTS The setsidebars command can be used to set the sidebar parameters sidebarhsep is set to hsep sidebarwidth is set to width sidebarvsep is set to vsep sidebartopsep is set to topsep sidebarfont is set to font and finally setsidebarheight is used to set the height to height The default is setsidebars marginparsep marginparwidth 2 onelineskip 0pt textheight The empty font argument means that the normal body font will be used Any or all of the arguments can be a in which case the parameter corresponding to that argument is unchanged Repeating the above example of changing the topskip and the height as suming that the other defaults are satisfactory except that the width should be 3cm and an italic font should be used setsidebars 3cm 2 onelineskip itshape textheight
5. 2 0 ccc ccc ccc cece emen Typesets the number num of a page note in the main text KEEN Declaration that page numbers are available to notes in the endnote listing notesname Name for endnotes default Notes sss 65 COMMAND SUMMARY MNumberPoenmlitl6 iii ta e UA E RN DI In DU SE Declaration for NPoemTitle to be numbered onecolglossaryfalse Declaration for a two column glossary onecolglossarytrue Declaration for a single column glossary begin OnehalfSpace velasco ds reo es x dees ede sy Environment form of OnehalfSpacing NOnehalfSpacing 2 be d deed ed euer ah ale E 9 Declaration increasing the baseline to create the illusion of double spacing overridescapmargin margin 1 0 cece cece nro e A one time override of sidecapmargin Vpageinnoteslipgeenum ke Controls the printing of an endnote s page reference number pagenotesubhead chapapp HH num title ccc cece eee eens Typesets a subheading for notes from chapter or appendix chapapp num called title pagetof EE Declaration which turns pagenotes into footnotes E RE EE Declaration for following a part page with a blank one partmark OREA en AA ei For setting any marks containing the text of a header for a Apart XpatchcommandX macro H start code H end code Inserts start code before the current definition of the macro and end code at the end of the cur
6. Acknowledgements The Acknowledgements list in the User Manual is somewhat out of date Iam very grateful to the following who have improved memoir by noting or fixing errors or providing ideas suggestions or code Paul Abrahams William Adams Tim Arnold Donald Arseneau Stephan von Bechtolsheim Jens Berger Karl Berry Javier Bezos Stefano Bianchi 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 F Cu ej Christopher Culver Michael W Daniels Michael Downes Christopher Dutchyn Thomas Dye Victor Eijkhout Danie Els Robin Fairbairns Simon Fear Kai von Fintel Ivars Finvers Ulrike Fischer Matthew Ford Musa Furber Daniel Richard G Ig nacio Fern ndez Galv n Gerardo Garcia Romano Giannetti Donald Goodman Gabriel Guernik Matthias Haldiman Kathryn Hargreaves Sven Hartrumpf hazydirk Carsten Heinz Florence Henry Peter Heslin Lars Hoemke Urs Hofer Morten Hegholm Hen drik Holm Vladimir Ivanovic Martin Jergensen Stefan Kahrs Marcus Kohm Jergen Larsen Kevin Lin Matthew Lovell Daniel Luecking Anders Lyhne Lars Madsen Vit torio De Martino Frank Mittelbach Vilar Camara Neto Rolf Niepraschk Patrik Ny man Heiko Oberdiek Scott Pakin Adriano Pascoletti Paul Troels Pedersen Steve Peter Erik Quaeghebeur Aaron Rendahl Chris Rowley Bernd Raichle Ren Robert Schlicht D
7. GEELEN A centered chapterstyle with a rule between the number line in a roman font and the title line in italics checkandfixthelayout algorithm eese 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 eese 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 continuousnotenums aic oa CUL sep T ARA AN EUG OR toc oc D Cp RATA Declaration to make the numbering of endnotes continuous throughout the docu ment 61 COMMAND SUMMARY One line centered bold chapterstyle using Roman numerals dash il ia Two line centered regular font chapterstyle The number has a dash on either side default The default book class chapterstyle ged geed Ebor nre t ERE Ra e Ee Nd faultlists uni il A dd ea ss Command setting list layout parameters to their default values TEMA A A two line chapterstyle with a large sanserif title the number is above centered and written e g Six instead of 6 There are rules above and below the title line It is an improvement on the demo style MDisemulatePackagei package k Undo a previous EmulatedPackage or EmulatedPackageWithO
8. The manual describes one method for centering text vertically The new vplace environ ment provides a simpler way begin vplace L num text end vplace The contents of the vplace environment are vertically 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 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 EmulatedPackageWithOptions optionlist package Y date These commands are for package writers they are based on a conversation with Donald Arseneau on CTT They fool ATEX 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
9. 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 Npartmark for storing the title for possible later use by you 13 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 available 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 repa
10. newlength mylength setlength mylength linewidth addtolength mylength sidecapsep addtolength mylength sidecapwidth begin table sidecapmargin left renewcommand sidecapfloatwidth mylength raggedleft begin sidecaption Permitted arguments for some sidecaption related commands scap one centering begin tabular cc toprule cs sidecapmargin amp csfoverridescapmargin NN 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
11. to absolutely prohibit widow orphan break but come about as close as TeX permits otherwise This is copied straight out of some code that I had lying around I guess I could wrap it into package from and post it to CTAN Michael Downes set clubpenalty etc to distinctive values for use in tracing page breaks These values are chosen so that no single penalty will absolutely prohibit a page break but certain combinations of two or more will clubpenalt 9996 widowpenalty 9999 brokenpenalty 4991 Reiterate the default value of redisplaypenalty for completeness Set postdisplaypenalty to a fairly high value to discourage a page break between a display and a widow line at the end of a paragraph predisplaypenalty 10000 postdisplaypenalty 1549 And then displaywidowpenalty should be at least as high as postdisplaypenalty otherwise in a situation where two displays are separated by two lines TeX will prefer to break between the 4 two lines rather than before the first line displaywidowpenalty 1602 You can use enlargethispage to add or subtract to the text height on a particular page to move a line forwards or backwards between two pages As you can see perfect automatic widow orphan control is problematic If all else fails the solution is either to live with the odd line or to reword the text 8 Extra inter paragraph space 2 5 Extra inter paragraph space Some like and some
12. Inserts code just after the pack package is used atendtheglossaryhook sssssssssssssse esee e e eme eee Vacuous macro called as the first thing by end theglossary XbptorBbonkSE Tp iade ges edn e UE CUR RIO OL Mp od be oi d Ac Mb di dte COMMAND SUMMARY Macro called before setting any part of a book page beforepartskip Vertical space before a part heading beforePoemTitleskip Vertical space before a poem title oooomoommmm beginthegloss ryh ok 2 0 9 9 vin te rav ae Vacuous macro called as the last thing by begin theglossary book toc title title schais A Catenairen gece Typsets a numbered book title and adds the number and title to the ToC NBOOK 4 Hl n Typsets an unnumbered book title and puts nothing in the ToC Nbookblank page sor UU RP chet rd trado Declaration for a blank page to be output after a book title page This is the default eel Fan ea For setting any marks containing the text of a header for a book bookname The name for a book division default Book Mbooknamenum RR Macro called after printbookname and before printbooknum Defaults to a space booknamefont A SN DEE Font used for printing a book name Defaults to a huge bold font Nbooknumfont dexcispextect nerui ea did Font used for printing a book number Defaults to a huge bold font book Page style applied to the book title page Defaults to empt XbooktitlefOont errata Ee betel d Fo
13. and its description desc to a glossary file jobname glo by default 62 or to file glo The optional argument key can be used to provide a different sort key for term glossarycolsep Columns separation in a two column glossary glossaryintoc Declaration to add glossary title to the To glossarymark Redefine to specify marks for headers oocoooocccoocccorccorrccos elossaryname Name for a glossary 4 eek EUER Ed VK nee KEE AE Width of inter column rule in a two column glossary glossitem term desc ref Hlnum E eese Glossary entry used in a theglossary environment is ana A A Punctuation between hours and minutes in printtime default idtextinnotes id Prints an endnote s id text cece eee ee eee eee ees NIP an append i Koved ne toate ee ee tie obtenus TRUE when processing an appendix otherwise FALSE ifsidecapleft neuen ea true if sidecaptions will be set in the left margin otherwise they will be set in the right margin indextitlepagestyle Page style for the first page of an index sss Vleadpagetocleveliizect ene nent eee The ToC style for an entry from a newleadpage generated command begin list label H layout esses List environment with entries introduced by item label is the default label for item and layout specifies changes to the default layout listparindent Paragraph indentation in a list e
14. file H key FX term FX desc FX ref Hi 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 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 memgloterm term memglodesc desc memgloref ref memglonum num 27 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 lt 0 includes a lowercase instance all within heading prefix and heading suffix item O s n item Command inserted in front of a level 0 entry item_1 s
15. moreverb needspace newfile nextpage pagenote patchcmd parskip setspace shortvrb showidx tabularx titleref tocbibind tocloft verbatim and verse As well as the emulated packages 54 For package writers memoir provides functions 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 NVEmulatedPackageWith ptions 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 M 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 futurelet 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 INSERTING CODE BEFORE AND AFTER A FILE PACKAGE OR CLASS The kernel provides two commands AtBeginDocument and AtEndDocument which can
16. n subitem As above for a level 1 entry item 2 s in 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 ek Delimiter between level 0 entry and first page number delim_1 s PR As above for level 1 entry delim 2 s M As above for level 2 entry delim n s N Delimiter between page numbers delim_r s NEN Designator for a page range encap_prefix s AND Prefix in front of a page encapsulator encap_infix s SE 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 28 Controlling the glossary These macros can be redefined to format the various parts of a glossary entry Their default definitions are simply newcommand memgloter
17. sidebartopsep Changing the marginpar parameters for example with setmarginnotes will not affect the sidebar parameters Note that checkandfixthelayout neither checks nor fixes any of the sidebar param eters This means for instance that if you change the textheight from its default value and you want sidebars to have the same height then after changing the textheight you have to call checkandfixthelayout and then call setsidebars with the new textheight For instance settypeblocksize 40 baselineskip 5in checkandfixthelayout setsidebars textheight 5 2 Side notes sidepar left 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 definition is newcommand bvendofpage hrule kern 4pt which resul
18. 17 ger lyhne madsen pedersen reparticle southall thatcher 18 veelo 18 verville 18 checkandf ixthelayout B 40 45 checkthelayout chngcntr package class xiii article DA memoir xiii continuousnotenuns 34 counter pagenote crop package 54 culver chapterstyle Culver Christopher 1 D dash chapterstyle datetime package dcolumn package N description environment 42 DisemulatePackage document environment H gholm Morten document environment DoubleSpacing 9 Downes Michael 8 Dye Thomas 14 17 E ell ere pA Els Danie Nem eminnershape 51 emph xv 51 empty pagestyle EmulatedPackage 54 EmulatedPackageWithOptions endnot e 32 endnotes package enlargethispage 8 ent file B3H86 enumerate environment 42 enumerate package 54 environment description 42 document 55 enumerate figure bl itemize 42 list 42 midsloppypar minipage 10 minpage picture 21 sidecaption 45 Sg E ee 46 sidelegend 4 EE 46 sloppypar 7 table tabular 48 thebibliography theglossary 26 theindex 30 verbat imout put D verse 41 42 vminipage 10 43 vplace 54 writeverbatin 2 everylistparindent length 42 F fancyhdr ee 2 feetbelowfloat 2 figure environment file ent 3 log 54 toc 33 firmlists 42
19. 4 30 Controlling the glossary 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 Ahhh in the preamble makeglossary changeglossactual changeglossnum thepage changeglossnumformat hyperpage for hyperlinks renewcommand glossaryname Command summary renewcommand glossarymark markboth glossaryname makeatletter renewcommand glossitem 4 4 sbox tempboxa 1 space 2 3 4 par hangindent 2em ifdim wd tempboxa lt 0 8 linewidth 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 ofa caption 1 Put the whole entry into a temporary box 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 The gst file I have used for this document has a few more items than the basic one memman gst makindex glossary style file for memman and friends h Output style parameters preamble begin thegloss
20. If you just run Makelndex on a glo file you will get lots of errors Makelndex has to be configured 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 74h Output style parameters preamble begin theglossary postamble n end theglossary n item_0 n glossitem delim_0 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 ent
21. SetSingleSpace command is meant to be used to adjust slightly the normal spacing betwen lines perhaps because the font being used looks too crampled or loose The effect is that the normal Nbaselineskip spacing will be multiplied by factor which should be close to 1 0 The declaration SingleSpacing returns everthing to normal or at least the setting from SetSingleSpace if it has been used begin SingleSpace end SingleSpace begin Spacing factor end Spacing begin OnehalfSpace end OnehalfSpace begin DoubleSpace end DoubleSpace These are the environments corresponding to the declarations presented earlier for when you want to change the spacing locally setDisplayskipStretch fraction memdskipstretch noDisplayskipStretch memdskips If you have increased the interlinear space in the text you may wish or be required to increase it around displays of maths The declaration setDisplayskipStretch will increase the before and after displayskips by fraction which must be at least 0 0 More precisely it defines memdskipstretch to be fraction The noDisplayskipStretch declaration sets the skips back to their normal values It is equivalent to setDisplayskipStretch 0 0 The skips are changed within the macro memdskips which in turn is called by everydisplay If you find odd spacing around displays then redefine memdskips to do nothing Its orginal specification is
22. TIME printtime printtime hmpunct amname pmname The printtime command prints the time of day when the document is processed using the 24 hour clock while printtime uses a 12 hour clock For example the effect of the next piece of code is shown below 1I based the code on a similar macro in TeX for the Impatient AHK90 53 7 MISCELLANEOUS This document was processed on today at printtime printtime This document was processed on December 13 2006 at 15 45 3 45 pm The punctuation between the hours and minutes is hmpunct which defaults to a colon CL The macros amname and pmnane hold the abbreviations for ante meridiem and post meridiem respecitively the defaults are am and pm According to the Chicago Manual of Style there should be no punctuation be tween the hours and minutes in the 24 hour system For the 12 hour system it recommends that small caps be used for the divisions of the day e g A M and P M and also that the American practice is to use a colon as the separator between hours and minutes whereas the English practice is to use a period known to the English as a full stop I don t know what the traditions are in other orthographies The quarkmarks declaration uses printtime so be careful if you change it Nicola Talbot s datetime package provides a much more comprehensive collec tion of styles for printing the time also for dates VERTICAL CENTERING
23. by Troels Pedersen and requires the graphicx package and to get the full effect the color package as well The title is raggedright in large italics while the number is much larger and placed in the righthand margin I changed the means of placing the number colorchapnum colorchaptitle The title is set with colorchaptitle and the number with Ncolorchapnum both of which default to doing nothing Lars Madsen has suggested a nice red color for these usepackage color definecolorfared rgb 647 129 149 renewcommand colorchapnum color ared renewcommand colorchaptitle color ared chapterstyle pedersen The southall chapterstyle created by Thomas Dye described earlier except that I have modified it to avoid having to use two new lengths SCTT Fancy Headings Chapter Headings 2002 04 12 6CTT Glossary 2006 02 09 7CTT New chapter style chapter vs chapter 2003 12 09 SCTT Chapter style 2006 01 31 17 3 DOCUMENT DIVISIONS thatcher A style created by Scott Thatcher which has the chapter name and number centered with the title below also centered and all set in small caps There is a short rule be tween the number line and the title I have modified the original to cater for multiline titles unnumbered chapters and appendices veelo The veelo style created by Baastain Veelo described earlier but revised to avoid the use of new lengths It requires the graphicx package verville A cha
24. 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 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 text pagenum prenoteinnotes postnoteinnotes 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 noteentry macro controls the typesetting of the note The default definition of noteentry is newcommand no
25. 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 of 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 em command is no longer deprecated and minor extension to emph Side captions New book document division Minor extension to numbering verse lines Double spacing Extra space between paragraphs A vertical version of the minipage environment Over a dozen new built in chapterstyles 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
26. demo2 ell ger lyhne madsen pedersen southall He also wanted sections to just start with the number and the text to immediately follow on the same line That can be accomplished like this renewcommand thesection arabic section renewcommand section 1 refstepcounter section par noindent textbf thesection space nolinebreak A simple two line centered chapterstyle There is a short dash on either side of the number and a slightly larger version of the regular font is used for both the number and the title This was already in the class but it has been revised to re initialize all the settings The chapterstyle used in this document It is an improvement on the original demo chapterstyle A raggedleft sanserif chapterstyle The number line is separated from the title by rules like an L on its side The number is placed in the margin I will probably use this in my next book This style was created by Gerardo Garcia and is a two line raggedleft large bold style with rules above and below A style created by Anders Lyhne where the raggedleft sanserif title is between two rules with the name and number above I modified the original to cater for unnum bered chapters It requires the graphicx package This was created by Lars Madsen and is a large sanserif raggedleft style with the number in the margin and a rule between the number and title lines It requires the graphicx package This was created
27. 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 Plus the recoding of some internal macros 21 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 cftparagraphname cf
28. 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 whereas for footnote it must be a number 37 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 The results from using sidebar have been much improved due to some hard work by Donald Arseneau sidebartopsep The length sidebartopsep controls the vertical position of the top of a sidebar The default is Opt and the top of the sidebar is aligned with the top of the textblock setsidebarheight height The command setsidebarheight sets the height of the sidebars to height without making any allowance for sidebartopsep The default which assumes that the default sidebartopsep is used is
29. 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 change macros after 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 29 4 FRONT AND REAR resets the number to the page number THE LISTING The final glossary data in the gls file is typeset in the theglossary environment 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 Xglossaryname glossarymark glossaryintoc noglossaryintoc The title for the glossary is glossaryname whose initial definition is newcommand glo
30. only be used in the preamble for inserting code at the start and end of the document environment The kernel also provides the macros AtEndOfPackagetf code and AtEndOfClasst code for inserting code at the end of the current package or class More precisely these macros call the code after the package or class file has been input via InputIfFileExists 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 code AtEndFile file code The AtBeginFile macro inserts code just before the file file is input 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 input 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 55 7 MISCELLANEOUS XAtBeginPackagel pack H code AtEndPackaget pack code MRequireAtEndPackaget pack M C code The AtBeginPackage command will insert code just before the pack package is used Similarly AtEndPackage will insert the code imme
31. the parskip to length cece eee eee 9 addtonotest text Inserts text into the endnotes ent file afterbook 00 ana ee a vd eg 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 ooooommmmmo afterpatt lA EE EE Eege Page style applied to the blank page if any following a part title page Defaults to empty afterpartskip Vertical space after a part heading E ff NafterPoemTitle eese eee eee Called after printing the title of a PoemTitle afterPoemTitlenum eese eee eee Called after printing the number of a PoemTitle afterPoemTitleskip Vertical space after a poem title o oooommmmo Vann ane ccs eee att eii AE Abbreviation for ante meridiem used in Nprinttime default am AtBeginClass pack H code EE Inserts code just before the class class is used NAtBeginbileiUile T code T coepta a een Inserts code just before the file is input or included etc AtBeginPackage pack code esses Inserts code just before the pack package is used AtEndClass class code ccc c cece cece cnet e ete m Inserts code just after the class class is used AtEndFile file ide aeg Inserts code just after the file is input or included etc AtEndPackage pack code oo ieee ccc cece cece eee rn rec
32. using the appropriate gst configuration file and then LaTeX run again to get the corrected sorted and formatted result printed by printglossary In particular for this document which also includes an index so that can be processed when the glossary is processed pdflatex memmanadd makeindex s memman gst o memmanadd gls memmanadd glo makeindex s memman ist memmanadd hhh for the index pdflatex memmanadd 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 text printpagenotes printpagenotes 32 Endnotes 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 th
33. 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 212019181716 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 Sixteenth impression with minor additions December 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 toot
34. Managing Editor The Chicago Manual of Style Fourteenth Edition University of Chicago Press 1993 Leslie Lamport Victor Eijkhout and Johannes Braams NTG Document Classes for LaTeX version 2e June 2004 Available from CTAN in contrib ntg Frank Mittelbach Michael Goossens et al The LaTeX companion Second Edition Addison Wesley 2004 ISBN 0 201 36299 6 Nicola L C Talbot datetime sty Formatting Current Date and Time December 2006 Available from CTAN in macros latex contrib datetime Geoffrey Tobin setspace sty December 2000 Available from CTAN in macros latex contrib setspace Peter Wilson Glisterings TUGboat 25 2 pp 201 202 2004 71 Index The first page number is usually but not always the primary reference to the indexed topic wrglom m dblfpbot dblfptop fpbot 51 fptop 51 A abnormalparskip 9 abstract package Adams William addtonotes afterbook pagestyle 12 afterbookskip Ch afterpart NADIE cdd M NafterPoemTitle Nea aa en Teng O alg package f algorithm package algorithmic ne amname 53 54 appendix package appendixname array package Arseneau Donald article class article option AtBeginClass 56 AtBeginDocument 55 AtBeginFile 55 AtBeginPackage 56 AtEndClass 56 AtEndDocument 55 AtEndFile 55 MAtEndOfClass AtEndOfPackage 55157 AtEndPackage atendtheglossaryho
35. Writing out verbatim 2 ee es 2 O E doves Mirah A tees eat ee cee Oe we ds 2 1 7 New listentriesl 2 1 8 Footnotes and ragged bottom 2 0 0 2 00 00 o o 2 1 9 Package clashes 54 uw sa eo RE sn aid en eO ees 3 2 Page layout 5 2 1 lexth ight koe ara bed dates 5 EA A A A A WA A IT AA ee 6 2 3 Overfulllinesl 7 e A a a eee E a a EN 7 2 5 Extra inter paragraph space 2 ee ee 9 2 6 Doublespading e IR 9 3_ Document divisions 11 viii 3 1 Bookheadings ooo 11 Book heading layout 12 9 2 Partheadings E ie eo a was a ERR UR RR E 13 8 9 Chapter styleS amp a ou dos Ree 20a ads he Rem dn EUER E e 14 14 Southall 14 Chappell 15 Demo2 15 16 3 4 Poem Titles eco ee eee ee EAE eR EE 18 Main Poem Title layout parameters 19 Detailed Poem Title layout parame 19 4 Front and rear 21 E ee NN 21 E Xr 21 Book ToC entry 23 4 3 Theindex s e se 2 2 82 2 8 2 20 2 ds sis 24 4 4 Gl ossatfies veia BAe a ae Re a aa 25 V Neher tank se de lie re oh dere EE 26 Setting up makeindex 26 Raw input data 27 rhe listing 30 The glossary for 31 4 6 Endnotesl ee 32 35 39 5 1 Sideb tsl a a aOR eg ER 39 5 2 Side notes uus Dal ds ar E be a A 40 5 3 Boxed verbatimsl CC mn nn 40 5 4 VELSe s gute da Sm dir ee er 41 5 5 PE 42 5 6 Vertical minipage e eA 43 6 Captions 45 T
36. a wrapped float from say the wrapfig package make sure that the sidecaption gets placed where it won t be overlaid by the main text 48 Caption title text 6 2 Caption title text captiontitlefinalt stuff captiontitlefinalt stuff will put stuff immediately at the end of a caption s title but stuff will not 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 49 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 eminnershapet 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 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 0pt setlength dblfptop 0pt makeatother To move the floats to the bottom of the page replace fptop and dblfptop by fpbot and db1lfpbot respectively One author thought it would be nice to be able to have different page headings accord ing t
37. ages 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 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 book and book commands membookinf of thebook fortoc FA title membookstarinf of title Hooks for the part and part commands mempartinf of thepart 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 o1 thechapter fortoc F4 forhead M title me
38. algorithmic and algorithm and it is the latter one that uses the float package In this particular case Danie suggested ignoring the algorithm package and using memoir s methods and he gave the example below documentclass memoir usepackage algorithmic simple new memoir float newcommand algorithmname Algorithm newcommand listalgorithmname List of Algorithms 1 CORRECTIONS AND OMISSIONS newlistof listofalgorithms loa listalgorithmname newfloat algorithm loa algorithmname newfixedcaption falgcaption algorithm newlistentry algorithm loa 0 beginfdocument listofalgorithms begin algorithm caption An algorithm label algi beginfalgorithmic end algorithmic end algorithm a non float algorithm begin minipage 9 textwidth falgcaption Another label begin algorithmic end algorthmic end minipage An alternative solution if you want both memoir s and float s methods is a variant on method I above documentclass memoir hhh create new memoir floats let newfloat undef ined usepackage algorithmic usepackage algorithm hhh create new algorithm float floats 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 algorithm checkthelayout algorithm The checkandfixthelay
39. are forced to put extra space between paragraphs often also elimi nating any indentation at the start of a paragraph This can cause problems for the reader the most egregious being when one paragraph ends at the bottom of the page with a full line and the next one starts at the top of the following page How is the reader expected to know that two paragraphs are involved abnormalparskipt length nonzeroparskip traditionalparskip If you have to do a disservice to your readers you can use the abnormalparskip declaration to set the inter paragraph spacing the length parskip to length If you use the nonzeroparskip declaration then parskip will be given a reasonable value If you simply say for example setlength parskip 2 baselineskip then you are likely to find many things changed that you might not have expected The declarations provided here try and shield you from the worst of these but with no guar antees Following the traditionalparskip declaration the parskip will be restored to its traditional value and all should be well with the world I based the code for this functionality upon the NTG classes which indicated some of the pitfalls involved in increasing the spacing The difficulty with writing a pack age for this is that par and hence parskip occurs in many places some unexpected and others deeply buried in the code for any of the classes 2 6 Double spacing Some of those that have cont
40. artstarinfof title Code hook into part 1 0 0 0 cece cece eee ee mempoeminf of title Code hook into poemtitle ccc eee eee ee mempoemstarinfof title Code hook into poemtitle s sss memPoemTitleinfo thepoem fortoc forhead Hief Code hook into PoemTitle memPoemTitlestarinfo fortoc title cesses Code hook into PoemTitle Xmemsecinfol name thename fortoc F C forhead FX title te Code hook into the name section command Xmemsecstarintol name Hltitle esses Code hook into the name section command 64 KEE Macro called between setting a book number and the title midpartskip eerder renien kane EE ee chin Vertical space between a part number and the part title midPoemTitleskip AAA ER EE EEN Vertical space between the number and text of a poem title midsloppy Wie ee ne DE EE ATUS Dad Declaration for TeX to allow moderate interword space variations in justified text lines Nb pin midsloppypart iae trat nahe Typeset contents of the enclosed paragraph s using midsloppy newleadpage page style cmdname FL title eese 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 Xnewleadpager page style cmdname tient Creates a command cmdname which typesets a part like page
41. ary postamble n end theglossary n group_skip n glossaryspace n item_0 n glossitem delim_0 memglonun encap_suffix indent_space t indent_length 2 h Input style parameters keyword glossaryentry actual page_compositor 31 4 FRONT AND REAR 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 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 numbers will be like 1 2 3 instead of the default 1 2 3 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 7 cs gmarg gmargfarg 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 Makelndex has to be run the glo file
42. at I have checked there are two common methods of identifying an endnote 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 of 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 l above For the second reference style 2Jabove 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 Xprintpagenotes 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 c
43. contentsname Contents let changetocdepth oldchangetocdepth let cftchapterfillnum oldcftchapterfillnum renewcommand cftchapterfont normalfont sffamily renewcommand cftchapterleader sffamily cftdotfill cftchapterdotsep renewcommand cftchapterafterpnum makeatletter renewcommand cftchapterbreak par addpenalty Chighpenalty 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 23 4 FRONT AND REAR This is called before the book number is set in the ToC The default definition is empty cftbeforebookskip cftbookindent cftbooknumwidth 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 cftbookfont cftbookpagefont 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 cftbookleader typesets the
44. d version The poemtitlestarmark and poemtitlestarpstyle can be redefined to set marks and pagestyles CTT memoir chapter headings capitalize math symbols 2006 01 18 10CTT Headers and special formatting of sections 2005 01 18 18 Poem Titles 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 PoemTitlenumfont 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 below prin
45. dfix 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 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 24 Sloppybottom TeX does its best to avoid widow and orphan lines a widow is where the last line of a paragraph end up at the top of a page and an orphan is when the first line of a paragraph is at the bottom of a page Here is one person s view on the matter in experimenting with raggedbottom widowpenalty and clubpenalty I think that I have not found a solu
46. diately 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 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 AtBeginClasst class M code Y XAtEndClass1 class FX 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 The RequireAtEndClass command will like AtEndClass 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 followi
47. ding the above have been added to the class itself Some are mine and others are from postings to CTT I have modified many of the posted ones to cater for things like appendices multiline titles and unnumbered chapters which were not considered in the originals If you want to try several chapterstyles in one document request the default style before each of the others to ensure that a previous style s changes are not passed on to a following one bianchi This style was created by Stefano Bianchi and is a two line centered arrangement with rules above and below the large bold sanserif title line The chapter number line is in a smaller italic font bringhurst The bringhurst chapterstyle described in the manual brotherton A very simple style designed by William Adams for the science fiction novel Star Dragon by Mike Brotherton The novel is freely downloadable from Brotherton s web site The style is the same as the default except that the number is spelt out in words In the book chapters are untitled i e via chapter chappell The chappell chapterstyle described earlier culver A chapter style I created for Christopher Culver based on the format of ancient texts It is one line centered bold and with the number printed as Roman numerals 2CTT New chapter style chapter vs chapter 2003 12 09 cTT An example of a novel 2006 12 09 crT Biblical formatting how 2004 03 29 16 Chapter styles dash default
48. e e e ese esee se en Font for typesetting a book s page number in the ToC XAcftbookpresmum sn A desi RA AA dad Ed Macro called before a book number in the ToC in the number box e AAA docaaenenenits In the ToC called before the number of a chapter cftfigurename In the LoF called before the number of a figure eftparagraphn ne 2 ee d eege EN A ee gl te ne In the ToC called before the number of a paragraph cftpartname In the ToC called before the number of a part oocccoccccococcoo cftsectionname cece cece eee eee rere In the ToC called before the number of a section cftsubparagraphname sssssssssse esee eme ee ee hen In the ToC called before the number of a subparagraph cftsubsectionname eee sehe In the ToC called before the number of a subsection Ncftsubsubsectionname sess ean In the ToC called before the number of a subsubsection cfttablename In the LoT called before the number of a table Xchangeglossactual file char eese Specifies char as the actual character for glossary file changeglossnum file thecounter eee Specifies thecounter as the num for glossary file Nchangeglossnumformat file format sees Specifies format as the format for num for glossary file changeglossref file thecounter eese Specifies thecounter as the ref for glossary file
49. einnotes printbookname printbooknum printbooktitle printPoemTitlenonum printPoemTitlenum printPoemTitletitle printt TE Mprinttimex program Mods RID 27 82 E protect 36 Xquarkmarks tocbibind package quarkmarks 53 54 sidecap package 55 sidecapfloatwidth R E HS sidecapraise length raggedbotton sidecapsep length raggedleft 48 sidecapstyle 47 Xraggedright sidecaption environment 15 46 48 YregistrationColour 53 sidecapwidth length 45 renewcommand sidecontcaption environment renewleadpage sidelegend environment 46 renewleadpage sidenamedlegend environment Yreparticle 14 Nsidepar 40 reparticle chapterstyle sideparvshift length 40 RequireAtEndClass 56 SingleSpacing 10 RequireAtEndPackage sloppy 7 sloppybottom 8 S sloppypar environment southall chapterstyle 141117 a SES pterstyle 14 17 scapmarglefttrue 45 strictpagechecktrue 47 Wsection 14 58 sectionbib option xiii setDisplayskipStret ch 10 setfootnoterule setlength 8 setmarginnotes 40 45 setsidcaps 45 setsidebarheight 39 40 setsidebars setsidecappos setsidecaps SetSingleSpace setspace package shortvrb package 54 showidx package showtrims option showtrimsoff showtrimson sidebar 39 sidebarf ont 40 sidebarhsep length 40 sidebarmargin 39 sidebaronesidefa
50. ent margin otherwise the sidecapmargin command controls the 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 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 with the sidecontcaption environmen
51. er as newlistentryl answer subanswer 1 Unfortunately newlistentry takes one optional and three required arguments newlistentry L within entr H ext Ki level 1 Y The example should have read newlistentry answer subanswer ans 1 1 8 Footnotes and ragged bottom The manual claims that after the feetbelowfloat declaration footnotes would be placed at the bottom of the page when raggedbottom was in effect This is not so setfootnoterule fill space H width FX thickness The macro setfootnoterule can be used to specify the appearance of the rule before footnotes where space is extra space between the footnote text and the rule has width and thickness The default is setfootnoterule 3pt 0 4 columnwidth normalrulethickness Package clashes The optional fill argument is inserted just before the rule is drawn To ensure that foot notes are at the bottom raggedbottom pages you can use this setfootnoterule vfill1 3pt 0 4 columnwidth normalrulethickness 1 9 Package clashes On occasions a package does not work with memoir because the class has already defined a macro that the package wants to define There are ways to cope with this depending on what you want to do Wil04 For the sake of argument assume that both the memoir class and the pack package have both defined the macro amacro the package by using newcommand If pack is used with memoi
52. ft margin for verse et AE EE ere cra rna ege Nvleftoflinei text Puts text at the left of a line of verse 000000 BER begin vminipage pos height innerpos fond 43 Vertical minipage environment taking the same arguments as minipage It forms a paragraph by itself begin vplace num sssr 0 ccc ccc ccc dierasie iein ee e en The contents of this environment are centered vertically The optional num argument can be used to specify the ratio of the upper space to the lower space begin writeverbatim stream 0c cc ccc cece teen cence meme Environment whose contents will be written verbatim to the stream output stream zindyindex ti ansehe inne Declaration to be put in the preamble when the xindy program will be used to process the raw index 70 Bibliography AHK90 CB99 CH88 Dow00 CMS93 LEB04 MG 04 Tal06 Tob00 wil04 Paul W Abrahams Kathryn Hargreaves and Karl Berry TeX for the Impatient Addison Wesley 1990 Available at ftp tug org tex impatient Warren Chappell and Robert Bringhurst A Short History of the Printed Word Hartley amp Marks 1999 ISBN 0 88179 154 7 Pehong Chen and Michael A Harrison Index Preparation and processing September 1988 Available from CTAN in indexing makeindex paper Michael J Downes The patchcmd package July 2000 Available from CTAN in macros latex contrib patchcmd John Grossman
53. g to be concerned with changing any arguments 43 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 setsidecaps sep width The caption is set ina box sidecapwidth wide the default is marginparwidth off set sidecapsep default marginparsep into the margin The command setsidcaps sets the sidecapsep and sidecapwidth to the given values Changing the marginpar parameters for example with setmarginnotes will not change the side caption set tings Note also that checkandfixthelayout neither checks nor fixes the side caption parameters sidecapmargint margin ifscapmargleft scapmarglefttrue scapmargleftfalse 45 6 CAPTIONS If the float is a single column float in a twocolumn document then the caption is al ways placed in the adjac
54. ge Makelndex program 24lP7 B2 makepagenotes 32 maketitle marginpar marginparsep length marginparwidth length memappchapinf 0 57 memappchapstarinf 0 7 memapppageinf 0 58 memapppagestarinf membicaptioninfo membionenumcaptioninfo membitwonumcaptioninfo membookinf 0 57 membookstarinfo memcaptioninfo memchapinf 0 7 memchapstarinf 0 7 memdskips 10 memdskipstret ch 10 memglodesc memglonum mengloref memgloterm package memgloterm memgobble 53 memhfixc package uu memhyperindexfals memj ustarg 53 memleadpageinfo memleadpagestarinfo memlegendinfo 58 58 Memoir classe elec 58 memoir class xiii kv xvii mempartinfo 57 mempart ae mempoeminf 0 58 mempoemstarinfo memPoemTitleinfo memPoemTitlest arinfo 58 memsecinf 0 58 memsecstarinfo 8 re H midpartskip l midPoemTitleskip length 19 midsloppy 7 midsloppypar environment 7 Miletic Filip 3 minipage environment 10 va ER 47 as minpage a ee moreverb package 54 N natbib package xiii needspace package 54 newcommand B newfile package newfloat newleadpage newleadpage newlistentry newsubfloat nextpage Zei nobookblankpage noDisplayskipStretch 10 noglossaryintoc nonzeroparskip 9 nopartblankpage notedivision 34 noteentry noteidinnotes note
55. h that projects beyond the pitch circle or the distance that it projects Webster s New World Dictionary Second College Edition memoir 1 Fr m moire masc a memorandum memoir fem memory lt 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 writers 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 1 Content List of Figure List of Table es Q 3 O o z O a oq O 3 O lt un un in 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 11 21 39 45 51 59 71 73 Contents vii viii xi xiii Introduction to Edition 2 xv Acknowledgements xvii 1 De Se leo He ds Ges ode fey Bes Sie deed a ae EE E He de de E E ee de 1 reese Ye Gah A 1 ete See wc Dae ete II A 1 1 4 COS cc ar Ae eh a Oe Oe EES 1 1 5
56. hapter 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 33 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 begin document chapter One Mpagenote An end note printpagenotes chapter Last ApagenotefAnother note 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 34 Endnotes When printnotes or printnotes is called the first thing it does is
57. htblock 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 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 o
58. in 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 last 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 Mote 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 marginpar 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
59. innotes notenuminnotes notenumintext notepageref 34 notesname NumberPoemTitle 18 O Oberdiek Heiko 57 onecolglossaryfalse onecolglossarytrue OnehalfSpac ing Nonelineskip length 42 oneside option el option article oneside 6 sectionbib showtrims twoside 6 Noverridescapmargin H7 P package abstract b4 alg B algorithm appendix 54 array D I booktabs 54 calc b 39 ccaption D I chapterbib xiii chngentr 54 color 17 crop 54 datetime GA dcolumn delarray endnotes enumerate epigraph 54 fancyhdr 55 77 Xpageinnotes Xprotect float DA framed 54 needspace ref Bal 54 4 verse 54 wra os lm Xpageinnotes 36 Npagenote B2 pagenote counter pagenote package pagenotesubhead pagestyle afterbook 12 afterpart 13 book 12 chapter 24 empty indextitlepagestyle 24 pagetofootnote 37 parindent ee parskip package LR parskip length 78 part ME DIEN part ee partmark patchcmd package Ob patchcommand 5 pedersen chapterstyle 17 Pedersen Troels 17 picture environment PlainPoemTitle 18 pmname pmnane pnchap PoemTitlex PoemTitlefont PoemTitleheadstart poemt itlemark 18 PoemTitlenumf ont poemtitlepstyle poemtitlestarmark poemtitlestarpstyle postnoteinnotes preglossaryhook prenot
60. irk Schlimm Arnaud Schmittbuhl Rainer Sch pf Paul Stanley Per Starb ck James Szinger Jens Taprogge Scott Thatcher Reuben Thomas Bastiaan Niels Veelo Guy Verville 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 the comp 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 the 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 student Britney Gallivan has managed to fold a sheet of paper in half twelve times see for example http mathworld wolfram com Folding html 13 Part headings 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 defin
61. itions 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 1 5 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 begin verbatimoutput file 9 material end verbatimoutput begin writeverbatim stream material end writeverbatim The material in these environments is 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 subansw
62. l 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 in 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 6 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 class option documentclass memoir hhh Set up the recto page layout Ncheckandfixthelayout or perhaps checkandfixthelayout lines setlength evensidemargin oddsidemargin after checkan
63. 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 There is a new pagestyle for the first page of an index indextitlepagestyle This is the same as the chapter pagestyle 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 toa 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 24 Glossaries Xmemhyperindexfalse 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 s
64. 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 47 6 CAPTIONS sidecapmargin overridescapmargin Table 6 1 Permitted arguments for some left left sidecaption related right right commands inner outer 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
65. llskip 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 22 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 contents renewcommand
66. lse sidebaronesidetrue 3 subcaptionlabelfont subcaptionref subcaptionref subfigure package subsection T table environment tableofcontents tabular Cen tabularx package 54 textheight Zen pm thatcher chapterstyle 18 Thatcher Scott T8 thebibliography environment Wthebook 12 theglossary environment 26 80 theindex environment thepoen 18 tightlist tightlists tightlists titleref package titlesec package toc file B3 tocbibind package 54 79 tocloft package Zoonekynd Vincent tocloft package topskip length 3B traditionalparskip 9 twoside option 6 7 U Nusepackage 5456 V veelo chapterstyle 18 Veelo Baastian verbatim package BA verbatimoutput environment verse environment 41 42 verse package 4 verselinenumbersleft 42 verselinenumbersright verville chapterstyle 18 Verville Guy 18 vleftmargin length 41 42 vleftofline 4 vminipage environment 10 43 vplace environment WwW wrapfig package 48 writeverbatim environment DI X xindy program xindyindex Z Zoonekynd Vincent 21 80
67. m 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 to 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 changeglossnumformat 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 Nchangeglossnum specifies that thecounter should be used to generate the num for the file glossary It is initially thepage changeglossnumformat specifies that format should be used to format the num for the file glossary The format of format
68. mchapstarinfo fortoc title memappchapinf o thechapter H fortoc H forhead title memappchapstarinfof fortoc title 57 7 MISCELLANEOUS Hooks for section subsection etc and their starred versions name is the type of section e g section or subsection or subsubsection or Xmemsecinfol name H thename Y fortoc Ki forhead title memsecstarinfo name H title Hooks for appendix like page headings memapppageinf o title Xmemapppagestarinfo title memleadpageinfot pstyle cmdname H title memleadpagestarinf of pstyle cmdname title Hooks for poemtitle PoemTitle and their starred versions mempoeminf o title mempoemstarinfof title memPoemTitleinf of thepoem fortoc forhead M title memPoemTitlestarinfo fortoc title Hooks for the several kinds of caption and legend commands memcaptioninf of type thetype FX fortoc FX title memlegendinf o title memnamedlegendinfo fortoc title membitwonumcaptioninf of type thetype fortoc1 title1 name2 fortoc2 title2 Y membionenumcaptioninf of type thetype fortoc1 title1 name2 fortoc2 title2 Y membicaptioninfof type ki thetype H fortoc1 H title1 name2 title2 58 Command summary abnormalparskipt length Sets
69. n to file glo The key argument is optional If present then key will be added to the file to act 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 25 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 glossitemt term desc H ref H num 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
70. nelineskip 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 15 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 sffamily renewcommand printchaptertitle 1 hrule vskip onelineskip raggedleft chaptitlefont 1 renewcommand afterchaptertitle vskip onelineskip hrule vskip afterchapskip setlength beforechapskip 3 baselineskip renewcommand printchapternonum vphantom chapnumfont One Nafterchapternum 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 ADDITIONS TO THE CLASS Several new chapterstyles inclu
71. newcommand memdskips advance abovedisplayskip memdskipstretch abovedisplayskip advance belowdisplayskip memdskipstretch belowdisplayskip advance abovedisplayshortskip memdskipstretch abovedisplayshortskip advance belowdisplayshortskip memdskipstretch belowdisplayshortskip If you need to use a minipage as a stand alone item in a widely spaced text then you may need to use the vminipage environment instead to get the before and after spacing correct 10 Three Document divisions 3 1 Book headings Frederic Connes has told me that in French typography there is often a document division above the part 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 1 book toc title title Nbook title The book command is like the part 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 subsub
72. ng 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 AtEndOfPackage 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 gt input 1 lt after code gt If AtEndPackage is applied to a package that has an internal AtEndOfPackage then the result can be sketched as newcommand usepackage 1 56 Heading hooks 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 NAtEndOf Package 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 AtEndPackagefhyperref H AtBeginDocument usepackage memhfixc but this seems more trouble than it s worth especially since Heiko Oberdiek has kindly updated hyperref so that versions after 2006 11 15 will automatically load the memhfixc package 7 3 Heading hooks On 2nd September 2005 I posted two mess
73. ng the normal font textheight The height of the textblock susanne ka thatcher au ern A centered small caps chapterstyle with the number line separated from the title by a short rule begin theglossary Environment for typesetting a glossary ooocmmmmmm thepoem Typeset the current Poem Title number eh E OC Declaration for removing vertical spacing from list based environments Half a onelineskip may be added before and after o A eae lee ee Declaration for removing vertical spacing from list based environments There is no additional space before or after EIS TE NEE The height of the first line of text on a page This is usually less than the baselineskip Ntraditionalparskip EEN Pl Sets the parskip to its traditional zero value o O Re ar es A raggedleft large bold chapterstyle with a large black square in the margin by the 69 COMMAND SUMMARY number line It requires the graphicx package begin verbatimoutput file esses me Environment whose contents will be written verbatim to the file file verselinenumbersleft o Declaration to have any verse line numbers set to the left of the lines Nverselinenumbersright eege che rd Rl eu aa Declaration to have any verse line numbers set in the righthand margin This is the default c C A single line large centered chapterstyle with rules above and below vleftnargin Minimum le
74. ninfof type thetype F C fortoc title oo cece eee eee Code hook into caption memchapinf of thechapter fortoc FC forhead title te Code hook into chapter memchapstarinf of fortoc title Code hook into chapter mendskips fase deg annealed dad dione Mace Adjusts the display skips according to memdskipstretch memdskipstretch 0 cece cece cece esee ee s e e eee The current factor for increasing display skips memglodesc desc Wrapper round a glossary description memglonum num Wrapper round glossary numbers 00sece eee ee eee memgloref ref Wrapper round a glossary ref esee memgloterm term Wrapper round a glossary term 000 cece eect e eens memgobble text Gobbles its argument Do not redefine 7 N emhyperindexfalse eit rr Uwe ee paella Preamble command to prevent hyperindexing memjustargt text Definition is just text Do not redefine it memleadpageinf of pstyle ki cmdname Heite Code hook into newleadpage and renewleadpage Xmemleadpageintol pstyle M C cmdname FA title E eese Code hook into newleadpage and Nrenewleadpage memlegendinfo title Code hook into legend ss cee cece eee eee memnamedlegendinfof fortoc FC title oo eee Code hook into namedlegend mempartinf of thepart fortoc title Code hook into part memp
75. nt used for printing a book title Defaults to a Huge bold font Brinshurst o cada iia A raggedright unnumbered small caps chapterstyle with a textwidth rule below Brotherton NEE A chapterstyle like the default except that the number is spelt out bvendof page code miii een Fades Ee eee Controls the appearance of a page break in a boxed verbatim Neapel ont It let nal st area Puts stuff immediately at the end of a caption s title but not in the LoF or LoT KEE In the ToC called before the number of a chapter forming an appendix cftbeforebookskip Space before a book entry in the Tote cftbookaftersnum ccc cece cece cece ence cece ee hehe eee rere Macro called after a book number in the ToC in the number box NXeftbookaftersnumD serere dele hie tevin bach en ee Macro called after a book number s box in the ToC cftbookdotsep miii er Separation between the dots on a book leader in the ToC NCEE DOOM E ONE EE Font for typesetting a book number and title in the ToC cftbookindent 00 cece cece cence erre Indent of a ToC book entry from the left margin 60 Noftbookleader ci at aia tds Typesets the leader between a book title and page number in the ToC cftbookname In the ToC called before the number of a book cftbooknumwidth 0 0 ccc cece cece cece cece e eere Space allowed for a book entry s number in the ToC cftbookpagefont 6 cece cece cece e ee
76. nvironment TVE data RAS ee AAA AAA ERA AER ARA ARAS A raggedleft bold sanserif chapter title set between two rules with the name and number above It requires the graphicx package A A EE A raggedleft large bold sanserif chapterstyle with the number in the margin and a rule between the number and title lines It requires the graphicx package makeglossary Er NEE Opens file jobname glo or file glo for glossary entries nakepagenotes cnica da Preamble command for enabling page end notes memappchapinf o thechapter fortoc forhead FA title eee eee Code hook into an appendix chapter memappchapstarinfof fortoc niet Code hook into an appendix chapter memapppageinf o title Code hook into Nappendixpage sss Mnemapppagestarinfoi titl k sss mme Code hook into Nappendixpage COMMAND SUMMARY Xmembicaptionintfot type thetype fortoc1 title1 name2 title2 Code hook into membicaption membionenumcaptioninfof type thetype fortocl titlel name2 o A A a I A ERHEBEN Code hook into membionenumcaption membitwonumcaptioninfof type thetype fortocl X titlel name2 DEDI Ie S RET 21 EE Code hook into membitwonumcaption membookinf of thebook fortoc title cce Code hook into book membookstarinfof title Code hook into book 1 0 0 0 cc cece eee eee eee memcaptio
77. o 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 51 7 MISCELLANEOUS 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 fi if insert else addtobot Mil renewcommand addtobot getfpsbit 4 relax ifodd tempcnta flsetnum botnum ifnum botnum gt z Otempswafalse flcheckspace botroom botlist if tempswa global maxdepth z flupdates botnum botroom botlist inserttrue global floatatbottrue fi fi fi let p wold output outputpage renewcommand Coutputpage 7 p wold output global floatatt
78. o 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 pagenotesubhead 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 36 Endnotes foottopagenote pagetofootnote You can have both footnotes and endnotes
79. ok 0 B backmatter baselineskip Gong 15116 9 10 43 beforebookskip 12 bef orepartskip 1 beforePoemTitleskip length 19 Nbegintheglossaryhook 0 bianchi chapterstyle 16 Bianchi Stefano book 11 12 book pagestyle 12 book 11 57 Ybookblankpage 12 bookmark bookname booknamef ont booknamenum booknumfont 73 booktabs package DisemulatePackage booktabs package Pal booktitlefont bringhurst chapterstyle brotherton chapterstyle Ybvendof page 40 C calc package caption captionnamefont 47 capt N 49 ccaption packag ee EA cftappendixname 21 21 Ncftbeforebookskip length 24 cftbookaftersnum cftbookaftersnumb Ve potions Bie cftbookfont cftbookindent length 24 cftbookleader asp cftbooknumwidth length DA cftbookpagefont Ncftbookpresnum cftchaptername cftfigurename cftparagraphname 22 cftpartname cf tsectionname 22 cftsubparagraphname cftsubsectionname cftsubsubsectionname P2 cftt ablename 2 Ychangeglossactual 29 changeglossnum 29 changeglossnumf ormat 29 Ychangeglossref 29 chappell chapterstyle chapter pagestyle chapt er 57 chapterbib package xiii chapternane D i chapterstyle bianchi 74 bringhurst brotherton chappell 15 culver 16 dash 17 er default 16 16 17 demo demo2 16 17 ell
80. ome code for when xindy will be used Xxindyindex Put the xindyindex declaration in the 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 makeglossary 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 printglossary L file To print a glossary call printglossary 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 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 writte
81. opfalse 52 General 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 memgobblet text The memjustarg macro just uses its argument and is defined as newcommand memjustarg 1 441 The memgobble 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 William Adams donated code to generate trim marks in the style of Quark Xpress reg ister marks quarkmarks registrationColour mark Following the declaration quarkmarks any trim marks will be in the style of Quark Xpress registration marks Each mark is typeset using registrationColour The de fault definition is simply newcommand registrationColour 1 1 but you can change that to say print the marks in a particular color
82. or f lushbottom pages 1n 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 whereas with integer arithmetic the result is 9 not 10 5 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 baselineskip 122 4pt 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 underful
83. otes us ea ed tt de EE Called by noteentry to finish the printing of an endnote preglossaryhook EEN Vacuous macro called after a glossary title is typeset Xprenoteinnote8 ita a aaa Called by noteentry to initialise the printing of an endnote printbookname vecina ra exon rd eese ih meinen Prints the Nbookname using the Nbooknamef ont Mee Prints the book number using the booknumf ont Aprintbooktitlelititle Putitas lr Gate eee is Prints the book title using the Nbooktitlefont printglossary file r sa ad CIR EO DEREN Rat Prints the glossary from file jobname gls or file gls printpageinnotes pagenum cesses m een Prints an endnote s page reference number printpagenotes cece cece cnet ee ee e mech esee e nn Input the pagenote ent file for printing then close it to any more notes Mprintpagenotes nee een Input the pagenote ent file for printing then empty it ready for further notes XprintPoemlitlenonum ive cya eed eer ara ae Used instead of printPoemTitlenum for an unnumbered PoemTitle printPoemTitlenum Typesets the number for a PoemTitle printPoemTitletitied tile Farc ena Typesets the title of a PoemTitle printtime Prints the time of day using a 24 hour clock 0 0 eee eee printtime Prints the time of day using a 12 hour clock oooocooccocccoccm m gu rkmarks 2e else dd Declaration setting trim marks to be in the style of Quark Xpres
84. out 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 modifying the textheight according to algorithm but does not implement the layout Following a suggestion by Morten H gholm if you use the calc package 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 b is the Nbaselineskip 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 f
85. pour out my Spirit on all people NN Your sons and daughters will prophesy NN ldots NN And everyone who calls ldots end verse No this is what was spoken by the prophet Joel Tn the last days God says T will pour out my Spirit on all people Your sons and daughters will prophesy H And everyone who calls vleftmargin 1The problem was presented to me by Matthew Ford who also provided the example text 41 5 BOXES AND ENVIRONMENTS 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 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 verselinenumberslef
86. pterstyle I created for Guy Verville It is a single line large centered style with rules above and below Unlike my posted version this one properly caters for unnumbered chapters 3 4 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 Xpoemtitlemarkt forhead Xpoemtitlepstyle The PoemTitle 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 pagestylefheadings thispagestylefempty PoemTitle forhead title poemtitlestarmark forhead poemtitlestarpstyle 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 unstarre
87. ptions for the package package begin DoubleSpace Environment form of NDoubleSpacing DoubleSpacing Declaration doubling the baselineskip oooorcooorcooooc 9 EE A raggedleft large sanserif chapterstyle with the number in the margin An L shaped rule separates the number and title lines eminnershapet shape 2 nee an Font shape for emphasized text within emphasized text XEmulatedPackagel package date eee Claim that the package package has been loaded XEmulatedPackageWithOptionst optionlist package Y L date Claim that the package package has been loaded with options optionlist everylistparindent sor sprosser daus ia EEn REEE EE CEEE ees Default value for listparindent the paragraph indentation in a list environ ment V firmlists cece a cence a a a a r A E a ENA Declaration for decreased vertical spacing in 1ist based environments Some addi tional space may be added before and after KE ER EE Declaration for decreased vertical spacing in 1ist based environments There is no additional space before or after KEE Declaration which turns footnotes into pagenotes KEE Declaration for TeX to minimise interword space variations in justified text lines Bi ai a a il a a A raggedright large bold two line chapterstyle with rules above and below glossary file C key A term description sees Adds term
88. r then there will be a report that amacro has already been defined 1 Discard memoir s definition documentclass memoir let amacro undefined or relax undefine memoir s definition usepackage pack and pack s version of amacro is used from now on 2 Discard pack s definition documentclass memoir MletNnemamacroNamacro save memoir s definition MletNamacroNundef ined usepackage pack MletNamacroNnemamacro 4 restore memoir s definition and memoir s version of amacro is used from now on 3 Keep both definitions documentclass memoir MletNnemamacroNamacro save memoir s definition MletNamacroNundef ined usepackage pack and after this use memamacro when you need memoir s version and amacro when you want to use pack s definition But this solution doesn t always work as you might not know when the particular versions must be used or it is impossible to partition the uses A last resort is to ask the authors that one or the other macro names be changed however for good reasons neither may be willing to do this I was spurred to write the above following the thread Typesetting algorithms in memoir started by Filip Militic on CTT 2006 12 12 where he had problems because both the alg and algorithm packages use the float package which defines newfloat which is also de fined by memoir There was a response by Danie Els who said that the algorithm package actually consisted of two packages
89. rent definition EE pi SA AAA AA AA sant Pn A single line chapterstyle in large italics with the number set in the righthand mar gin The title and or number may be colored The graphicx is required and the color package if you want to color PlainPoem itle iii dis td att Meats aon Declaration for NPoemTitle to be unnumbered pinane sanieren A a ia ai Abbreviation for post meridiem used in printtime default am Npncliap eieiei ENEE Ego ibi pesce Vel eaa Pc eb eu Chapter title for pagenotesubhead Defaults to the ToC entry NA A A ulcere ad uc po Vale ese diete edat v wed vete d teet Starred chapter title for pagenotesubhead Defaults to the regular title PoemTitle fortoc forhead title ee Typesets the title for a poem and puts it into the ToC PoemTitle fortoc forhead title eee Typesets an unnumbered title for a poem but does not add it to the ToC PoemTitlefont Font for the text of poem title morsa teh eret en bx nnt APoemTIitleheadstart iue reves un dE t rU AE aie Called at the start of typesetting a NPoemTitle Apoomt plenas OUI EE Used to set marks for a NPoemTitle 66 PoemTitlenumfont Font for the number of a poem Die poemtitlepstyle Page style for a PoemTitle cece eee NXpoentitlestarmarkl orheud E eere ei be rbd ieee Used to set marks for a PoemTitlex poemtitlestarpstyle Page style for a NPoemTitle ssessssssssn postnoteinn
90. rol over the visual appearance of academic theses like them to be double spaced This of course will make the work harder to read but perhaps that is the purpose or maybe they have stock shares in papermills and lumber companies The following is heavily based on the setspace package Tob00 but the names have been changed to avoid any clashes Like the nonzero parskip the baselineskip rears its head in many places and again it is hard for a package to get at the internals of the overlying class and kernel code This is not to say that all is well with trying to deal with it at the class level OnehalfSpacing DoubleSpacing The declaration OnehalfSpacing increases the spacing between lines so that they appear to be double spaced especially to the thesis layout arrbiters while the declaration DoubleSpacing really doubles the spacing between lines which really looks bad but Except that all values except zero are unreasonable 5I certainly found them so when I was having to read them before examining the candidates for their degrees The writers of the regulations which were invariably single spaced seemed to be immune to any suggestions 2 PAGE LAYOUT if you have to use it it is there The spacing in footnotes and floats e g captions is unaltered which is usually required once the controllers see what a blanket double spacing brings SingleSpacing SetSingleSpace factor The
91. rticle 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 renewcommand printchaptername renewcommand chapternamenum renewcommand afterchapternum renewcommand printchapternum beginfminipage t baselineskip b headindent lWhich I haven t seen 14 Chapter styles vspace 0Opt chapnumfont figureversion lining thechapter end minipage renewcommand printchaptertitle 1 hfill beginfminipage t rig
92. ry with glossitem The delim_0 says that memglonum sould be put between the end of the entry text and the page number Finally encap_suffix requests to be put after any encapsulated page number 26 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 f 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 a Character denoting a new subitem level actual c Character denoting that the following text is to appear in the actual index file encap c db 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 A 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 land 4 2 with the exception of the output file page number setting keywords RAW INPUT DATA wrglom m
93. s registration marks registrationColourf mark oo cece ccc cee cece nee mee Command used by quarkmarks for typesetting a registration mark renewleadpage page style cmdname title eese Redefines the cmdname see newleadpage renewleadpage page style cmdname title 10 cece eee eee Redefines the cmdname see newleadpage KE RE Makes chapter and lower level headings replicate the equivalent article class head ings reparticle Chapter style replicating a section in an article COMMAND SUMMARY RequireAtEndClass class code 0 0 0 eese Inserts code just after the class class is used or immediately if class has already been used RequireAtEndPackagef pack code esses Inserts code just after the pack package is used or immediately if pack has already been used setDisplayskipStretch factor esses Increase the display skips by gmetafactor setfootnoterule fill space H width FA thick E cece eee eee Defines the footnote rule with space between note text and the rule width width and thickness thick The optional fill is inserted just before the rule is drawn setsTdeappost pos F nu een nen Declaration of the vertical position of a sidecaption with respect to the float setsidebarheight height Sets the height of sidebars 0008 setsidebarst hsep H width FX vsep top
94. section paragraph subparagraph O14 GO H ra OF 11 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 11 cleardoublepage thispagestyle book bef orebookskip print bookname booknamenum booknumf ont thebook midbookskip printparttitle 1 bookmark 1 afterpartskip bef orebookskip midbookskip afterbookskip These commands are called before any part of the title is set between typesetting the num ber if any and the title and after the title has been set bookname printbookname booknamefont booknamenum bookname defined as newcommmand bookname Book is the name for a book printbookname prints the Nbookname using the booknamef ont which is defined as newcommand booknamefont normalfont huge bfseries This is followed by booknamenum
95. sep Li font height Sets the several sidebar parameters setsidecaps sep width 0 0 ccc cece cee cee cee e eee e ene mh Sets the lengths sidecapsep and sidcapwidth to the given values SetSingleSpacet factor Change the baselineskip by factor oo ooo NshowbrlHsOff EE If the showtrims option has been used this declaration switches the trim marks off XShowtrimnsoff ke ood rd ted ert UE If the showtrims option has been used this declaration switches the trim marks on It is the default sidebarmargin margin Set the margin s for sidebars sssuue sidebartopsep ed dei cid Length controlling vertical position of the top of sidebars sidecapfloatwidth length 0 ccc eee cee cen teen e Macro holding the width of a float with a sidecaption sidecapmargin margin Sets the the margin for sidecaptions VE DEE Vertical distance added to the default vertical placement of a sidecaption SIASCAPSEp MT Length specifying the horizontal separation between a sidecaption and the float eidecapstyle Style settings for a sidecaption sinus sie ci percata begin sidecaption fortoc title label eese Environment for setting a sidecaption VT EE Length specifying the maximum width of a sidecaption begin sidecontcaption title label 0 eee Environment for setting a continued sidecaption begin sidelegend title label
96. sion firmlists reduces the space before and after a list a little below that for the unstarred declaration The regular list layout can be set at any time by issuing the defaultlists declara tion This document is 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 5 6 Vertical minipage The minipage environment puts its contents into a box which TeX treats as though it were a single character More fully TeX typesets the material in the box but then ignores the box content when positioning the result You can put two or more minipages on a single line with text between them If you have a paragraph of text then a minipage followed by another paragraph of text TeX ignores the box contents when deciding on the space above and below the minipage If the baselineskip is larger than normal then the spacing around the minipage will not match the general leading begin vminipage pos height innerpos width end vminipage The vminipage environment is a vertical form of the minpage environment It forms a paragraph by itself with the correct spacing between it and the previous and following paragraph It takes the same arguments as does minipage including the pos optional argument which has no effect 2 included the pos argument so that it would be a simple edit to convert minipage to vminipage without havin
97. ssaryname 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 onecolglossarytrue onecolglossaryfalse 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
98. t begin sidenamedlegend L fortoc 1X 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 Well nearly always See the overridescapmargin command later 46 Side captions 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 7 fi 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 height The command overridescapmargin will force the following caption into the margin you specify which can only be
99. t declaration will set any subsequent line numbers to the left of the lines 5 5 Lists Normally within a 1ist 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 label layout Nitem end list Xlistparindent 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 Ntightlist 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 42 Vertical minipage The firmlists declaration sets the vertical spacing in lists midway between their default values and those for tightlists The starred ver
100. tentry 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 say hanging paragraphs try renewcommand prenoteinnotes par noindent hangindent 2em noteidinnotes notenum 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 35 4 FRONT AND REAR newcommand idtextinnotes 1 1 space newcommand notenuminnotes 1 normalfont 1 space pageinnotes 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 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 addtonotes text The macro addtonotes inserts text into the ent file For example before the first note in a chapter addtonotes is used t
101. tion that strikes me as particularly desirable I think what I would really like is that widows i e left over single lines that begin on the following page are resolved not by pushing one extra line from the same paragraph also onto the next page but by stretching the textheight to allow this one extra at the bottom of the same page iaw from CTT widow handling May 2006 As so often happens Donald Arseneau came up with a solution 3Knuth uses the term club instead of the normal typographers terminology 2 PAGE LAYOUT sloppybottom The declaration sloppybottom lets TeX put an extra line at the bottom of a page to avoid a widow on the following page The topskip must have been increased beforehand for this to work a 60 increase is reasonable and this will push the text lower on the page Run checkandfixthelayout after the change which may reduce the number of lines per page For example in the preamble setlength topskip 1 6 topskip checkandfixthelayout sloppybottom The following is the generally suggested method of eliminating widows and orphans but it may well result in some odd looking pages especially if raggedbottom is not used clubpenalty 10000 widowpenalty 10000 raggedbottom The late Michael Downes provided the following from CTT widow orphan control pack age for 2e 1998 08 31 For what it s worth here are the penalty values that I use when I don t want
102. ts in a horizontal rule being 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 40 Verse has been used You may change the macro to something that better matches your needs if necessary 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 it is 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 vleftofline 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 MA In the last days God says NN I will pour out my Spirit on all people NN Your sons and daughters will prophesy AN ldots NN And everyone who calls ldots 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 vleftofline I will
103. ts the number centered and in a large font def printPoemTitlenum PoemTitlenumfont thepoem newcommand PoemTitlenumfont normalfont large centering The definition of printPoemTitlenonum which is used when there is no number is simply def printPoemTitlenonum NafterPoemTitlenum 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 0pt 19 3 DOCUMENT DIVISIONS 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 20 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 LaTeX commands
104. tsubparagraphname 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 Lob 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 cftchapterafterpnum cftparfi
105. 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 12 Part headings 3 2 Part headings Xpartmark title The Npart 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 newleadpage page style cmdname H title newleadpage page style cmdname title renewleadpage page style cmdname H title renewleadpage page style cmdname M 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
106. with title and the page style pagestyle if given otherwise it uses the empty pagestyle newlistentry within cntr Hiecp FC leoel T E 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 21 vec s E EUR pep nt Declaration for no blank page to be output after a book title page noDisplayskipStretch No increased display skips hoglossaryintoc au p REEL EE ENEE ee er Declaration to prohibit adding glossary title to the ToC nonzeroparskip Sets the parskip to a not too terrible value 9 M opartblankpage Zeite Aere g e denken aaa Declaration for not following a part page with a blank one Mnotedivision cece cece eee eee Heading printed by the printnotes and Nprintnotes macros noteentry notenum H id text KA pagenum Y eese Typesets a pagenote with number notenum identifier id contents text created on page pagenum noteidinnotes notenum id esee eee Prints an endnote s number or id in the endnote listing noteinnotes text Prints the text of an endnote esses notenuminnotes num Prints an endnote s number ssssessessses NuotenunminnotesiUnim ds Typesets the number nun of a page note in the note listing EE notenumintext num

Download Pdf Manuals

image

Related Search

Related Contents

HP EliteDisplay S231d  doc eco-filtre  Apple 4400/200 PC Personal Computer User Manual  ix20 - Hyundai - Navigation.com  HVF 710-S - Titel/Inhalt  300 Series Manual  GSM-5000 Cellular Mobile Trainer  2 - Cristian Lay  scheda tecnica AARIA S  Samsung MX-J730 manual do usuário  

Copyright © All rights reserved.
Failed to retrieve file