forked from robjhyndman/MonashThesis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuqthesis.tex
149 lines (121 loc) · 4.4 KB
/
uqthesis.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
\documentclass{uqthesis}
%*********************************************
% Unofficial UQ Thesis Template for R Markdown
%*********************************************
% Be sure to observe the content of comments within the source code, in .tex files these are prefaced with a percentage symbol.
% In .Rmd files comments are enclosed by <!-- -->
% Most important instructions have been CAPITALISED.
% To uncomment an inactive command (if required) remove the % from in front of the command.
% Please see the README for more information.
% This file loads the necessary packages, sets the page styles, and defines any required macros.
% Edit this only if you are comfortable with LaTeX.
% Other tweaks can be made in uqthesis.cls, but change these at your own risk!
% See README for version.
% You must have the memoir class installed. This should be installed automatically by tinytex
% when you first knit the thesis.
\input{LaTexPackages.tex}
%**********************************************
% Code to generate and formate listfiles output
% Ref: https://tex.stackexchange.com/questions/265726/embed-nicely-formatted-listfiles-into-document
%**********************************************
\listfiles % initialize
\ExplSyntaxOn
\NewDocumentCommand{\printfilelist}{}
{\setlength{\LTleft}{0pt}
\pagestyle{empty}
\footnotesize
\begin{longtable}{@{} >{\ttfamily}l >{\raggedright}p{.6\textwidth} @{}}
\nobbz_print_filelist:
\end{longtable}
}
\tl_new:N \l_nobbz_filelist_body_tl
\cs_new_protected:Npn \nobbz_print_filelist:
{
\clist_map_inline:cn { @filelist }
{
\nobbz_print_fileinfo:n { ##1 }
}
\tl_use:N \l_nobbz_filelist_body_tl
}
\cs_new_protected:Npn \nobbz_print_fileinfo:n #1
{
\regex_match:nnT { \.(sty|cls)\Z } { #1 }
{
\nobbz_print_pkginfo:n { #1 }
}
}
\cs_new_protected:Npn \nobbz_print_pkginfo:n #1
{
\tl_put_right:Nx \l_nobbz_filelist_body_tl
{
\exp_not:n { #1 }
&
\exp_not:v { ver@#1 }
\exp_not:N \tabularnewline
}
}
\ExplSyntaxOff
%***********************************************
% Bibliography Package
% Default: Numbered references in citation order
% This code moved from uqthesis.cls to here so
% that YAML metadata can be used to define
% bibliography options. Doesn't seem to work if
% code is in .cls file.
%***********************************************
%Ref: Pandoc Latex Template (https://github.com/jgm/pandoc-templates/blob/master/default.latex)
$if(biblatex)$
\usepackage[$if(biblio-style)$style=$biblio-style$$endif$]{biblatex}
\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}
$for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
%Ref: Rob Hyndman, Monash University
%Overrides chosen Biblatex style (Is this Required? OK?)
%%\DeclareFieldFormat{url}{\url{#1}}
%%\DeclareFieldFormat[article]{pages}{#1}
%%\DeclareFieldFormat[inproceedings]{pages}{\lowercase{pp.}#1}
%%\DeclareFieldFormat[incollection]{pages}{\lowercase{pp.}#1}
%%\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}
%%\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
%%\DeclareFieldFormat[article]{title}{\MakeCapital{#1}}
%%\DeclareFieldFormat[article]{url}{}
%%%\DeclareFieldFormat[book]{url}{}
%%%\DeclareFieldFormat[inbook]{url}{}
%%%\DeclareFieldFormat[incollection]{url}{}
%%%\DeclareFieldFormat[inproceedings]{url}{}
%%\DeclareFieldFormat[inproceedings]{title}{#1}
%%\DeclareFieldFormat{shorthandwidth}{#1}
%%%\DeclareFieldFormat{extrayear}{}
%%
%%% No dot before number of articles
%%\usepackage{xpatch}
%%\xpatchbibmacro{volume+number+eid}{\setunit*{\adddot}}{}{}{}
%%
%%% Remove In: for an article.
%%\renewbibmacro{in:}{%
%% \ifentrytype{article}{}{%
%% \printtext{\bibstring{in}\intitlepunct}}}
%%
%%%Get rid of months in citations
%%\AtEveryBibitem{\clearfield{month}}
%%\AtEveryCitekey{\clearfield{month}}
%%\DeclareDelimFormat[cbx@textcite]{nameyeardelim}{\addspace}
% ********************************************************************
% DO NOT EDIT: Variables below come from YAML metadata in Index.Rmd.
% ********************************************************************
\title{$title$}
\author{$author$}
\currentdegrees{$current_degrees$}
\orcid{\href{$orcid_url$}{$orcid_id$}}
\date{$submission_year$}
\submittedfor{$degree_type$}
\school{$school_name$}
% ********************************************************************
% Begin the document
\begin{document}
\frontmatter
% R Markdown files are inserted here.
$body$
\end{document}