commit 735aeda93a8fa03eaf2b688cc0a7adcc10b7885a Author: Samuel ORTION Date: Sat Dec 31 19:36:49 2022 +0100 Initial commit - Prepare to answer some of the exercises diff --git a/tex/.gitignore b/tex/.gitignore new file mode 100755 index 0000000..e964244 --- /dev/null +++ b/tex/.gitignore @@ -0,0 +1,301 @@ +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib diff --git a/tex/.latexmkrc b/tex/.latexmkrc new file mode 100755 index 0000000..630d01c --- /dev/null +++ b/tex/.latexmkrc @@ -0,0 +1 @@ +$pdflatex = 'lualatex -shell-escape -synctex=1 -interaction=nonstopmode'; \ No newline at end of file diff --git a/tex/Makefile b/tex/Makefile new file mode 100755 index 0000000..fc2b97f --- /dev/null +++ b/tex/Makefile @@ -0,0 +1,20 @@ +SOURCE=main +TARGET=book + +TEXC=lualatex + +all: $(SOURCE).pdf + +%.pdf: %.tex + lualatex $< + biber $(SOURCE) + makeindex main.idx -s indexstyle.ist + makeglossaries $(SOURCE) + lualatex $< + lualatex $< + +publish: + cp $(SOURCE).pdf ../doc/$(TARGET).pdf + +clean: + ./clean.sh \ No newline at end of file diff --git a/tex/TheLuaChameleonBook.cls b/tex/TheLuaChameleonBook.cls new file mode 100755 index 0000000..0a35738 --- /dev/null +++ b/tex/TheLuaChameleonBook.cls @@ -0,0 +1,737 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% The LuaLaTeX Chameleon Book Class +% LaTeX Class +% Version 0.0.2 (2022-12-05) +% +% Authors: +% Samuel ORTION +% +% License: +% MIT +% +% +% This class originates from: Legrand Book Template +% by https://www.LaTeXTemplates.com +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%---------------------------------------------------------------------------------------- +% CLASS CONFIGURATION +%---------------------------------------------------------------------------------------- + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{LegrandOrangeBook}[2022/01/26 The Legrand Orange Book Class v3.0] + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} % Pass through any options to the base class +\ProcessOptions\relax % Process given options + +\LoadClass{book} % Load the base class + +%---------------------------------------------------------------------------------------- +% REQUIRED PACKAGES AND CONFIGURATIONS +%---------------------------------------------------------------------------------------- + +\usepackage{graphicx} % Required for including pictures +\graphicspath{{media/images/}} % Specifies the directory where pictures are stored + +\usepackage{float} % Allows more precisely positioning floats e.g. \begin{figure}[H] + +\usepackage{wrapfig} % Allows wrapping text around figures + +\usepackage{caption} % Allows customizing captions + +\usepackage{subcaption} % Allows subcaptions + +\usepackage[usenames, svgnames, table]{xcolor} % Required for defining and using custom colors + +\usepackage{calc} % For simpler calculations - used for spacing the index letter headings correctly + +\usepackage{changepage} % Required for temporarily indenting text blocks + +\usepackage[toc]{appendix} % Required for the appendices chapters + +\usepackage{glossaries} + +\usepackage{etoolbox} % Required for conditional logic and easily changing commands + +%---------------------------------------------------------------------------------------- +% MARGINS +%---------------------------------------------------------------------------------------- + +\usepackage{geometry} % Required for adjusting page dimensions and margins + +\geometry{ + top=3cm, % Top margin + bottom=2.5cm, % Bottom margin + inner=3cm, % Inner margin (left on odd pages, right on even or left in oneside mode) + outer=3cm, % Outer margin (right on odd pages, left on even or right in oneside mode) + headsep=10pt, % Space from the top margin to the baseline of the header + headheight=0.5cm, % Header height + footskip=1.4cm, % Space from the bottom margin to the baseline of the footer + columnsep=1cm, % Horizontal space between columns when in two column mode + %showframe, % Uncomment to show how the type block is set on the page +} + +%---------------------------------------------------------------------------------------- +% FONTS +%---------------------------------------------------------------------------------------- + +\usepackage{fontspec} +\usepackage{ulem} + +%---------------------------------------------------------------------------------------- +% HEADERS AND FOOTERS +%---------------------------------------------------------------------------------------- + +\usepackage{fancyhdr} % Required for customizing headers and footers +\pagestyle{fancy} % Enable the custom headers and footers + +\renewcommand{\headrulewidth}{0.5pt} % Top horizontal rule thickness + +\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\chaptername\ \thechapter.~#1}{}} % Redefine the styling of the current chapter name in the header +\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize\thesection~#1}{}} % Redefine the styling of the current section name in the header + +\fancyhf{} % Clear default headers and footers + +\fancyhead[LE, RO]{\sffamily\thepage} % Header for left even pages and right odd pages + +\fancyhead[LO]{\rightmark} % Header for left odd pages + +\fancyhead[RE]{\leftmark} % Header for right even pages + +\fancypagestyle{plain}{ % Style for when a plain pagestyle is specified + \fancyhead{} % Clear headers + \renewcommand{\headrulewidth}{0pt} % Remove header rule +} + +\usepackage{emptypage} % This package removes headers and footers on empty pages between chapters + +%---------------------------------------------------------------------------------------- +% SECTION STYLING +%---------------------------------------------------------------------------------------- + +\setcounter{secnumdepth}{3} % Number sections down to subsubsections, a value of 2 will number to subsections only and 1 to sections only + +\usepackage[ + explicit, % Specify section names explicitly in \titleformat with #1 + newparttoc, % Required for writing the part toc entry number in a standard way (overriding default LaTeX behavior) so the titletoc package can style it +]{titlesec} % Required for modifying sections + +%------------------------------------------- + +% Command to create and output the parts pages +\newcommand{\outputpartpage}[2]{ + \begin{tikzpicture}[remember picture, overlay] + \node[anchor=center, rectangle, fill=primarycolor!20, inner sep=0pt, minimum height=\paperheight, minimum width=\paperwidth] at (current page.center) {}; % Background color + \node[anchor=north west, inner sep=0pt, xshift=\Gm@lmargin, yshift=-\Gm@tmargin] at (current page.north west) {\fontsize{220pt}{220pt}\selectfont\sffamily\bfseries\textcolor{primarycolor!40}{#1}}; % Part number + \node[anchor=north east, inner sep=0pt, xshift=-\Gm@rmargin, yshift=-\Gm@tmargin] at (current page.north east) {\fontsize{30pt}{30pt}\selectfont\sffamily\bfseries\textcolor{primarycolor}{\strut #2}}; % Part title + \node[anchor=south east, inner sep=0pt, xshift=-\Gm@rmargin, yshift=\Gm@bmargin] at (current page.south east) { % Mini table of contents + \parbox[t][][t]{8.5cm}{ % Width of box holding the mini ToC + \printcontents[part]{l}{0}{\setcounter{tocdepth}{1}} % Display the mini table of contents showing chapters and sections, change tocdepth to 2 to also show subsections or 0 to only show chapters + } + }; + \end{tikzpicture} +} + +\titleformat + {\part} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\startcontents[part]\outputpartpage{\thepart}{#1}} % Format of the whole section + {} % Format of the section label + {0em} % Space between the title and label + {} % Code before the label + [] % Code after the label + +%------------------------------------------- + +% Command to store the current chapter image to use for all future chapters, can be changed any time in the document and can be empty +\newcommand{\thechapterimage}{} +\newcommand{\chapterimage}[1]{\renewcommand{\thechapterimage}{#1}} + +% Command to store the current whitespace above the chapter title box for all future chapters, can be changed at any time in the document +\newcommand{\thechapterspaceabove}{} +\newcommand{\chapterspaceabove}[1]{\renewcommand{\thechapterspaceabove}{#1}} + +% Command to store the current whitespace below the chapter title box for all future chapters, can be changed at any time in the document +\newcommand{\thechapterspacebelow}{} +\newcommand{\chapterspacebelow}[1]{\renewcommand{\thechapterspacebelow}{#1}} + +% Command to output the chapter title with optional background image +\newcommand{\outputchaptertitle}[2]{ + \begin{tikzpicture}[remember picture,overlay] + % If a chapter image has been specified + \expandafter\ifstrequal\expandafter{\thechapterimage}{}{}{ + % Output the chapter image + \node[ + anchor=north west, % Anchor point on the image + inner sep=0pt, % Inner padding + ] at (current page.north west) {\includegraphics[width=\paperwidth]{\thechapterimage}}; + } + % Box with the chapter title + \draw[anchor=west] (current page.north west) node [ + anchor=north west, % Anchor point of the chapter box + xshift=\Gm@lmargin, % Horizontal distance from the left side of the page + yshift=-\thechapterspaceabove, % Vertical distance from the top of the page + line width=2pt, % Border line thickness + rounded corners=10pt, % Rounded corners amount + draw=primarycolor, % Border line color + fill=black!5, % Box background color + fill opacity=0.6, % Background transparency + text opacity=1, % Text transparency + inner ysep=12.5pt, % Inner vertical padding + inner xsep=20pt, % Inner horizontal padding + align=flush left, % Text alignment inside box + text width=1.2\linewidth, % Box width (wider than page to go off the right side) + font=\huge\sffamily\bfseries, % Font styling for chapter title + ] {\parbox{0.85\linewidth}{\strut\raggedright\expandafter\ifstrequal\expandafter{#1}{}{}{#1. }#2\vspace{-3pt}}}; % Chapter title in a fixed width box for wrapping + \end{tikzpicture} +} + +% Numbered chapters +\titleformat + {\chapter} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\outputchaptertitle{\thechapter}{#1}} % Format of the whole section + {} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +% Unnumbered chapters +\titleformat + {name=\chapter, numberless} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\outputchaptertitle{}{#1}} % Format of the whole section + {} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titlespacing*{\chapter}{0pt}{0pt}{\thechapterspacebelow} % Spacing around section titles, the order is: left, before and after + +%------------------------------------------- + +\titleformat + {\section} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily\Large} % Format of the whole section + {\llap{\textcolor{primarycolor}{\thesection}\hspace{1em}}#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titleformat + {name=\section, numberless} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily\Large} % Format of the whole section + {#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titlespacing*{\section}{0pt}{12pt}{6pt} % Spacing around section titles, the order is: left, before and after + +%------------------------------------------- + +\titleformat + {\subsection} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily\large} % Format of the whole section + {\llap{\textcolor{primarycolor}{\thesubsection}\hspace{1em}}#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titleformat + {name=\subsection, numberless} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily\large} % Format of the whole section + {#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titlespacing*{\subsection}{0pt}{12pt}{4pt} % Spacing around section titles, the order is: left, before and after + +%------------------------------------------- + +\titleformat + {\subsubsection} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily} % Format of the whole section + {\llap{{\thesubsubsection}\hspace{1em}}#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titleformat + {name=\subsubsection, numberless} % Section type being modified + [block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily} % Format of the whole section + {#1} % Format of the section label + {0cm} % Space between the title and label + {} % Code before the label + [] % Code after the label + +\titlespacing*{\subsubsection}{0pt}{8pt}{4pt} % Spacing around section titles, the order is: left, before and after + +%------------------------------------------- + +\titleformat + {\paragraph} % Section type being modified + [runin] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame + {\bfseries\sffamily} % Format of the whole section + {} % Format of the section label + {0cm} % Space between the title and label + {#1} % Code before the label + [] % Code after the label + +\titlespacing*{\paragraph}{0pt}{0pt}{6pt} % Spacing around section titles, the order is: left, before and after + +%---------------------------------------------------------------------------------------- +% TABLE OF CONTENTS +%---------------------------------------------------------------------------------------- + +\usepackage{titletoc} % Required for manipulating the table of contents + +\setcounter{tocdepth}{2} % Display down to subsections in the table of contents + +\contentsmargin{0cm} % Removes the default right margin + +%------------------------------------------------ + +% Styling of numbered parts in the table of contents +\newcommand{\tocentrypartnumbered}[1]{% + \setlength\fboxsep{0pt}% Remove box padding + \contentslabel[% + % Part number box + \colorbox{primarycolor!20}{% Background color + \strut\parbox[c][.7cm]{1.1cm}{% Box size + \color{primarycolor!70}\Large\sffamily\bfseries\centering\thecontentslabel% Part number + }% + }% + \hspace{4pt}% + % Part title box + \colorbox{primarycolor!40}{% Background color + \strut\parbox[c][.7cm]{\linewidth-1.25cm}{% Box size + \centering\Large\sffamily #1% Part title + }% + }% + ]{1.25cm} +} + +% Styling of unnumbered parts in the table of contents +\newcommand{\tocentrypartunnumbered}[1]{% + \setlength\fboxsep{0pt}% Remove box padding + \contentslabel[% + % Part title box + \colorbox{primarycolor!40}{% Background color + \strut\parbox[c][.7cm]{\linewidth}{% Box size + \centering\Large\sffamily #1% Part title + }% + }% + ]{1.25cm} +} + +\titlecontents{part} % Section type being modified + [1.25cm] % Left indentation + {\addvspace{20pt}\Large\sffamily\bfseries\hypersetup{linkcolor=black}} % Before code + {\tocentrypartnumbered} % Formatting of numbered sections of this type + {\tocentrypartunnumbered} % Formatting of numberless sections of this type + {} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +\titlecontents{chapter} % Section type being modified + [1.25cm] % Left indentation + {\addvspace{12pt}\large\sffamily\bfseries\hypersetup{linkcolor=primarycolor}} % Before code + {\color{primarycolor}\contentslabel[\Large\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {\color{primarycolor!60}\normalsize\;\titlerule*[6pt]{.}\;\color{primarycolor}\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +\titlecontents{section} % Section type being modified + [1.25cm] % Left indentation + {\addvspace{3pt}\sffamily\bfseries} % Before code + {\contentslabel[\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~{\normalfont\titlerule*[6pt]{.}}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +\titlecontents{subsection} % Section type being modified + [1.25cm] % Left indentation + {\addvspace{1pt}\sffamily\small} % Before code + {\contentslabel[\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~\titlerule*[6pt]{.}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +\titlecontents{subsubsection} % Section type being modified + [1.75cm] % Left indentation + {\sffamily\small} % Before code + {\contentslabel[\thecontentslabel]{1.75cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~\titlerule*[6pt]{.}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +% List of figures entries +\titlecontents{figure} % Section type being modified + [0cm] % Left indentation + {\addvspace{2pt}\sffamily\small} % Before code + {\thecontentslabel\hspace*{1em}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~\titlerule*[6pt]{.}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +% List of tables entries +\titlecontents{table} % Section type being modified + [0cm] % Left indentation + {\addvspace{2pt}\sffamily\small} % Before code + {\thecontentslabel\hspace*{1em}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~\titlerule*[6pt]{.}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + [] % After code + +%------------------------------------------------ + +\titlecontents{lchapter} % Chapter headings on part pages + [0cm] % Left indentation + {\addvspace{12pt}\large\sffamily\bfseries\hypersetup{linkcolor=primarycolor}} % Before code + {\color{primarycolor}\contentslabel[\Large\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type + {\color{primarycolor}} % Formatting of numberless sections of this type + {~\color{primarycolor!60}\normalsize\titlerule*[6pt]{.}~\color{primarycolor}\thecontentspage} % Formatting of the filler to the right of the heading and the page number + +%------------------------------------------------ + +\titlecontents{lsection} % Section headings on part pages + [0cm] % Left indentation + {\sffamily\small} % Before code + {\contentslabel[\thecontentslabel]{1.25cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~{\normalfont\titlerule*[6pt]{.}}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + +%------------------------------------------------ + +\titlecontents{lsubsection} % Subsection headings on part pages + [0cm] % Left indentation + {\sffamily\footnotesize} % Before code + {\contentslabel[\thecontentslabel]{1.25cm}\hspace{0.5cm}} % Formatting of numbered sections of this type + {} % Formatting of numberless sections of this type + {~{\normalfont\titlerule*[6pt]{.}}~\thecontentspage} % Formatting of the filler to the right of the heading and the page number + +%---------------------------------------------------------------------------------------- +% BIBLIOGRAPHY +%---------------------------------------------------------------------------------------- + +\usepackage[ + backend=biber, % Use the biber engine for compiling the bibliography + bibstyle=numeric, % Main bibliography style + citestyle=numeric, % In-text citation style + sorting=nyt, % Sort references in the bibliography by name, then year, then title + sortcites=true, % If multiple citekeys are passed to a citation command, sort them in the citation + abbreviate=false, % Suppress abbreviations such as "Ed." for Editor + backref=true, % List the page where references were cited in the bibliography + defernumbers=true, +]{biblatex} + +\defbibheading{bibempty}{} % Suppress default bibliography headings + +%---------------------------------------------------------------------------------------- +% INDEX +%---------------------------------------------------------------------------------------- + +\usepackage{makeidx} % Required to make an index + +\makeindex % Tells LaTeX to create the files required for indexing + +% Modify the command to output the index to output the correctly styled Index name to the page headers +\patchcmd{\theindex} + {\MakeUppercase\indexname} % Find + {\sffamily\normalsize\bfseries\indexname} % Replace + {} + {} + +%---------------------------------------------------------------------------------------- +% TABLES +%---------------------------------------------------------------------------------------- + +\usepackage{array} % Required for manipulating table elements + +\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} % Define a new right-aligned paragraph column type +\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} % Define a new left-aligned (no justification) paragraph column type +\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % Define a new centered paragraph column type + +\usepackage{booktabs} % Required for high quality horizontal rules in tables + +%---------------------------------------------------------------------------------------- +% LISTS +%---------------------------------------------------------------------------------------- + +\usepackage{enumitem} % Required for list customization + +\setlist{nolistsep, noitemsep} % Customize spacing inside and outside lists + +\renewcommand{\labelenumi}{\arabic{enumi}.} % Customize the first level numbered list characters +\renewcommand{\labelenumii}{\alph{enumii}.} % Customize the second level numbered list characters +\renewcommand{\labelenumiii}{\roman{enumiii}.} % Customize the third level numbered list characters + +%------------------------------------------------ + +\renewcommand{\labelitemi}{\raisebox{-2pt}{\Large \textbullet}} % Customize the first level bullet point character +\renewcommand{\labelitemii}{--} % Customize the second level bullet point character +\renewcommand{\labelitemiii}{$\circ$} % Customize the third level bullet point character + +%---------------------------------------------------------------------------------------- +% LINKS +%---------------------------------------------------------------------------------------- + +\usepackage{hyperref} + +\hypersetup{ + colorlinks=true, % Whether to color links (a thin box is output around links if this is false) + %hidelinks, % Hide the default boxes around links + urlcolor=primarycolor, % Color for \url and \href links + linkcolor=black, % Color for \ref/\nameref links + citecolor=primarycolor, % Color for reference citations like \cite{} + hyperindex=true, % Adds links from the page numbers in the index to the relevant page + linktoc=all, % Link from section names and page numbers in the table of contents +} + +%---------------------------------------------------------------------------------------- +% BOOKMARKS +%---------------------------------------------------------------------------------------- + +\usepackage{bookmark} % Required for customizing PDF bookmarks + +\bookmarksetup{ + open, % Open all bookmark drawers automatically + numbered, % Add section numbers to bookmarks + addtohook={% + \ifnum\bookmarkget{level}=-1 % Customize part bookmarks + \bookmarksetup{color=primarycolor, bold}% Bold and colored + \fi + \ifnum\bookmarkget{level}=0 % Customize chapter bookmarks + \bookmarksetup{bold}% Bold + \fi + } +} + +%---------------------------------------------------------------------------------------- +% TITLE PAGE +%---------------------------------------------------------------------------------------- + +\renewcommand{\titlepage}[2]{ + \thispagestyle{empty} % Suppress headers and footers on the title page + + \begin{tikzpicture}[remember picture, overlay] + \node [inner sep=0pt] at (current page.center) {#1}; % Background image + \node [anchor=center, inner sep=1.25cm, rectangle, fill=primarycolor!30!white, fill opacity=0.6, text opacity=1, minimum height=0.2\paperheight, minimum width=\paperwidth, text width=0.8\paperwidth] at (current page.center) {#2}; % Title highlight box with title(s) and author(s) + \end{tikzpicture} + + \newpage +} + +%---------------------------------------------------------------------------------------- +% THEOREM STYLES +%---------------------------------------------------------------------------------------- + +\usepackage{amsmath, amsfonts, amssymb, amsthm} % For math equations, theorems, symbols, etc + +\renewcommand{\qedsymbol}{$\blacksquare$} % Redefine the QED symbol to be a filled square vs. the default unfilled square + +%------------------------------------------------ + +% Orange theorem number and optional black title with padding above and below +\newtheoremstyle{primarycolornum} % Theorem style name + {6pt} % Space above + {6pt} % Space below + {\normalfont} % Body font + {} % Indent amount + {} % Theorem head font + {} % Punctuation after theorem head + {0.25em} % Space after theorem head + {\small\sffamily\bfseries\color{primarycolor}\thmname{#1}~\thmnumber{\@ifnotempty{#1}{}\@upn{#2}} % Theorem text (e.g. Theorem 2.1) + \thmnote{\the\thm@notefont\sffamily\bfseries\color{black}---~#3.\hspace{0.25em}}} % Optional theorem note + +%------------------------------------------------ + +% Orange theorem number and optional black title with no padding above and below +\newtheoremstyle{primarycolornumbox} % Theorem style name + {0pt} % Space above + {0pt} % Space below + {\normalfont} % Body font + {} % Indent amount + {} % Theorem head font + {} % Punctuation after theorem head + {0.25em} % Space after theorem head + {\small\sffamily\bfseries\color{primarycolor}\thmname{#1}~\thmnumber{\@ifnotempty{#1}{}\@upn{#2}} % Theorem text (e.g. Theorem 2.1) + \thmnote{\the\thm@notefont\sffamily\bfseries\color{black}---~#3.\hspace{0.25em}}} % Optional theorem note + +%------------------------------------------------ + +% Black theorem number and optional black title no padding above and below +\newtheoremstyle{blacknumex} % Theorem style name + {6pt} % Space above + {6pt} % Space below + {\normalfont} % Body font + {} % Indent amount + {} % Theorem head font + {} % Punctuation after theorem head + {0.25em} % Space after theorem head + {\small\sffamily\bfseries{\raisebox{1.25pt}{\tiny\ensuremath{\blacksquare}}}~\thmname{#1}~\thmnumber{\@ifnotempty{#1}{}\@upn{#2}} % Theorem text (e.g. Theorem 2.1) + \thmnote{\the\thm@notefont\sffamily\bfseries---~#3.\hspace{0.25em}}} % Optional theorem note + +%------------------------------------------------ + +% Black theorem number and optional black title padding above and below +\newtheoremstyle{blacknumbox} % Theorem style name + {0pt} % Space above + {0pt} % Space below + {\normalfont} % Body font + {} % Indent amount + {} % Theorem head font + {} % Punctuation after theorem head + {0.25em} % Space after theorem head + {\small\sffamily\bfseries\thmname{#1}~\thmnumber{\@ifnotempty{#1}{}\@upn{#2}} % Theorem text (e.g. Theorem 2.1) + \thmnote{\the\thm@notefont\sffamily\bfseries---~#3.\hspace{0.25em}}} % Optional theorem note + +%------------------------------------------------ + +% Set the theorem style for each type of theorem-like environment by placing it under the theorem style you would like to use for it + +% Orange theorem number and optional black title with padding above and below +\theoremstyle{primarycolornum} +\newtheorem{proposition}{Proposition}[chapter] % Propositions, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) + +% Orange theorem number and optional black title with no padding above and below +\theoremstyle{primarycolornumbox} +\newtheorem{theoremeT}{Theorem}[chapter] % Theorems, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) +\newtheorem{problem}{Problem}[chapter] % Problems, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) +\newtheorem{exerciseT}{Exercise}[chapter] % Exercises, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) + +% Black theorem number and optional black title no padding above and below +\theoremstyle{blacknumex} +\newtheorem{exampleT}{Example}[chapter] % Examples, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) +\newtheorem{notation}{Notation}[chapter] % Notations, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) +\newtheorem{vocabulary}{Vocabulary}[chapter] % Vocabularies, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) + +% Black theorem number and optional black title with padding above and below +\theoremstyle{blacknumbox} +\newtheorem{definitionT}{Definition}[chapter] % Definitions, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) +\newtheorem{corollaryT}{Corollary}[chapter] % Corollaries, the first argument is the theorem name, the second the theorem title used before the number and the third optional argument is whether to number under chapters (e.g. 2.1) or sections (e.g. 2.1.1) + +%---------------------------------------------------------------------------------------- +% COLORED THEOREM BOXES +%---------------------------------------------------------------------------------------- + +\RequirePackage[framemethod=default]{mdframed} % Required for creating colored boxes used for theorems, definitions, exercises and corollaries + +% Theorem box +\newmdenv[ + skipabove=7pt, % Whitespace above box + skipbelow=7pt, % Whitespace below box + backgroundcolor=black!5, % Background color + linecolor=primarycolor, % Border color + innerleftmargin=5pt, % Inside left margin width + innerrightmargin=5pt, % Inside right margin width + innertopmargin=5pt, % Inside top margin height + innerbottommargin=5pt, % Inside bottom margin height + leftmargin=0cm, % Outside left margin width + rightmargin=0cm % Outside right margin width +]{tBox} + +% Exercise box +\newmdenv[ + skipabove=7pt, % Whitespace above box + skipbelow=7pt, % Whitespace below box + rightline=false, % Right line visible + leftline=true, % Left line visible + topline=false, % Top line visible + bottomline=false, % Bottom line visible + linecolor=primarycolor, % Line color + linewidth=4pt, % Line width + backgroundcolor=primarycolor!10, % Background color + innerleftmargin=5pt, % Inside left margin width + innerrightmargin=5pt, % Inside right margin width + innertopmargin=5pt, % Inside top margin height + innerbottommargin=5pt, % Inside bottom margin height + leftmargin=0cm, % Outside left margin width + rightmargin=0cm % Outside right margin width +]{eBox} + +% Definition box +\newmdenv[ + skipabove=7pt, % Whitespace above box + skipbelow=7pt, % Whitespace below box + rightline=false, % Right line visible + leftline=true, % Left line visible + topline=false, % Top line visible + bottomline=false, % Bottom line visible + linecolor=primarycolor, % Border color + linewidth=4pt, % Border width + innerleftmargin=5pt, % Inside left margin width + innerrightmargin=5pt, % Inside right margin width + innertopmargin=0pt, % Inside top margin height + innerbottommargin=0pt, % Inside bottom margin height + leftmargin=0cm, % Outside left margin width + rightmargin=0cm % Outside right margin width +]{dBox} + +% Corollary box +\newmdenv[ + skipabove=7pt, % Whitespace above box + skipbelow=7pt, % Whitespace below box + rightline=false, % Right line visible + leftline=true, % Left line visible + topline=false, % Top line visible + bottomline=false, % Bottom line visible + linecolor=gray, % Line color + linewidth=4pt, % Line width + backgroundcolor=black!5, % Background color + innerleftmargin=5pt, % Inside left margin width + innerrightmargin=5pt, % Inside right margin width + innertopmargin=5pt, % Inside top margin height + innerbottommargin=5pt, % Inside bottom margin height + leftmargin=0cm, % Outside left margin width + rightmargin=0cm % Outside right margin width +]{cBox} + +% Creates an environment for each type of theorem and assigns it a theorem text style from the THEOREM STYLES block above and a colored box from above +\newenvironment{theorem}{\begin{tBox}\begin{theoremeT}}{\end{theoremeT}\end{tBox}} +\newenvironment{exercise}{\begin{eBox}\begin{exerciseT}}{\hfill{\color{primarycolor}\tiny\ensuremath{\blacksquare}}\end{exerciseT}\end{eBox}} +\newenvironment{definition}{\begin{dBox}\begin{definitionT}}{\end{definitionT}\end{dBox}} +\newenvironment{example}{\begin{exampleT}}{\hfill{\tiny\ensuremath{\blacksquare}}\end{exampleT}} +\newenvironment{corollary}{\begin{cBox}\begin{corollaryT}}{\end{corollaryT}\end{cBox}} + +%---------------------------------------------------------------------------------------- +% REMARK ENVIRONMENT +%---------------------------------------------------------------------------------------- + +\newenvironment{remark}{% + \par\small % Reduce font size for remarks + \vspace{4pt} % Vertical whitespace + \begin{adjustwidth}{35pt}{25pt} % Left and right padding + \hspace{-2.5pt}% + \begin{tikzpicture}[overlay] + \node[draw=primarycolor!60,line width=1pt,circle,fill=primarycolor!25,font=\sffamily\bfseries,inner sep=3pt,outer sep=0pt] at (-15pt,0pt){\textcolor{primarycolor}{R}}; % Orange R in a circle + \end{tikzpicture} + \advance\baselineskip -1pt% Reduce line spacing +}{% + \end{adjustwidth} +} + +%---------------------------------------------------------------------------------------- +% LOAD PACKAGES THAT CLASH WITH OTHER PACKAGES +%---------------------------------------------------------------------------------------- + +\usepackage{tikz} % Required for drawing custom shapes and positioning elements absolutely on the page diff --git a/tex/background.pdf b/tex/background.pdf new file mode 100755 index 0000000..c901d71 Binary files /dev/null and b/tex/background.pdf differ diff --git a/tex/bibliography.bib b/tex/bibliography.bib new file mode 100755 index 0000000..e69de29 diff --git a/tex/clean.sh b/tex/clean.sh new file mode 100755 index 0000000..939b83d --- /dev/null +++ b/tex/clean.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +JUNK="*.aux *.bbl *.bcf *.blg *.log *.out *.run.xml *.toc *.lof *.lot *.fls *.fdb_latexmk *.synctex* *.ptc *.ind *.ilg *.idx *.glo *.glsdefs *.glg *.gls" +for item in $JUNK; do + find . -name "$item" -exec rm {} \; +done \ No newline at end of file diff --git a/tex/content/chapters/include.tex b/tex/content/chapters/include.tex new file mode 100755 index 0000000..224a891 --- /dev/null +++ b/tex/content/chapters/include.tex @@ -0,0 +1,18 @@ +%---------------------------------------- +% CHAPTERS +%---------------------------------------- + +\newcommand{\includechapters}[2]{% + \foreach \i in {0, ..., #2} {% + \edef\FileName{content/chapters/#1/\i}% The % here are necessary to eliminate any + \IfFileExists{\FileName}{% spurious spaces that may get inserted + \input{\FileName}% at these points + } + } +} + + +\includechapters{part01}{2} + + +\includechapters{part02}{2} \ No newline at end of file diff --git a/tex/content/chapters/part01/0.tex b/tex/content/chapters/part01/0.tex new file mode 100755 index 0000000..e69de29 diff --git a/tex/content/chapters/part01/1.tex b/tex/content/chapters/part01/1.tex new file mode 100755 index 0000000..e69de29 diff --git a/tex/content/conclusion.tex b/tex/content/conclusion.tex new file mode 100755 index 0000000..e69de29 diff --git a/tex/content/introduction.tex b/tex/content/introduction.tex new file mode 100755 index 0000000..4ecda9a --- /dev/null +++ b/tex/content/introduction.tex @@ -0,0 +1,8 @@ +\chapter{Introduction} + +Here we go + +\part{Hello, world} + + +\section{What did you expect ?} \ No newline at end of file diff --git a/tex/definitions.tex b/tex/definitions.tex new file mode 100644 index 0000000..e69de29 diff --git a/tex/indexstyle.ist b/tex/indexstyle.ist new file mode 100755 index 0000000..bde0c94 --- /dev/null +++ b/tex/indexstyle.ist @@ -0,0 +1,4 @@ +delim_0 "\\dotfill\ " % Filler between section heading and page number +delim_1 "\\dotfill\ " % Filler between subsection heading and page number +headings_flag 1 +heading_prefix "\\nopagebreak\n\\vspace*{0.1cm}\\tikz\\node at (0pt,0pt) [draw=none, fill=ocre!50, line width=1pt, inner sep=5pt]{\\parbox{0.993\\linewidth-2\\fboxsep-2\\fboxrule-2pt}{\\centering\\large\\sffamily\\bfseries\\textcolor{white}{" heading_suffix "}}};\\vspace*{0.2cm}\\nopagebreak\n" % Styling of index letter headings \ No newline at end of file diff --git a/tex/main.ist b/tex/main.ist new file mode 100755 index 0000000..069525b --- /dev/null +++ b/tex/main.ist @@ -0,0 +1,31 @@ +% makeindex style file created by the glossaries package +% for document 'main' on 2022-12-31 +actual '?' +encap '|' +level '!' +quote '"' +keyword "\\glossaryentry" +preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n" +postamble "\%\n\\end{theglossary}\\glossarypostamble\n" +group_skip "\\glsgroupskip\n" +item_0 "\%\n" +item_1 "\%\n" +item_2 "\%\n" +item_01 "\%\n" +item_x1 "\\relax \\glsresetentrylist\n" +item_12 "\%\n" +item_x2 "\\relax \\glsresetentrylist\n" +delim_0 "\{\\glossaryentrynumbers\{\\relax " +delim_1 "\{\\glossaryentrynumbers\{\\relax " +delim_2 "\{\\glossaryentrynumbers\{\\relax " +delim_t "\}\}" +delim_n "\\delimN " +delim_r "\\delimR " +headings_flag 1 +heading_prefix "\\glsgroupheading\{" +heading_suffix "\}\\relax \\glsresetentrylist " +symhead_positive "glssymbols" +numhead_positive "glsnumbers" +page_compositor "." +suffix_2p "" +suffix_3p "" diff --git a/tex/main.pdf b/tex/main.pdf new file mode 100755 index 0000000..add47c5 Binary files /dev/null and b/tex/main.pdf differ diff --git a/tex/main.tex b/tex/main.tex new file mode 100755 index 0000000..2ac95d3 --- /dev/null +++ b/tex/main.tex @@ -0,0 +1,203 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% The LuaLaTeX Chameleon Book Template +% LaTeX Template +% Version 0.0.0 (2022-12-05) +% +% Authors: +% Samuel ORTION +% Compiling this template: +% This template uses biber for its bibliography and makeindex for its index. +% When you first open the template, compile it from the command line with the +% commands below to make sure your LaTeX distribution is configured correctly: +% +% 1) lualatex main +% 2) makeindex main.idx -s indexstyle.ist +% 3) biber main +% 3) makeglossaries main +% 4) lualatex main +% 5) lualatex main +% +% License: +% MIT +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% PREAMBLE +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[ + 11pt, + fleqn, + a4paper +]{TheLuaChameleonBook} + +% Book PDF metadata +\hypersetup{ + pdftitle={The Art of Computer Programming Vol. 1 - Some Exercises}, + pdfauthor={Samuel ORTION}, + pdfsubject={An Attempt to solve some of the exercises from the Book of Donald E. KNUTH}, + pdfkeywords={computer science, mathematics, algorithmics}, + pdfcreator={LaTeX}, +} + +\definecolor{primarycolor}{RGB}{0, 128, 0} + +\addbibresource{sample.bib} % Bibliography file +\makeglossaries +\makeindex + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% DOCUMENT +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{document} + +%------------------------------------------------------------------------------ +% TITLE PAGE +%------------------------------------------------------------------------------ + + +\titlepage % Output the title page + {\includegraphics[width=\paperwidth]{background.pdf}} % Code to output the background image, which should be the same dimensions as the paper to fill the page entirely; leave empty for no background image + { % Title(s) and author(s) + \centering\sffamily % Font styling + {\Huge\bfseries Exploring the Physical Manifestation of Humanity's Subconscious Desires\par} % Book title + \vspace{16pt} % Vertical whitespace + {\LARGE A Practical Guide\par} % Subtitle + \vspace{24pt} % Vertical whitespace + {\huge\bfseries Goro Akechi\par} % Author name + } + + + +%---------------------------------------------------------------------------------------- +% COPYRIGHT PAGE +%---------------------------------------------------------------------------------------- + +\thispagestyle{empty} % Suppress headers and footers on this page + +~\vfill % Push the text down to the bottom of the page + +\noindent Copyright \copyright\ 2022 Samuel \textsc{Ortion}\\ % Copyright notice + +\noindent \textsc{Published by \texttt{Chameleon Press}}\\ % Publisher + +\noindent \texttt{\href{https://samuel.ortion.fr/}{samuel.ortion.fr}}\\ % URL + +\noindent Licensed under the Creative Commons Attribution-NonCommercial 4.0 License. +% You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{https://creativecommons.org/licenses/by-nc-sa/4.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.\\ % License information, replace this with your own license (if any) + +% \noindent \textit{First printing, October 2022} % Printing/edition date + +%---------------------------------------------------------------------------------------- +% TABLE OF CONTENTS +%---------------------------------------------------------------------------------------- + +\pagestyle{empty} % Disable headers and footers for the following pages + +% \tableofcontents % Output the table of contents + +% \listoffigures % Output the list of figures, comment or remove this command if not required + +% \listoftables % Output the list of tables, comment or remove this command if not required + +\pagestyle{fancy} % Enable default headers and footers again + +\cleardoublepage % Start the following content on a new page + +%---------------------------------------------------------------------------------------- +% CONTENT +%---------------------------------------------------------------------------------------- +% \chapterimage{orange2.jpg} % Chapter heading image +\chapterspaceabove{6.75cm} % Whitespace from the top of the page to the chapter title on chapter pages +\chapterspacebelow{7.25cm} % Amount of vertical whitespace from the top margin to the start of the text on chapter pages + +%---------------------------------------- +% INTRODUCTION +%---------------------------------------- +\part*{Introduction} +\input{content/introduction.tex} + +%---------------------------------------- +% CHAPTERS +%---------------------------------------- + +\input{content/chapters/include.tex} + +%---------------------------------------- +% CONCLUSION +%---------------------------------------- + +\part*{Conclusion} +\input{content/conclusion.tex} + +%---------------------------------------------------------------------------------------- + +\stopcontents[part] % Manually stop the 'part' table of contents here so the previous Part page table of contents doesn't list the following chapters + +%---------------------------------------------------------------------------------------- +% BIBLIOGRAPHY +%---------------------------------------------------------------------------------------- + +\chapterimage{} % Chapter heading image +\chapterspaceabove{2.5cm} % Whitespace from the top of the page to the chapter title on chapter pages +\chapterspacebelow{2cm} % Amount of vertical whitespace from the top margin to the start of the text on chapter pages + +%------------------------------------------------ + +\chapter*{Bibliography} +\markboth{\sffamily\normalsize\bfseries Bibliography}{\sffamily\normalsize\bfseries Bibliography} % Set the page headers to display a Bibliography chapter name +\addcontentsline{toc}{chapter}{\textcolor{primarycolor}{Bibliography}} % Add a Bibliography heading to the table of contents + +\section*{Articles} +\addcontentsline{toc}{section}{Articles} % Add the Articles subheading to the table of contents + +\printbibliography[heading=bibempty, type=article] % Output article bibliography entries + +\section*{Books} +\addcontentsline{toc}{section}{Books} % Add the Books subheading to the table of contents + +\printbibliography[heading=bibempty, type=book] % Output book bibliography entries + +%---------------------------------------------------------------------------------------- +% INDEX +%---------------------------------------------------------------------------------------- + +\cleardoublepage % Make sure the index starts on an odd (right side) page +\phantomsection +\addcontentsline{toc}{chapter}{\textcolor{primarycolor}{Index}} % Add an Index heading to the table of contents +\printindex % Output the index + +\tableofcontents + +%---------------------------------------------------------------------------------------- +% GLOSSARY +%---------------------------------------------------------------------------------------- +\printglossaries % Output the glossary + +%---------------------------------------------------------------------------------------- +% APPENDICES +%---------------------------------------------------------------------------------------- + +%\chapterimage{.jpg} % Chapter heading image +\chapterspaceabove{6.75cm} % Whitespace from the top of the page to the chapter title on chapter pages +\chapterspacebelow{7.25cm} % Amount of vertical whitespace from the top margin to the start of the text on chapter pages + +\begin{appendices} + +\renewcommand{\chaptername}{Appendix} % Change the chapter name to Appendix, i.e. "Appendix A: Title", instead of "Chapter A: Title" in the headers + +%------------------------------------------------ + + +%------------------------------------------------ + + +%------------------------------------------------ + +\end{appendices} + + +\printglossary +\end{document} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ No newline at end of file diff --git a/tex/meta.tex b/tex/meta.tex new file mode 100755 index 0000000..e69de29 diff --git a/tex/preamble.tex b/tex/preamble.tex new file mode 100755 index 0000000..e69de29