Using LATEX to Write a PhD Thesis Version 1.3 Nicola L. C. Talbot Dickimaw Books www.dickimaw-books.com 16th March, 2013 Previous Next First Last Back Forward Summary Index Copyright©2007NicolaL.C.Talbot Permissionisgrantedtocopy,distributeand/ormodifythisdocument under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no InvariantSections,noFront-CoverTexts,andoneBack-CoverText: “Ifyou choosetobuyacopyofthisbook,DickimawBooksasksforyoursupport throughbuyingtheDickimawBookseditiontohelpcovercosts.” Acopy ofthelicenseisincludedinthesectionentitled“GNUFreeDocumentation License”. http://www.dickimaw-books.com/ ThebaseURLforthisdocumentis: latex/thesis/ Previous Next First Last Back Forward Summary Index Contents Abstract ix 1 Introduction 1 1.1 BuildingYourDocument . . . . . . . . . . . . . . . . . . . . . 5 1.1.1 LaTeXmk. . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1.2 Arara . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 Getting Started 25 3 SplittingaLargeDocumentintoSeveralFiles 33 4 Formatting 41 4.1 ChangingtheDocumentStyle . . . . . . . . . . . . . . . . . . 41 4.2 ChangingthePageStyle . . . . . . . . . . . . . . . . . . . . . 42 4.3 Double-Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.4 ChangingtheTitlePage. . . . . . . . . . . . . . . . . . . . . . 48 Previous Next First Last Back Forward Summary Index i Contents 4.5 ListingsandOtherVerbatimText . . . . . . . . . . . . . . . . 49 4.6 Tabbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 4.7 Theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 amsthm 4.7.1 The Package . . . . . . . . . . . . . . . . . . . . . 70 ntheorem 4.7.2 The Package . . . . . . . . . . . . . . . . . . . . 78 4.8 Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 4.9 FormattingSIUnits . . . . . . . . . . . . . . . . . . . . . . . . . 92 5 Generating a Bibliography 96 5.1 CreatingaBibliographyDatabase . . . . . . . . . . . . . . . . 97 5.1.1 JabRef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 5.1.2 Writingthe.bibFileManually. . . . . . . . . . . . . . . 116 5.2 BibTeX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.2.1 Author–YearCitations . . . . . . . . . . . . . . . . . . . . 131 5.2.2 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 133 5.3 Biblatex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 5.3.1 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 147 6 Generating Indexes and Glossaries 148 6.1 UsinganExternalIndexingApplication . . . . . . . . . . . . 149 makeidx 6.1.1 CreatinganIndex( package) . . . . . . . . . . . 150 Previous Next First Last Back Forward Summary Index ii Contents 6.1.2 Creating Glossaries, Lists of Symbols or Acronyms glossaries ( package) . . . . . . . . . . . . . . . . . . . . . . 164 6.2 UsingLATEXtoSortandCollateIndexesorGlossaries(datagidx package). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 A General Advice 207 A.1 TooManyUnprocessedFloats . . . . . . . . . . . . . . . . . . 207 A.2 GeneralThesisWritingAdvice. . . . . . . . . . . . . . . . . . 209 Bibliography 215 Acronyms 219 Summary of Commands and Environments 220 Index 256 GNU Free Documentation License 266 History 283 Previous Next First Last Back Forward Summary Index iii List of Figures 1.1 SelectingpdfLaTeXfromtheDrop-DownMenu. . . . . . . . 7 1.2 SelectingBibTeXfromtheDrop-DownMenu . . . . . . . . . 8 1.3 AddingMakeglossariestothelistoftoolsinTeXworks . . . 10 1.4 TeXwork’sPreferencesDialogBox . . . . . . . . . . . . . . . . 12 1.5 AddingLaTeXmkintheTeXWorksToolConfigurationDialog 13 1.6 LaTeXmkToolSelectedinTeXworks . . . . . . . . . . . . . . 16 1.7 AraraInstaller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.8 AddingAraraintheTeXWorksToolConfigurationDialog . 19 1.9 UsingArarainTeXworks . . . . . . . . . . . . . . . . . . . . . . 22 4.1 PageHeaderandFooterElements . . . . . . . . . . . . . . . . 44 4.2 SampleTitlePage. . . . . . . . . . . . . . . . . . . . . . . . . . . 50 5.1 JabRef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 5.2 JabRefPreferences . . . . . . . . . . . . . . . . . . . . . . . . . . 100 5.3 JabRefDatabaseProperties . . . . . . . . . . . . . . . . . . . . . 101 Previous Next First Last Back Forward Summary Index iv ListofFigures 5.4 JabRef(SelectEntryType) . . . . . . . . . . . . . . . . . . . . . 103 5.5 JabRef(NewEntry) . . . . . . . . . . . . . . . . . . . . . . . . . . 104 5.6 JabRef(EnteringtheRequiredFields) . . . . . . . . . . . . . . 105 5.7 JabRef(EnteringOptionalFields) . . . . . . . . . . . . . . . . . 107 5.8 JabRef(AddinganArticle). . . . . . . . . . . . . . . . . . . . . . 108 5.9 JabRef(AddingaConferencePaper) . . . . . . . . . . . . . . . 111 5.10 JabRef(AddingEditorList) . . . . . . . . . . . . . . . . . . . . . 113 5.11 ImportingaPlainTextReference . . . . . . . . . . . . . . . . . 114 5.12 ImportingaPlainTextReference(SelectingaField) . . . . . 115 5.13 ImportingaPlainTextReference(FieldSelected). . . . . . . 117 5.14 JabRefAdvancedPreferences . . . . . . . . . . . . . . . . . . . 137 5.15 JabRefinBibLaTeXMode. . . . . . . . . . . . . . . . . . . . . . 138 5.16 JabRefinBibLaTeXMode(SelectEntryType) . . . . . . . . . 139 5.17 JabRefinBibLaTeXMode(SettingthePublicationDate). . . 140 Previous Next First Last Back Forward Summary Index v List of Tables 4.1 TheoremStyles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5.1 NameFormatsforBibliographicData . . . . . . . . . . . . . . 106 5.2 StandardBiBTeXentrytypes. . . . . . . . . . . . . . . . . . . . 119 5.3 StandardBiBTeXfields . . . . . . . . . . . . . . . . . . . . . . . 120 5.4 RequiredandOptionalFields. . . . . . . . . . . . . . . . . . . . 122 Previous Next First Last Back Forward Summary Index vi Listings 1 GettingStarted. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 thesis.tex 2 SplittingaLargeDocumentintoSeveralFiles( ) 36 intro.tex 3 SplittingaLargeDocumentintoSeveralFiles( ) 38 techintro.tex 4 SplittingaLargeDocumentintoSeveralFiles( ) 39 method.tex 5 SplittingaLargeDocumentintoSeveralFiles( ) 39 results.tex 6 SplittingaLargeDocumentintoSeveralFiles( ) 39 conc.tex 7 SplittingaLargeDocumentintoSeveralFiles( ) . 39 8 ChangingthePageStyle . . . . . . . . . . . . . . . . . . . . . 45 9 Double-Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 10 ChangingtheTitlePage. . . . . . . . . . . . . . . . . . . . . . 48 11 ListingsandOtherVerbatimText . . . . . . . . . . . . . . . . 58 amsthm 12 The Package . . . . . . . . . . . . . . . . . . . . . . . . 72 ntheorem 13 The Package. . . . . . . . . . . . . . . . . . . . . . . . 82 14 Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 15 BibTeX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 16 Author–YearCitations . . . . . . . . . . . . . . . . . . . . . . . 133 17 Biblatex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Previous Next First Last Back Forward Summary Index vii Listings makeidx 18 CreatinganIndex( package) . . . . . . . . . . . . . . 151 makeidx 19 CreatinganIndex( package) . . . . . . . . . . . . . . 159 glossaries 20 CreatingGlossaries,ListsofSymbolsorAcronyms( package). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 21 UsingLATEXtoSortandCollateIndexesorGlossaries(datagidx package). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Previous Next First Last Back Forward Summary Index viii