From 751d5878d9b2352364c0da742d05ae57ad95405e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 27 Jan 2017 23:08:51 +0000 Subject: simple-thesis-dissertation (1jan17) git-svn-id: svn://tug.org/texlive/trunk@43058 c570f23f-e606-0410-a88d-b1316a301751 --- .../Figures/Figure-SampleVectorGraphic.odg | Bin 0 -> 29506 bytes .../Figures/Figure-SampleVectorGraphic.pdf | Bin 0 -> 31786 bytes .../doc/xelatex/simple-thesis-dissertation/LICENSE | 24 + .../xelatex/simple-thesis-dissertation/README.md | 43 ++ .../Thesis-BackMatter.tex | 11 + .../Thesis-Chapter-ChapAbbr.tex | 415 ++++++++++++++ .../Thesis-Chapter-Intro.tex | 15 + .../Thesis-Chapter-Summary.tex | 20 + .../Thesis-FrontMatter.tex | 136 +++++ .../xelatex/simple-thesis-dissertation/Thesis.bib | 135 +++++ .../xelatex/simple-thesis-dissertation/Thesis.pdf | Bin 0 -> 165666 bytes .../xelatex/simple-thesis-dissertation/Thesis.tex | 75 +++ .../simplethesisdissertation.cls | 633 +++++++++++++++++++++ 13 files changed, 1507 insertions(+) create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.odg create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.pdf create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/LICENSE create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/README.md create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-BackMatter.tex create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-ChapAbbr.tex create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-Intro.tex create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-Summary.tex create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-FrontMatter.tex create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis.bib create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis.pdf create mode 100644 Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis.tex create mode 100644 Master/texmf-dist/tex/xelatex/simple-thesis-dissertation/simplethesisdissertation.cls (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.odg b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.odg new file mode 100644 index 00000000000..16b19708be6 Binary files /dev/null and b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.odg differ diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.pdf b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.pdf new file mode 100644 index 00000000000..7254c00d9e0 Binary files /dev/null and b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Figures/Figure-SampleVectorGraphic.pdf differ diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/LICENSE b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/LICENSE new file mode 100644 index 00000000000..cf1ab25da03 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/README.md b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/README.md new file mode 100644 index 00000000000..4470acac679 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/README.md @@ -0,0 +1,43 @@ +# simple-thesis-dissertation + +Template for a simple thesis or dissertation (Ph.D. or master's degree) or technical report, in XeLaTeX. + +**Website:** + +https://github.com/zachscrivena/simple-thesis-dissertation + +**Lead author:** + +Zach Scrivena (zachscrivena@gmail.com) + +**Compiled sample document:** + +Thesis.pdf + +## Main Features + +- Simple template that can be further customized or extended. +- Template document contains numerous examples. +- Consistent style for figures, tables, mathematical theorems, definitions, lemmas, etc. +- Direct support for TrueType (TTF) and OpenType (OTF) fonts. +- Direct support for multilingual Unicode characters, with the appropriate fonts. +- Hyperlinks can be included in generated PDF. + +## Overview + +The main XeLaTeX source file is `Thesis.tex`; the compiled document is `Thesis.pdf`. + +Instructions for compiling the document (TeX →(XeLaTeX)→ PDF): + +- **Method 1:** Use `latexmk` for fully automated document generation: + - `latexmk -xelatex "Thesis.tex"` + (add the `-pvc` switch to automatically recompile on changes) + +- **Method 2:** Use `xelatex` directly: + - `xelatex "Thesis.tex"` + (run multiple times to resolve cross-references if needed) + +## License + +This is free and unencumbered software released into the public domain. +For more information, please see the file `LICENSE` or refer to . diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-BackMatter.tex b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-BackMatter.tex new file mode 100644 index 00000000000..b89f6b7b477 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-BackMatter.tex @@ -0,0 +1,11 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% BIBLIOGRAPHY. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\clearpage +\phantomsection +\addcontentsline{toc}{chapter}{Bibliography} + +\bibliographystyle{IEEEtran} % IEEE bibliographic/citation style. +%\bibliography{IEEEabrv,Thesis} +\bibliography{IEEEfull,Thesis} diff --git a/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-ChapAbbr.tex b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-ChapAbbr.tex new file mode 100644 index 00000000000..0f1c6b51711 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/simple-thesis-dissertation/Thesis-Chapter-ChapAbbr.tex @@ -0,0 +1,415 @@ +\chapter{Insert Chapter Title Here} +\label{Section:ChapAbbr} + +\BlankFootnote{Insert chapter footnote here. +The chapter footnote could include citations to related publications by the author (``The material in this chapter was presented in part in ....'').} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\section{Introduction} +\label{Section:ChapAbbr:Introduction} + +Insert chapter introduction here. +\lipsum[1-2] + +\mbox{\textit{Related Work:}} +Our work is related to \cite{Examples:Conference01, Examples:Journal01, Examples:Conference02, Examples:Journal02, Examples:Conference03}. +\lipsum[3-4] + +\mbox{\textit{Our Contribution:}} +\lipsum[5-6] + +Proofs of theorems are deferred to \Section~\sref{Section:ChapAbbr:ProofsOfTheorems}. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\section{Some Examples} +\label{Section:ChapAbbr:SomeExamples} + +\lipsum[7] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\subsection{Examples of Figures and Tables} +\label{Section:ChapAbbr:SomeExamples:FiguresTables} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% FIGURE: CHAPABBR: FIGURE EXAMPLE A +\begin{figure} +\centering\CaptionFontSize +\includegraphics[height=15em] +{./Figures/Figure-SampleVectorGraphic} +\caption[Insert an abbreviated caption here to show in the List of Figures] +{Insert the full caption here for this floating figure.} +\label{Figure:ChapAbbr:FigureExampleA} +\end{figure} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +This is a reference to \Figure~\fref{Figure:ChapAbbr:FigureExampleA}. +\lipsum[8] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% FIGURE: CHAPABBR: FIGURE EXAMPLE B +\begin{sidewaysfigure*} +\centering\CaptionFontSize +\includegraphics[height=30em] +{./Figures/Figure-SampleVectorGraphic} +\caption[Insert an abbreviated caption here to show in the List of Figures] +{Insert the full caption here for this floating figure. +The caption should provide sufficient context to interpret the figure. +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. +Curabitur dictum gravida mauris.} +\label{Figure:ChapAbbr:FigureExampleB} +\end{sidewaysfigure*} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +Here we say something about \Figures~\fref{Figure:ChapAbbr:FigureExampleA} and~\fref{Figure:ChapAbbr:FigureExampleB}. +Note how the effect in \Figure~\fref{Figure:ChapAbbr:FigureExampleB} is stronger that in \Figure~\fref{Figure:ChapAbbr:FigureExampleA}. +\lipsum[9] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TABLE: CHAPABBR: EXAMPLE A +\begin{table} +\caption[Insert an abbreviated caption here to show in the List of Tables] +{Insert the full caption here for this floating table.} +\label{Table:ChapAbbr:TableExampleA} +\centering\CaptionFontSize +\begin{tabular}{c@{\hspace{1em}}l} +\toprule +Symbol & Definition +\\ +\midrule +$\alpha$ & insert definition of $\alpha$ here, $\alpha\geq 1$ +\\ +$\beta$ & insert definition of $\beta$ here, $\beta\geq 2$ +\\ +$\gamma$ & insert definition of $\gamma$ here, $\gamma\geq 3$ +\\ +$\delta$ & insert definition of $\delta$ here, $\delta\geq 4$ +\\ +\bottomrule +\end{tabular} +\end{table} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +We summarize our notation in \Table~\tref{Table:ChapAbbr:TableExampleA}. +\lipsum[10] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TABLE: CHAPABBR: EXAMPLE B +\begin{table} +\caption[Insert an abbreviated caption here to show in the List of Tables] +{Insert the full caption here for this floating table. +The caption should provide sufficient context to interpret the table. +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. +Curabitur dictum gravida mauris.} +\label{Table:ChapAbbr:TableExampleB} +\centering\CaptionFontSize +\begin{tabular}{c@{\hspace{1em}}l@{\hspace{1em}}c} +\toprule +Variable & Initial Value & Value at $t=100$ +\\ +\midrule +$c$ & $0.012$ & $3.456$ +\\ +$\delta$ & $0.312$ & $1.416$ +\\ +$\gamma$ & $0.042$ & $3.252$ +\\ +$h$ & $0.012$ & $3.353$ +\\ +$c$ & $0.012$ & $4.446$ +\\ +$\delta$ & $0.015$ & $3.556$ +\\ +$\gamma$ & $0.612$ & $6.656$ +\\ +$h$ & $0.072$ & $7.456$ +\\ +$c$ & $0.018$ & $8.756$ +\\ +$\delta$ & $0.912$ & $9.456$ +\\ +$\gamma$ & $0.092$ & $5.956$ +\\ +$h$ & $0.012$ & $2.326$ +\\ +\bottomrule +\end{tabular} +\end{table} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\Table~\tref{Table:ChapAbbr:TableExampleB} summarizes our simulation results. +\lipsum[11] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\subsection{Examples of Enumerated and Itemized Lists} +\label{Section:ChapAbbr:SomeExamples:Lists} + +Here are some citations \cite{Examples:Conference03, Examples:Journal03, Examples:Conference04, Examples:Journal04, Examples:Conference05, Examples:Journal05}. +The following is an enumerated list, or numbered list, with multiple levels: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{enumerate} +\item +\label{Item:ChapAbbr:ItemExampleA} +First level item +\item +First level item +\begin{enumerate} +\item +Second level item +\item +Second level item +\begin{enumerate} +\item +Third level item +\begin{enumerate} +\item +Fourth level item +\item +Fourth level item +\end{enumerate} +\item +Third level item +\end{enumerate} +\item +Second level item +\end{enumerate} +\item +\label{Item:ChapAbbr:ItemExampleB} +First level item +\end{enumerate} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +We draw your attention to items \ref{Item:ChapAbbr:ItemExampleA} and \ref{Item:ChapAbbr:ItemExampleB} in particular because they are very important in our study. +The following is an itemized list, or unnumbered list, with multiple levels: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{itemize} +\item +First level item +\item +First level item +\begin{itemize} +\item +Second level item +\item +Second level item +\begin{itemize} +\item +Third level item +\begin{itemize} +\item +Fourth level item +\item +Fourth level item +\end{itemize} +\item +Third level item +\end{itemize} +\item +Second level item +\end{itemize} +\item +First level item +\end{itemize} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\section{Some More Examples} +\label{Section:ChapAbbr:SomeMoreExamples} + +According to~\cite{IEEEexample:book_typical}, this behavior can be explained this way. +\lipsum[12] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\subsection{Examples of Mathematical Expressions, Definitions, and Theorems} +\label{Section:ChapAbbr:SomeMoreExamples:Math} + +We have the following unnumbered mathematical equation: +\[ +E=mc^2. +\] +On the other hand, the following is a numbered mathematical inequality: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{align} +x \leq +\frac{\displaystyle\sum_{i=1}^{n} y^2 \cdot \one{y > 1}} +{\displaystyle\int_{-\infty}^{\infty} x^3 \;\text{d}z \cdot +\binom{\alpha}{\beta} \frac{\floor{\frac{a}{b}}}{\ceil{\frac{c}{d}}}}. +\label{Eq:ChapAbbr:EqExampleA} +\end{align} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +Inequality~\eqref{Eq:ChapAbbr:EqExampleA} will be applied multiple times to prove our theorems, in a manner similar to \cite{IEEEexample:article_typical, IEEEexample:conf_typical}. +We now introduce the following definition: + +\begin{Thm:Definition}[Name of Term Being Defined] +This is the definition of the term, along with relevant conditions, trivial cases, exceptions, etc. +\end{Thm:Definition} + +We can rewrite the result of \cite[Theorem~2.5]{IEEEexample:conf_typical} in the following convenient form for our problem: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{Thm:Proposition} +For all \mbox{$a,b,c\in\ZZ^+$}, we have +\label{Thm:Proposition:ChapAbbr:PropositionExample} +\[ +a^2+b^3\leq c^4. +\] +\end{Thm:Proposition} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +Based on our numerical observations, we make the following conjecture about the upper bound: + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{Thm:Conjecture} +If \mbox{$x\geq 3$} and \mbox{$0 +%% This is free and unencumbered software released into the +%% public domain; see for details. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% See "README.md" for instructions on compiling this document. + +\documentclass[letterpaper,nonstopmode,draftmode]{simplethesisdissertation} +% Class options: +% a4paper, letterpaper, nonstopmode, draftmode. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% PREAMBLE. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Document properties. +\def\DocumentTitle{Insert Thesis Title Here} +\def\AuthorName{Insert Author Name Here} + +% PDF settings and properties. +\hypersetup{ +pdftitle={\DocumentTitle}, +pdfauthor={\AuthorName}, +pdfsubject={Ph.D. Thesis, University Institute of College, 2016}, +pdfcreator={XeLaTeX}, +pdfproducer={}, +pdfkeywords={}, +unicode=true, +bookmarks=true, +bookmarksopen=true, +pdfstartview=FitH, +pdfpagelayout=OneColumn, +pdfpagemode=UseOutlines, +hidelinks, +breaklinks, +bookmarksnumbered} + +% Accent colors. +\definecolor{AccentOne}{RGB}{0,68,186} % blue + +% Macros: +\DeclareMathOperator*{\argmax}{arg\,max} +\DeclareMathOperator*{\argmin}{arg\,min} +\renewcommand{\binom}[2]{\left(\genfrac{}{}{0pt}{}{#1}{#2}\right)} +\newcommand{\ceil}[1]{{\left\lceil{#1}\right\rceil}} +%\newcommand{\ffrac}[2]{{\nicefrac{#1}{#2}}} +%\newcommand{\fffrac}[2]{{\left.{#1}\middle/{#2}\right.}} +\newcommand{\floor}[1]{{\left\lfloor{#1}\right\rfloor}} +\DeclareMathOperator{\lcm}{lcm} +\newcommand{\ZZ}{{\mathbb{Z}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% ACTUAL DOCUMENT. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\begin{document} + +\input{Thesis-FrontMatter.tex} + +\input{Thesis-Chapter-Intro.tex} + +\input{Thesis-Chapter-ChapAbbr.tex} + +\input{Thesis-Chapter-Summary.tex} + +\input{Thesis-BackMatter.tex} + +\end{document} diff --git a/Master/texmf-dist/tex/xelatex/simple-thesis-dissertation/simplethesisdissertation.cls b/Master/texmf-dist/tex/xelatex/simple-thesis-dissertation/simplethesisdissertation.cls new file mode 100644 index 00000000000..c10a6e53d95 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/simple-thesis-dissertation/simplethesisdissertation.cls @@ -0,0 +1,633 @@ +% !TEX TS-program = xelatex +% !TEX encoding = UTF-8 Unicode +% -*- coding: UTF-8; -*- +% vim: set fenc=utf-8 + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% simplethesisdissertation.cls +%% +%% This is free and unencumbered software released into the +%% public domain; see for details. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} + +\ProvidesClass{simplethesisdissertation}[2016/12/25 Simple Thesis Dissertation https://github.com/zachscrivena/simple-thesis-dissertation] + +\DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{report}} +\DeclareOption{letterpaper}{\PassOptionsToClass{\CurrentOption}{report}} + +% Run in non-stop mode. +\DeclareOption{nonstopmode}{\nonstopmode} + +% Draft mode. +\newcommand{\TypesetInDraftMode}{0} +\DeclareOption{draftmode}{\renewcommand{\TypesetInDraftMode}{1}} + +\ProcessOptions\relax + +% Use report class as the base class. +\LoadClass[12pt,oneside]{report} + +% Geometry package for page margins. +% A4-size (210 mm × 297 mm) single-sided pages +\RequirePackage[ +left=25.4mm, +right=25.4mm, +top=20mm, +bottom=16mm, +headsep=6mm, % header separation, above text body +footskip=6mm] % footer skip, below text body +{geometry} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% MISCELLANEOUS PACKAGES. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[none]{hyphenat} % Disable hyphenation. +\RequirePackage[english]{babel} % For language-specific hyphenation. +\RequirePackage{cite} % Automatically sort and range citations numbers. +\RequirePackage{environ} % For easy definition of environments. +\RequirePackage{rotating} % For rotating objects. +\RequirePackage{framed} % For framed text. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% PDF OUTPUT. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% PDF settings and properties. +\RequirePackage{hyperref} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% COLORS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage[usenames]{color} % For colors. +\definecolor{AccentOne}{RGB}{0,68,186} % blue + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% FONTS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{fontspec} +\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like "---". +\RequirePackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc.). +\RequirePackage{xltxtra} % Extra customizations for XeLaTeX. +\RequirePackage{lmodern} % For Latin Modern fonts. + +% Font: Main font, \textnormal{}, \normalfont. +\setmainfont +[Path=./Fonts/tinos/, +ItalicFont=Tinos-Italic, +BoldFont=Tinos-Bold, +BoldItalicFont=Tinos-BoldItalic, +Scale=1.00] +{Tinos-Regular.ttf} + +% Font: Roman font, \textrm{}, \rmfamily. +\setromanfont +[Path=./Fonts/tinos/, +ItalicFont=Tinos-Italic, +BoldFont=Tinos-Bold, +BoldItalicFont=Tinos-BoldItalic, +Scale=1.00] +{Tinos-Regular.ttf} + +% Font: Sans-serif font, \textsf{}, \sffamily. +\setsansfont +[Path=./Fonts/carlito/, +ItalicFont=Carlito-Italic, +BoldFont=Carlito-Bold, +BoldItalicFont=Carlito-BoldItalic, +Scale=0.95] +{Carlito-Regular.ttf} + +% Font: Monospace font, \texttt{}, \ttfamily. +\setmonofont +[Path=./Fonts/mplus/, +BoldFont=mplus-1m-bold, +Scale=0.95] +{mplus-1m-regular.ttf} + +% Symbols. +\RequirePackage{textcomp} % For symbols. +\RequirePackage{underscore} % Use underscore symbol without escape sequence. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% SECTION HEADINGS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Section heading fonts. +\RequirePackage[explicit]{titlesec} + +\titlespacing*{\part}% +{0em}% left +{8em}% vertical space before title +{4em}% vertical space after title +[0em]% right + +\titleformat{\part} +[display]% shape +{\sffamily\bfseries\filcenter}% applied to label and text +{\fontsize{16}{19.2}\selectfont\color{AccentOne}PART~\thepart}% applied to the label only +{1em}% vertical spacing between label and text +{\fontsize{32}{38.4}\selectfont{#1}}% applied before the text +[]% applied after the text + +\titleformat{name=\part,numberless} +[display]% shape +{\sffamily\bfseries\filcenter}% applied to label and text +{\fontsize{16}{19.2}\selectfont\color{AccentOne}~}% applied to the label only +{1em}% vertical spacing between label and text +{\fontsize{32}{38.4}\selectfont{#1}}% applied before the text +[]% applied after the text + +\titlespacing*{\chapter}% +{0em}% left +{5em}% vertical space before title +{2em}% vertical space after title +[0em]% right + +\titleformat{\chapter} +[display]% shape +{\sffamily\bfseries\raggedright}% applied to label and text +{\fontsize{17.5}{21}\selectfont\color{AccentOne}CHAPTER~\thechapter}% applied to the label only +{0em}% vertical spacing between label and text +{\fontsize{30}{36}\selectfont{#1}}% applied before the text +[]% applied after the text + +\titleformat{name=\chapter,numberless} +[display]% shape +{\sffamily\bfseries\raggedright}% applied to label and text +{\fontsize{17.5}{21}\selectfont\color{AccentOne}~}% applied to the label only +{0em}% vertical spacing between label and text +{\fontsize{30}{36}\selectfont{#1}}% applied before the text +[]% applied after the text + +\titleformat{\section}% +[hang]% shape +{\fontsize{17}{20.4}\selectfont\sffamily\bfseries\raggedright}% applied to label and text +{\color{AccentOne}\thetitle}% applied to the label only +{0.5em}% horizontal spacing between label and text +{#1}% applied before the text +[]% applied after the text + +\titleformat{\subsection}% +[hang]% shape +{\fontsize{14.5}{17.4}\selectfont\sffamily\bfseries\raggedright}% applied to label and text +{\color{AccentOne}\thetitle}% applied to the label only +{0.5em}% horizontal spacing between label and text +{#1}% applied before the text +[]% applied after the text + +\titleformat{\subsubsection}% +[hang]% shape +{\fontsize{13}{15.6}\selectfont\sffamily\bfseries\raggedright}% applied to label and text +{\color{AccentOne}\thetitle}% applied to the label only +{0.5em}% horizontal spacing between label and text +{#1}% applied before the text +[]% applied after the text + +\titlespacing*{\paragraph}% +{\parindent}% left +{\parskip}% vertical space before title +{0.5em}% horizontal space after title +[]% right + +\titleformat{\paragraph}% +[runin]% shape +{\sffamily\bfseries}% applied to label and text +{}% applied to the label only +{0em}% horizontal spacing between label and text +{#1.}% applied before the text +[]% applied after the text + +\titlespacing*{\subparagraph}% +{2\parindent}% left +{\parskip}% vertical space before title +{0.5em}% horizontal space after title +[]% right + +\titleformat{\subparagraph}% +[runin]% shape +{\sffamily\bfseries\itshape}% applied to label and text +{}% applied to the label only +{0em}% horizontal spacing between label and text +{#1.}% applied before the text +[]% applied after the text + +% Section numbering depth. +\setcounter{secnumdepth}{10} + +% Macros to capture section names. +\def\Chaptername{} +\let\Chaptermark\chaptermark +\def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} +\def\Sectionname{} +\let\Sectionmark\sectionmark +\def\sectionmark#1{\def\Sectionname{#1}\Sectionmark{#1}} +\def\Subsectionname{} +\let\Subsectionmark\subsectionmark +\def\subsectionmark#1{\def\Subsectionname{#1}\Subsectionmark{#1}} +\def\Subsubsectionname{} +\let\Subsubsectionmark\subsubsectionmark +\def\subsubsectionmark#1{\def\Subsubsectionname{#1}\Subsubsectionmark{#1}} + +% References to parts. +\newcommand{\Part}{{\color{AccentOne}Part}} +\newcommand{\Parts}{{\color{AccentOne}Parts}} +\newcommand{\pref}[1]{{\color{AccentOne}\ref{#1}}} + +% References to chapters. +\newcommand{\Chapter}{{\color{AccentOne}Chapter}} +\newcommand{\Chapters}{{\color{AccentOne}Chapters}} +\newcommand{\cref}[1]{{\color{AccentOne}\ref{#1}}} + +% References to sections. +\newcommand{\Section}{{\color{AccentOne}Section}} +\newcommand{\Sections}{{\color{AccentOne}Sections}} +\newcommand{\sref}[1]{{\color{AccentOne}\ref{#1}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% PARAGRAPHS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Line spacing. +\RequirePackage{setspace} +%\singlespacing +\onehalfspacing +%\doublespacing +%\setstretch{1.40} % custom + +% Paragraph indentation: +% Indent first line of all paragraphs (including the first), +% as in IEEE style. +\let\@afterindentfalse\@afterindenttrue + +% Indented blocks. +\newcommand{\IndentBlock}[1]{\noindent\hangafter=0\hangindent=#1\parindent\ignorespaces} +\newcommand{\IndentHanging}{\noindent\hangafter=1\hangindent=\parindent\ignorespaces} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% HEADERS AND FOOTERS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Header and footer font. +\newcommand{\UseHeaderFooterFont}{\footnotesize\sffamily} + +% Footer. +\ifnum\TypesetInDraftMode=0 +\newcommand{\FooterText}{} +\else +\newcommand{\FooterText}{\null\hfill\color{red}{DRAFT}~\Timestamp\hfill\null} +\fi + +% Empty style, for title page. +\def\ps@empty{% +\def\@oddhead{\UseHeaderFooterFont}% +\def\@evenhead{\UseHeaderFooterFont}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} + +% Plain style, for chapter pages. +\def\ps@plain{% +\def\@oddhead{\UseHeaderFooterFont% +\hfill\thepage\hfill}% +\def\@evenhead{\UseHeaderFooterFont% +\hfill\thepage\hfill}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} + +\iffalse +% Plain style, for chapter pages. +\def\ps@plain{% +\def\@oddhead{\UseHeaderFooterFont% +\MakeUppercase{\DocumentTitle}\hfill\thepage}% +\def\@evenhead{\UseHeaderFooterFont% +\thepage\hfill\MakeUppercase{\DocumentTitle}}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} + +% Regular style, for regular pages in numbered chapters. +\def\ps@regular{% +\def\@oddhead{\UseHeaderFooterFont% +\MakeUppercase{\chaptername~\thechapter~~\Chaptername}\hfill\thepage}% +\def\@evenhead{\UseHeaderFooterFont% +\thepage\hfill\MakeUppercase{\DocumentTitle}}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} + +% Regular style, for regular pages in unnumbered chapters. +\def\ps@regularunnumberedchapters{% +\def\@oddhead{\UseHeaderFooterFont% +\MakeUppercase{\Chaptername}\hfill\thepage}% +\def\@evenhead{\UseHeaderFooterFont% +\thepage\hfill\MakeUppercase{\DocumentTitle}}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% FOOTNOTES. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Blank footnotes. +\newcommand\BlankFootnote[1]{% +\begingroup% +\renewcommand{\thefootnote}{}% +\footnotetext{#1}% +\addtocounter{footnote}{-1}% +\addtocounter{Hfootnote}{-1}% +\endgroup} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% LISTS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Numbered lists in IEEE style. +% (Individual lists can be modified by redefining +% these macros inside the enumerate environment.) + +% 1st level: 1), 2), 3) +\renewcommand{\theenumi}{\arabic{enumi}} +\renewcommand{\labelenumi}{\theenumi)} +% 2nd level: a), b), c) +\renewcommand{\theenumii}{\alph{enumii}} +\renewcommand{\labelenumii}{\theenumii)} +\renewcommand\p@enumii{} +% 3rd level: i), ii), iii) +\renewcommand{\theenumiii}{\roman{enumiii}} +\renewcommand{\labelenumiii}{\theenumiii)} +\renewcommand\p@enumiii{} +% 4th level: A), B), C) +\renewcommand{\theenumiv}{\Alph{enumiv}} +\renewcommand{\labelenumiv}{\theenumiv)} +\renewcommand\p@enumiv{} + +% Numbered lists: Adjust spacing. +\let\oldenumerate\enumerate +\renewcommand{\enumerate}{ +\oldenumerate +\setlength{\itemsep}{0pt} +\setlength{\parskip}{0pt} +\setlength{\parsep}{0pt} +} + +% Itemized lists: Adjust spacing. +\let\olditemize\itemize +\renewcommand{\itemize}{ +\olditemize +\setlength{\itemsep}{0pt} +\setlength{\parskip}{0pt} +\setlength{\parsep}{0pt} +} + +% Definition items. +\newcommand{\DefineItem}[1]{% +\IndentBlock{1}#1\nopagebreak +\par\IndentBlock{2}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% FIGURES AND TABLES. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{graphicx} % To support graphics in EPS format. +\RequirePackage{longtable} % For multi-page long tables. +\RequirePackage{multirow} % To support multi-row cells in tables. +\RequirePackage{booktabs} % For making nice tables. +\RequirePackage{array} % For better table content alignment. + +% Adjust spacing between table rows. +\renewcommand*\arraystretch{1.25} + +% Dashed lines in tables. +\RequirePackage{arydshln} +\def\dashvertical{;{2pt/3pt}} +\def\dashhorizontal{\hdashline[2pt/3pt]} + +% Captions for figures and tables. +\newcommand{\CaptionFontSize}{\small} + +\def\@figurestring{figure} +\def\@tablestring{table} +\def\@makecaption#1#2{% +\CaptionFontSize +\ifx\@captype\@figurestring +\vskip1em +\fi +\sbox\@tempboxa{{\color{AccentOne}\sffamily\bfseries\MakeUppercase{#1}}\hspace{0.5em}#2}% +\ifdim\wd\@tempboxa>\hsize +{{\color{AccentOne}\sffamily\bfseries\MakeUppercase{#1}}\hspace{0.5em}#2}% +\else +\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% +\fi +\ifx\@captype\@tablestring +\vskip1em +\fi +} + +% References to figures. +\newcommand{\Figure}{{\color{AccentOne}Figure}} +\newcommand{\Figures}{{\color{AccentOne}Figures}} +\newcommand{\fref}[1]{{\color{AccentOne}\ref{#1}}} + +% References to tables. +\newcommand{\Table}{{\color{AccentOne}Table}} +\newcommand{\Tables}{{\color{AccentOne}Tables}} +\newcommand{\tref}[1]{{\color{AccentOne}\ref{#1}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% DATE AND TIME. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{datetime2} % For dates and times. + +% Timestamp. +\newcommand{\Timestamp}{{\DTMnow}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% MATHEMATICS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{amsmath,amsfonts,amsbsy,amssymb,amsthm} % AMS packages. + +% Indicator function "1[.]" symbol. +% Option 1: Use "\mathbf" +%\newcommand{\one}[1]{{\mathbf{1}\left[#1\right]}} +% Option 2: Use "bbold" package (install "bbold-type1" first) +\DeclareSymbolFont{bbold}{U}{bbold}{m}{n} +\DeclareSymbolFontAlphabet{\mathbbold}{bbold} +\newcommand{\one}[1]{{\mathbbold{1}\left[#1\right]}} +% Option 3: Use "dsfont" package +%\RequirePackage{dsfont} +%\newcommand{\one}[1]{{\mathds{1}\left[#1\right]}} + +% Allow line breaks within math blocks. +\allowdisplaybreaks + +% Prevent line breaks within math expressions. +\relpenalty=10000 +\binoppenalty=10000 +\sloppy + +% Theorems (cf. "amsthm.sty"). +\newtheoremstyle{MyPlain}% +{0.4em}% space above +{0.4em}% space below +{\itshape}% body font +{}% indent amount +{}% theorem head font +{}% punctuation after theorem head +{0.5em}% space after theorem head +{\sffamily\bfseries{\color{AccentOne}\MakeUppercase{\thmname{#1}\thmnumber{ #2}}}\thmnote{ (#3)}}% custom theorem head spec + +\newtheoremstyle{MyDefinition}% +{0.4em}% space above +{0.4em}% space below +{}% body font +{}% indent amount +{}% theorem head font +{}% punctuation after theorem head +{0.5em}% space after theorem head +{\sffamily\bfseries{\color{AccentOne}\MakeUppercase{\thmname{#1}\thmnumber{ #2}}}\thmnote{ (#3)}}% custom theorem head spec + +\theoremstyle{MyPlain} + +\@ifundefined{chapter} +{\newtheorem{Thm:Theorem}{Theorem}[]} +{\newtheorem{Thm:Theorem}{Theorem}[chapter]} + +\newtheorem{Thm:Lemma}[Thm:Theorem]{Lemma} +\newtheorem{Thm:Corollary}[Thm:Theorem]{Corollary} +\newtheorem{Thm:Claim}[Thm:Theorem]{Claim} +\newtheorem{Thm:Proposition}[Thm:Theorem]{Proposition} +\newtheorem{Thm:Conjecture}[Thm:Theorem]{Conjecture} + +\theoremstyle{MyDefinition} +\newtheorem{Thm:Problem}[Thm:Theorem]{Problem} +\newtheorem{Thm:Definition}[Thm:Theorem]{Definition} +\newtheorem{Thm:Example}[Thm:Theorem]{Example} + +% References to theorems, lemmas, corollaries, etc. +\newcommand{\Theorem}{{\color{AccentOne}Theorem}} +\newcommand{\Theorems}{{\color{AccentOne}Theorems}} +\newcommand{\Lemma}{{\color{AccentOne}Lemma}} +\newcommand{\Lemmas}{{\color{AccentOne}Lemmas}} +\newcommand{\Corollary}{{\color{AccentOne}Corollary}} +\newcommand{\Corollaries}{{\color{AccentOne}Corollaries}} +\newcommand{\Claim}{{\color{AccentOne}Claim}} +\newcommand{\Claims}{{\color{AccentOne}Claims}} +\newcommand{\Proposition}{{\color{AccentOne}Proposition}} +\newcommand{\Propositions}{{\color{AccentOne}Propositions}} +\newcommand{\Conjecture}{{\color{AccentOne}Conjecture}} +\newcommand{\Conjectures}{{\color{AccentOne}Conjectures}} +\newcommand{\Problem}{{\color{AccentOne}Problem}} +\newcommand{\Problems}{{\color{AccentOne}Problems}} +\newcommand{\Definition}{{\color{AccentOne}Definition}} +\newcommand{\Definitions}{{\color{AccentOne}Definitions}} +\newcommand{\Example}{{\color{AccentOne}Example}} +\newcommand{\Examples}{{\color{AccentOne}Examples}} +\newcommand{\mref}[1]{{\color{AccentOne}\ref{#1}}} + +% References to equations. +%\let\origeqref=\eqref +%\def\eqref#1{{\color{AccentOne}\origeqref{#1}}} + +% Proof. +\renewenvironment{proof}[1][\proofname]{% +{\par\vskip0.4em\noindent% +\sffamily\bfseries\itshape{#1:}% +\hspace{0.5em}}}% +{\nopagebreak\hspace*{\fill}~\mbox{\rule[0pt]{1.3ex}{1.3ex}}\par} + +\newcommand{\qedmarker}{\nopagebreak\hspace*{\fill}~% +\mbox{\rule[0pt]{1.3ex}{1.3ex}}\par} + +% Resized "align" environment. +\NewEnviron{ResizedAlign}[2]{% +\par\noindent +\resizebox{#1}{!}{ +\parbox{#2}{ +\begin{align} +\BODY +\end{align}}}\par} + +% Resized "align*" environment. +\NewEnviron{ResizedAlign*}[2]{% +\par\noindent +\resizebox{#1}{!}{ +\parbox{#2}{ +\begin{align*} +\BODY +\end{align*}}}\par} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% CODE. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{algpseudocode} % For algorithms. + +\algnewcommand{\CommentLeft}[1]{\State $\triangleright$\;\textit{#1}} +\algnewcommand{\CommentRight}[1]{\null\hfill $\triangleright$\;\textit{#1}} +\algnewcommand{\Goto}{\State \textbf{goto}\,} +\algnewcommand{\Break}{\State \textbf{break}\,} +\algnewcommand{\Stateu}{\Statex \hskip\ALG@thistlm} + +% Inline code. +\newcommand{\code}[1]{\mbox{\color{DarkBlue}\texttt{#1}}} + +% Code block. +\NewEnviron{CodeBlock}[1]{% +\par\noindent\ignorespaces% +\begin{oframed}% +\noindent\;\textbf{#1} +\nopagebreak\vspace{4pt}% +\hrule width \textwidth height 0.6pt depth 0pt +\vspace{4pt}% +\begin{algorithmic}[1] +\BODY +\ignorespaces% +\end{algorithmic}% +\end{oframed}% +\par} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% TABLE OF CONTENTS (TOC) SETTINGS. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% TOC depth. +\setcounter{tocdepth}{10} + +% Suppress entries in the TOC. +\newcommand{\DummyThree}[3]{} + +\newcommand{\DisableTOCUpdates}{% +\let\tempaddcontentsline=\addcontentsline +\let\addcontentsline=\DummyThree} + +\newcommand{\EnableTOCUpdates}{% +\let\addcontentsline=\tempaddcontentsline} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% HIDDEN TEXT, TODO MARKER, SAMPLE/BLIND TEXT. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Hidden text. +\newcommand{\Hide}[1]{} + +% TODO marker. +\ifnum\TypesetInDraftMode=0 +\newcommand{\TODO}[1]{} +\else +\newcommand{\TODO}[1]{{\color{red}\fbox{\texttt{\textbf{TODO}}}~#1}\PackageWarning{TODO:}{#1}} +\fi + +% Sample/blind text. +\RequirePackage{lipsum} + +\ifnum\TypesetInDraftMode=0 +\renewcommand{\lipsum}[1][]{} +\fi + +% End of class file. +\endinput -- cgit v1.2.3