|
27 | 27 | \makeatletter
|
28 | 28 | \xapptocmd{\@subtitle}{\par}{}{}
|
29 | 29 | \makeatother
|
30 |
| - \else |
| 30 | +\else |
31 | 31 | \let\yoursubtitle\par\vspace{1em}
|
32 | 32 | \fi
|
33 | 33 |
|
|
42 | 42 | % from the date, and display them in the title.
|
43 | 43 | \DTMsavedate{mydate}{\yourdate}
|
44 | 44 | \makeatletter
|
45 |
| - \renewcommand{\yourdate}{% |
46 |
| - \DTMenglishmonthname{\@dtm@month}\\ |
47 |
| - \@dtm@year |
48 |
| - } |
| 45 | +\renewcommand{\yourdate}{% |
| 46 | + \DTMenglishmonthname{\@dtm@month}\\ |
| 47 | + \@dtm@year |
| 48 | +} |
49 | 49 | \makeatother
|
50 | 50 |
|
51 | 51 | % This add some information between
|
52 | 52 | % your name and the date.
|
53 | 53 | \makeatletter
|
54 |
| - \pretocmd{\yourdate}{% |
55 |
| - \vspace{1em} |
56 |
| - Submitted to the Faculty of The Graduate School\\ |
57 |
| - of Augusta University in partial fulfillment\\ |
58 |
| - of the Requirements of the Degree of\\ |
59 |
| - \iftoggle{ms}{Master of Science}{Doctor of Philosophy} % This toggle will display either |
60 |
| - % "Master of Science" or "Doctor of Philosophy" |
61 |
| - % based on the choice made in info.tex. |
62 |
| - \vspace{1em}\par |
63 |
| - }{}{} |
| 54 | +\pretocmd{\yourdate}{% |
| 55 | + \vspace{1em} |
| 56 | + Submitted to the Faculty of The Graduate School\\ |
| 57 | + of Augusta University in partial fulfillment\\ |
| 58 | + of the Requirements of the Degree of\\ |
| 59 | + \iftoggle{ms}{Master of Science}{Doctor of Philosophy} % This toggle will display either |
| 60 | + % "Master of Science" or "Doctor of Philosophy" |
| 61 | + % based on the choice made in info.tex. |
| 62 | + \vspace{1em}\par |
| 63 | +}{}{} |
64 | 64 | \makeatother
|
65 | 65 |
|
66 | 66 | % This add copyright information,
|
67 | 67 | % abusing the "publisher" field.
|
68 | 68 | \makeatletter
|
69 |
| - \publishers{% |
70 |
| - \textcopyright~\@dtm@year{} by \yourname% |
71 |
| - \ifdefined\yourlicence{\\[.1em] \yourlicence} |
72 |
| - \else |
73 |
| - \relax |
74 |
| - \fi |
75 |
| - \pagenumbering{gobble} % No page number on next page. |
76 |
| - } |
| 69 | +\publishers{% |
| 70 | + \textcopyright~\@dtm@year{} by \yourname% |
| 71 | + \ifdefined\yourlicence{\\[.1em] \yourlicence} |
| 72 | + \else |
| 73 | + \relax |
| 74 | + \fi |
| 75 | + \pagenumbering{gobble} % No page number on next page. |
| 76 | +} |
77 | 77 | \makeatother
|
78 | 78 |
|
79 | 79 | %%%%%%%%%%%
|
|
102 | 102 | % No space above chapters.
|
103 | 103 | % https://tex.stackexchange.com/a/231940
|
104 | 104 | \RedeclareSectionCommand[
|
105 |
| - beforeskip=0pt |
| 105 | + beforeskip=0pt |
106 | 106 | ]{chapter}
|
107 | 107 |
|
108 |
| -%%%%%%%%%%%%%%%%%%%%%%% |
109 |
| -% Headers and footers % |
110 |
| -%%%%%%%%%%%%%%%%%%%%%%% |
111 |
| - |
112 |
| -% We only want page numbers, no headers. |
113 |
| -\pagestyle{plain} |
114 |
| -% No page number for the first part of the document. |
115 |
| -\thispagestyle{empty} |
116 |
| - |
117 |
| - |
118 | 108 | %%%%%%%%%%
|
119 | 109 | % Titles %
|
120 | 110 | %%%%%%%%%%
|
|
132 | 122 | pdfauthor={\yourname},
|
133 | 123 | pdflang={en},
|
134 | 124 | pdfkeywords={\yourkeywords},
|
135 |
| - pdfauthor={\yourname} |
| 125 | + pdfauthor={\yourname}, |
| 126 | + plainpages=false % Not sure this is helpful -- I thought it would help with https://github.com/the-au-forml-lab/au_ccs_dissertation_template/issues/13 |
136 | 127 | }
|
137 | 128 | }
|
138 | 129 |
|
|
159 | 150 | % Spacing %
|
160 | 151 | %%%%%%%%%%%
|
161 | 152 |
|
162 |
| - |
163 | 153 | % Everything must be double spaced
|
164 | 154 | % "Double space" has multiple definitions,
|
165 | 155 | % we implement two options below, and use the
|
|
172 | 162 | \doublespacing
|
173 | 163 |
|
174 | 164 | % Option B:
|
175 |
| -% Uncomment lines with two % |
| 165 | +% Uncomment lines with two % to use. |
176 | 166 | % and comment Option A to use.
|
177 | 167 | %% \linespread{2}
|
178 | 168 | % But the sectionning commands
|
|
195 | 185 |
|
196 | 186 | \pretocmd{\dedication}{%
|
197 | 187 | \chapter*{Acknowledgements}
|
| 188 | + \pdfbookmark[0]{Acknowledgements}{toc} |
198 | 189 | \pagenumbering{gobble} % No page number
|
199 | 190 | \par % New paragraph
|
200 | 191 | {
|
|
212 | 203 | % https://tex.stackexchange.com/a/40547
|
213 | 204 | % https://tex.stackexchange.com/a/68227
|
214 | 205 | \makeatletter
|
215 |
| - \newenvironment{abstract}{% |
216 |
| - % At the beginning of the environment: |
217 |
| - \pagenumbering{gobble} % No page number. |
218 |
| - \chapter*{Abstract} |
219 |
| - { % This group must be single-spaced. |
220 |
| - \linespread{1} |
221 |
| - \textsc{\yourname} \\ |
222 |
| - \@title \\ |
223 |
| - (Under the direction of \textsc{\youradvisor}) |
224 |
| - } |
225 |
| - \\[3em] |
226 |
| - }% |
227 |
| - {% |
228 |
| - % At the end of the environment: |
229 |
| - \\[3em] \textsc{Keywords}: \StrSubstitute{\yourkeywords}{,}{\textperiodcentered} % We list the keywords. |
230 |
| - \clearpage |
231 |
| - \pagestyle{empty} |
232 |
| - % The table of content |
233 |
| - % follows immediately (and automatically) |
234 |
| - % the abstract. |
235 |
| - \renewcaptionname{english}% |
236 |
| - {\contentsname}% |
237 |
| - {Table of Contents} % We rename the table of contents. |
238 |
| - \tableofcontents % Table of contents. |
239 |
| - \iftotaltables % If there are tables in the document… |
240 |
| - \listoftables % …write out the List of Tables |
241 |
| - \fi |
242 |
| - \iftotalfigures % If there are figures in the document… |
243 |
| - \listoffigures % …write out the List of Figures |
244 |
| - \fi |
245 |
| - \iftotallstlistings % If there are listings in the document… |
246 |
| - \lstlistoflistings % …write out the List of Listings. |
247 |
| - \fi |
| 206 | +\newenvironment{abstract}{% |
| 207 | + % At the beginning of the environment: |
| 208 | + \chapter*{Abstract} |
| 209 | + \pdfbookmark[0]{Abstract}{abs} % We add it to the pdf toc |
| 210 | + { % This group must be single-spaced. |
| 211 | + \linespread{1} |
| 212 | + \textsc{\yourname} \\ |
| 213 | + \@title \\ |
| 214 | + (Under the direction of \textsc{\youradvisor}) |
| 215 | + } |
| 216 | + \\[3em] |
| 217 | +}% |
| 218 | +{% |
| 219 | + % At the end of the environment: |
| 220 | + \\[3em] \textsc{Keywords}: \StrSubstitute{\yourkeywords}{,}{\textperiodcentered} % We list the keywords. |
| 221 | + \clearpage |
| 222 | + % The table of content |
| 223 | + % follows immediately (and automatically) |
| 224 | + % the abstract. |
| 225 | + \renewcaptionname{english}% |
| 226 | + {\contentsname}% |
| 227 | + {Table of Contents} % We rename the table of contents. |
| 228 | + \hypertarget{tableofcontents}{}\bookmark[level=chapter,dest=tableofcontents]{\contentsname} |
| 229 | + \tableofcontents % Table of contents. |
| 230 | + \iftotaltables % If there are tables in the document… |
| 231 | + \hypertarget{listoftables}{}\bookmark[level=chapter,dest=listoftables]{\listtablename} %…we add the List of Tables to the pdf toc. |
| 232 | + \listoftables % …and write it. |
| 233 | + \fi |
| 234 | + \iftotalfigures % If there are figures in the document… |
| 235 | + \hypertarget{listoffigures}{}\bookmark[level=chapter,dest=listoffigures]{\listfigurename} % …and add it to the pdf toc. |
| 236 | + \listoffigures % …write out the List of Figures |
| 237 | + \fi |
| 238 | + \iftotallstlistings % If there are listings in the document… |
| 239 | + \renewcommand{\lstlistlistingname}% |
| 240 | + {List of Listings} % …we rename the simple "Listings" to "List of Listings" |
| 241 | + % https://stackoverflow.com/a/2709986 |
| 242 | + \hypertarget{listoflistings}{}\bookmark[level=chapter,dest=listoflistings]{\lstlistlistingname} %…we add the List of Tables to the pdf toc. |
| 243 | + \lstlistoflistings % …write out the List of Listings. |
| 244 | + \fi |
248 | 245 | }
|
249 | 246 | \makeatother
|
250 | 247 |
|
|
259 | 256 | \AtEndPreamble{
|
260 | 257 | \DeclarePrintbibliographyDefaults{heading=bibintoc} % We add the references in the table of contents
|
261 | 258 | \defbibheading{bibliography}[\bibname]{%
|
262 |
| - \chapter*{#1}% |
263 |
| - \markboth{#1}{#1}} |
| 259 | + \chapter*{#1}% |
| 260 | + \markboth{#1}{#1}} |
264 | 261 | }
|
265 | 262 | % https://tex.stackexchange.com/a/544718
|
266 |
| -% We rename the simple "Listings" to "List of Listings" |
267 |
| -\renewcommand{\lstlistlistingname}{List of Listings} |
268 |
| -% https://stackoverflow.com/a/2709986 |
| 263 | + |
269 | 264 |
|
270 | 265 | % Counters for figures, tables and listings
|
271 | 266 | % are global, and not per chapter.
|
|
280 | 275 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
281 | 276 |
|
282 | 277 | \ifdefined\yourmention
|
283 |
| -\usepackage{accsupp} % We make it impossible to select the mention |
284 |
| -% cf. https://tex.stackexchange.com/a/309878 |
285 |
| -\usepackage{draftwatermark} |
286 |
| -\SetWatermarkText{\BeginAccSupp{method=escape,ActualText={}}\yourmention\EndAccSupp{}} |
287 |
| -\SetWatermarkScale{2} |
288 |
| -\SetWatermarkColor{augustagrey!20} |
| 278 | + \usepackage{accsupp} % We make it impossible to select the mention |
| 279 | + % cf. https://tex.stackexchange.com/a/309878 |
| 280 | + \usepackage{draftwatermark} |
| 281 | + \SetWatermarkText{\BeginAccSupp{method=escape,ActualText={}}\yourmention\EndAccSupp{}} |
| 282 | + \SetWatermarkScale{2} |
| 283 | + \SetWatermarkColor{augustagrey!20} |
289 | 284 | \fi
|
0 commit comments