1
- % !TeX program = xelatex
2
- % !BIB program = bibtex
3
1
% Options for packages loaded elsewhere
4
2
\PassOptionsToPackage {unicode}{hyperref}
5
3
\PassOptionsToPackage {hyphens}{url}
6
- %
7
4
\documentclass [
8
5
12pt,
9
6
letterpaper,
10
7
oneside,
11
8
BCOR = 0 pt,
12
9
singlespacing = true]{scrbook}
10
+ \usepackage {xcolor }
11
+ \usepackage [top=1in, left=1.5in, right=1in, bottom=1in, truedimen,
12
+ twoside=false, bindingoffset=0pt, nohead]{geometry}
13
13
\usepackage {amsmath,amssymb }
14
- \usepackage {iftex }h
14
+ \setcounter {secnumdepth}{5}
15
+ \usepackage {iftex }
15
16
\ifPDFTeX
16
17
\usepackage [T1 ]{fontenc }
17
18
\usepackage [utf8 ]{inputenc }
24
25
\usepackage {lmodern }
25
26
\ifPDFTeX \else
26
27
% xetex/luatex font selection
27
- \setmainfont [Path=fonts/,Extension=.otf,UprightFont=*-regular,BoldFont=*-bold,ItalicFont=*-italic,BoldItalicFont=*-BoldItalic]{texgyretermes }
28
+ \setmainfont [Path=fonts/,Extension=.otf,UprightFont=*-regular,BoldFont=*-bold,ItalicFont=*-italic,BoldItalicFont=*-BoldItalic]{TeXGyreTermes }
28
29
\fi
29
30
% Use upquote if available, for straight quotes in verbatim environments
30
31
\IfFileExists {upquote.sty}{\usepackage {upquote }}{}
42
43
}{% if KOMA class
43
44
\KOMAoptions {parskip=half}}
44
45
\makeatother
45
- \usepackage {xcolor }
46
- \usepackage [top=1in, left=1.5in, right=1in, bottom=1in, truedimen,
47
- twoside=false, bindingoffset=0pt, nohead]{geometry}
48
46
\usepackage {listings }
49
47
\newcommand {\passthrough }[1]{#1}
50
48
\lstset {defaultdialect=[5.3]Lua}
61
59
\makesavenoteenv {longtable}
62
60
\usepackage {graphicx }
63
61
\makeatletter
64
- \def\maxwidth {\ifdim \Gin@nat@width >\linewidth\linewidth \else \Gin@nat@width \fi }
65
- \def\maxheight {\ifdim \Gin@nat@height >\textheight\textheight \else \Gin@nat@height \fi }
66
- \makeatother
67
- % Scale images if necessary, so that they will not overflow the page
68
- % margins by default, and it is still possible to overwrite the defaults
69
- % using explicit options in \includegraphics[width, height, ...]{}
70
- \setkeys {Gin}{width=\maxwidth ,height=\maxheight ,keepaspectratio}
62
+ \newsavebox\pandoc@box
63
+ \newcommand *\pandocbounded [1]{% scales image to fit in text height/width
64
+ \sbox\pandoc@box {#1}%
65
+ \Gscale@div\@tempa {\textheight }{\dimexpr\ht\pandoc@box +\dp\pandoc@box\relax }%
66
+ \Gscale@div\@tempb {\linewidth }{\wd\pandoc@box }%
67
+ \ifdim \@tempb\p@ <\@tempa\p@\let\@tempa\@tempb \fi % select the smaller of both
68
+ \ifdim \@tempa\p@ <\p@\scalebox {\@tempa }{\usebox\pandoc@box }%
69
+ \else \usebox {\pandoc@box }%
70
+ \fi %
71
+ }
71
72
% Set default figure placement to htbp
72
- \makeatletter
73
73
\def\fps@figure {htbp}
74
74
\makeatother
75
- \setlength {\emergencystretch }{3em} % prevent overfull lines
76
- \providecommand {\tightlist }{%
77
- \setlength {\itemsep }{0pt}\setlength {\parskip }{0pt}}
78
- \setcounter {secnumdepth}{5}
79
75
\ifLuaTeX
80
76
\usepackage [bidi=basic ]{babel }
81
77
\else
84
80
\babelprovide [main,import]{english}
85
81
\ifPDFTeX
86
82
\else
87
- \babelfont [english] {rm}{texgyretermes }
83
+ \babelfont {rm}[Path=fonts/,Extension=.otf,UprightFont=*-regular,BoldFont=*-bold,ItalicFont=*-italic,BoldItalicFont=*-BoldItalic]{TeXGyreTermes }
88
84
\fi
89
85
% get rid of language-specific shorthands (see #6817):
90
86
\let\LanguageShortHands\languageshorthands
91
87
\def\languageshorthands #1{}
88
+ \ifLuaTeX
89
+ \usepackage [english ]{selnolig } % disable illegal ligatures
90
+ \fi
91
+ \setlength {\emergencystretch }{3em} % prevent overfull lines
92
+ \providecommand {\tightlist }{%
93
+ \setlength {\itemsep }{0pt}\setlength {\parskip }{0pt}}
94
+ \usepackage [backend=biber ]{biblatex }
95
+ \addbibresource {./references/references.bib}
92
96
% The following package and toggle
93
97
% are needed to implement the switch
94
98
% between the PhD and MS templates.
703
707
% We recommend using the more modern ebproof over
704
708
% the more "traditional" bussproofs,
705
709
\usepackage {ebproof }
706
- \ifLuaTeX
707
- \usepackage {selnolig } % disable illegal ligatures
708
- \fi
709
- \usepackage [backend=biber ]{biblatex }
710
- \addbibresource {./references/references.bib}
711
- \IfFileExists {bookmark.sty}{\usepackage {bookmark }}{\usepackage {hyperref }}
710
+ \usepackage {bookmark }
712
711
\IfFileExists {xurl.sty}{\usepackage {xurl }}{} % add URL line breaks if available
713
712
\urlstyle {same}
714
713
\hypersetup {
748
747
\cleardoublepage
749
748
\pagenumbering {arabic}
750
749
751
- \hypertarget {introduction}{%
752
- \chapter {Introduction }\label {introduction }}
750
+ \chapter {Introduction }\label {introduction }
753
751
754
752
This document is a guide on how to use it (`` how meta!'' ), and its
755
753
structure does not reflect the structure of a Thesis: you will need to
@@ -781,8 +779,7 @@ \chapter{Introduction}\label{introduction}}
781
779
are indicated in such environments.
782
780
\end {description }
783
781
784
- \hypertarget {title-levels}{%
785
- \section {Title Levels }\label {title-levels }}
782
+ \section {Title Levels }\label {title-levels }
786
783
787
784
As indicated in the koma-script manual, the class
788
785
\passthrough {\lstinline !scrbook !} that is used for this document has
@@ -808,28 +805,23 @@ \subsubsection{Test}
808
805
the level of heading.
809
806
\end {description }
810
807
811
- \hypertarget {subsection}{%
812
- \subsection {Subsection }\label {subsection }}
808
+ \subsection {Subsection }\label {subsection }
813
809
814
810
This is a subsection.
815
811
816
- \hypertarget {subsubsection}{%
817
- \subsubsection {Subsubsection }\label {subsubsection }}
812
+ \subsubsection {Subsubsection }\label {subsubsection }
818
813
819
814
This is a subsubsection.
820
815
821
- \hypertarget {paragraph}{%
822
- \paragraph {Paragraph }\label {paragraph }}
816
+ \paragraph {Paragraph }\label {paragraph }
823
817
824
818
This is a paragraph.
825
819
826
- \hypertarget {sub-paragraph}{%
827
- \subparagraph {Sub-Paragraph }\label {sub-paragraph }}
820
+ \subparagraph {Sub-Paragraph }\label {sub-paragraph }
828
821
829
822
This is a sub-paragraph.
830
823
831
- \hypertarget {debugging}{%
832
- \section {Debugging }\label {debugging }}
824
+ \section {Debugging }\label {debugging }
833
825
834
826
If this template does not `` work'' as expected, feel free to
835
827
\href {https://github.com/aubertc/au_ccs_dissertation_template/issues}{open
@@ -838,9 +830,7 @@ \section{Debugging}\label{debugging}}
838
830
after having looked at \passthrough {\lstinline !aux/input.log !} as
839
831
(probably) indicated by latexmk.
840
832
841
- \hypertarget {references-and-bibliography}{%
842
- \chapter {References and
843
- Bibliography }\label {references-and-bibliography }}
833
+ \chapter {References and Bibliography }\label {references-and-bibliography }
844
834
845
835
Prepare your references using \LaTeX 's bibliography system
846
836
\href {http://www.bibtex.org/Using/}{\BibTeX }: this template uses by
@@ -861,7 +851,7 @@ \chapter{References and
861
851
\href {https://flamingtempura.github.io/bibtex-tidy/}{bibtex-tidy}.
862
852
863
853
The list of references is automatically inserted in
864
- \protect\hyperlink { chap:references} {the list of references},
854
+ \hyperref [ chap:references] {the list of references},
865
855
p.~\pageref {chap:references }. Use \LaTeX 's
866
856
\passthrough {\lstinline !\\cite !} command to insert references.
867
857
@@ -884,14 +874,13 @@ \chapter{References and
884
874
\href {https://pandoc.org/MANUAL.html\#links-1}{hyperlinks} in different
885
875
ways, including hyperlinks to this document\footnote {You may note that
886
876
the footnote number is itself a link.} using e.g.~the
887
- \protect\hyperlink { introduction} {link automatically added to all
888
- chapters}, following the convention described
877
+ \hyperref [ introduction] {link automatically added to all chapters},
878
+ following the convention described
889
879
\href {https://pandoc.org/MANUAL.html\#heading-identifiers}{in pandoc's
890
880
manual}.
891
881
\end {description }
892
882
893
- \hypertarget {writing-mathematics}{%
894
- \chapter {Writing Mathematics }\label {writing-mathematics }}
883
+ \chapter {Writing Mathematics }\label {writing-mathematics }
895
884
896
885
\LaTeX can be used to render
897
886
\href {https://en.m.wikibooks.org/wiki/LaTeX/Mathematics}{complex
@@ -914,9 +903,8 @@ \chapter{Writing Mathematics}\label{writing-mathematics}}
914
903
\passthrough {\lstinline !<unicode symbol> !} to be rendered in math mode
915
904
using \passthrough {\lstinline !\\ensuremath !}.
916
905
917
- \hypertarget {theorem-proof-and-others-environments}{%
918
906
\section {Theorem, Proof, and Others
919
- Environments }\label {theorem-proof-and-others-environments }}
907
+ Environments }\label {theorem-proof-and-others-environments }
920
908
921
909
\begin {description }
922
910
\item [Markdown only]
@@ -963,8 +951,7 @@ \section{Theorem, Proof, and Others
963
951
properly.
964
952
\end {description }
965
953
966
- \hypertarget {formal-proofs}{%
967
- \section {Formal Proofs }\label {formal-proofs }}
954
+ \section {Formal Proofs }\label {formal-proofs }
968
955
969
956
You can easily represent formal proofs using \LaTeX 's ebproof or
970
957
bussproof packages:
@@ -980,12 +967,10 @@ \section{Formal Proofs}\label{formal-proofs}}
980
967
\end {prooftree }
981
968
\end {center }
982
969
983
- \hypertarget {figures-tables-code-listings-and-landscape-pages}{%
984
970
\chapter {Figures, Tables, (Code) Listings and Landscape
985
- Pages }\label {figures-tables-code-listings-and-landscape-pages }}
971
+ Pages }\label {figures-tables-code-listings-and-landscape-pages }
986
972
987
- \hypertarget {figures}{%
988
- \section {Figures }\label {figures }}
973
+ \section {Figures }\label {figures }
989
974
990
975
\begin {description }
991
976
\tightlist
@@ -999,12 +984,11 @@ \section{Figures}\label{figures}}
999
984
1000
985
\begin {figure }
1001
986
\centering
1002
- \includegraphics [width=0.8\textwidth ,height=\textheight ]{pictures/D_un_autre_age.jpg}
987
+ \includegraphics [width=0.8\linewidth ,height=\textheight ,keepaspectratio ]{pictures/D_un_autre_age.jpg}
1003
988
\caption {\emph {D'un autre âge }\label {fig:d_un_autre_age }}
1004
989
\end {figure }
1005
990
1006
- \hypertarget {tables}{%
1007
- \section {Tables }\label {tables }}
991
+ \section {Tables }\label {tables }
1008
992
1009
993
\begin {description }
1010
994
\tightlist
@@ -1017,9 +1001,9 @@ \section{Tables}\label{tables}}
1017
1001
\end {description }
1018
1002
1019
1003
\begin {longtable }[]{@{}
1020
- >{\raggedright\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.1528}}
1021
- >{\centering\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.1667}}
1022
- >{\raggedleft\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.1667}}@{}}
1004
+ >{\raggedright\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.1528}}
1005
+ >{\centering\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.1667}}
1006
+ >{\raggedleft\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.1667}}@{}}
1023
1007
\caption {The price of categories \label {tbl:demo1 }}\tabularnewline
1024
1008
\toprule\noalign {}
1025
1009
\begin {minipage }[b]{\linewidth }\raggedright
@@ -1066,9 +1050,9 @@ \section{Tables}\label{tables}}
1066
1050
\end {longtable }
1067
1051
1068
1052
\begin {longtable }[]{@{}
1069
- >{\raggedright\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.2222}}
1070
- >{\raggedright\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.2222}}
1071
- >{\raggedright\arraybackslash }p{(\columnwidth - 4\tabcolsep ) * \real {0.2917}}@{}}
1053
+ >{\raggedright\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.2222}}
1054
+ >{\raggedright\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.2222}}
1055
+ >{\raggedright\arraybackslash }p{(\linewidth - 4\tabcolsep ) * \real {0.2917}}@{}}
1072
1056
\caption {The price and advantages of fruits
1073
1057
\label {tbl:demo3 }}\tabularnewline
1074
1058
\toprule\noalign {}
@@ -1113,8 +1097,7 @@ \section{Tables}\label{tables}}
1113
1097
\end {minipage } \\
1114
1098
\end {longtable }
1115
1099
1116
- \hypertarget {code-listings}{%
1117
- \section {Code Listings }\label {code-listings }}
1100
+ \section {Code Listings }\label {code-listings }
1118
1101
1119
1102
Code is displayed using the listings package. Check the `` Table 1:
1120
1103
Predefined languages'' of the listings package documentation to see the
@@ -1159,8 +1142,7 @@ \section{Code Listings}\label{code-listings}}
1159
1142
1160
1143
\lstinputlisting [language=C, caption={"\emph {Hello World }" in C}, label={lst:demo3}]{code/hello_world.c}
1161
1144
1162
- \hypertarget {landscape-pages}{%
1163
- \section {Landscape Pages }\label {landscape-pages }}
1145
+ \section {Landscape Pages }\label {landscape-pages }
1164
1146
1165
1147
You can obtain landscape pages using the landscape package in \LaTeX .
1166
1148
@@ -1186,11 +1168,9 @@ \section{Landscape Pages}\label{landscape-pages}}
1186
1168
\vspace *{\fill }
1187
1169
\end {landscape }
1188
1170
1189
- \hypertarget {margins-and-fonts}{%
1190
- \chapter {Margins and Fonts }\label {margins-and-fonts }}
1171
+ \chapter {Margins and Fonts }\label {margins-and-fonts }
1191
1172
1192
- \hypertarget {margins}{%
1193
- \section {Margins }\label {margins }}
1173
+ \section {Margins }\label {margins }
1194
1174
1195
1175
The margin have been set to fit the graduate school's requirements to:
1196
1176
@@ -1202,8 +1182,7 @@ \section{Margins}\label{margins}}
1202
1182
1203
1183
Please, do not change those values.
1204
1184
1205
- \hypertarget {fonts}{%
1206
- \section {Fonts }\label {fonts }}
1185
+ \section {Fonts }\label {fonts }
1207
1186
1208
1187
The font used is the font
1209
1188
\href {http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes}{`` TeX
@@ -1225,8 +1204,7 @@ \section{Fonts}\label{fonts}}
1225
1204
1226
1205
\appendix
1227
1206
1228
- \hypertarget {appendix-a-optional}{%
1229
- \chapter {Appendix A (Optional) }\label {appendix-a-optional }}
1207
+ \chapter {Appendix A (Optional) }\label {appendix-a-optional }
1230
1208
1231
1209
Insert here protocols, figures not included, larger listings, etc.
1232
1210
0 commit comments