diff --git a/.gitignore b/.gitignore index 4123a57..74aeab0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +## User scripts and notes: +\!* + ## Core latex/pdflatex auxiliary files: *.aux *.lof diff --git a/Figure-ChapAbbr-FigureExampleA.pdf b/Figure-ChapAbbr-FigureExampleA.pdf new file mode 100644 index 0000000..7254c00 Binary files /dev/null and b/Figure-ChapAbbr-FigureExampleA.pdf differ diff --git a/Figure-ChapAbbr-FigureExampleB.pdf b/Figure-ChapAbbr-FigureExampleB.pdf new file mode 100644 index 0000000..7254c00 Binary files /dev/null and b/Figure-ChapAbbr-FigureExampleB.pdf differ diff --git a/Figure-SchoolLogo.pdf b/Figure-SchoolLogo.pdf new file mode 100644 index 0000000..7254c00 Binary files /dev/null and b/Figure-SchoolLogo.pdf differ diff --git a/Figures/Figure-SampleVectorGraphic.odg b/Figures/Figure-SampleVectorGraphic.odg new file mode 100644 index 0000000..16b1970 Binary files /dev/null and b/Figures/Figure-SampleVectorGraphic.odg differ diff --git a/Figures/Figure-SampleVectorGraphic.pdf b/Figures/Figure-SampleVectorGraphic.pdf new file mode 100644 index 0000000..7254c00 Binary files /dev/null and b/Figures/Figure-SampleVectorGraphic.pdf differ diff --git a/Fonts/carlito/Carlito-Bold.ttf b/Fonts/carlito/Carlito-Bold.ttf new file mode 100644 index 0000000..b29a590 Binary files /dev/null and b/Fonts/carlito/Carlito-Bold.ttf differ diff --git a/Fonts/carlito/Carlito-BoldItalic.ttf b/Fonts/carlito/Carlito-BoldItalic.ttf new file mode 100644 index 0000000..0eaa04e Binary files /dev/null and b/Fonts/carlito/Carlito-BoldItalic.ttf differ diff --git a/Fonts/carlito/Carlito-Italic.ttf b/Fonts/carlito/Carlito-Italic.ttf new file mode 100644 index 0000000..64df01e Binary files /dev/null and b/Fonts/carlito/Carlito-Italic.ttf differ diff --git a/Fonts/carlito/Carlito-Regular.ttf b/Fonts/carlito/Carlito-Regular.ttf new file mode 100644 index 0000000..6b7e0e3 Binary files /dev/null and b/Fonts/carlito/Carlito-Regular.ttf differ diff --git a/Fonts/carlito/LICENSE b/Fonts/carlito/LICENSE new file mode 100644 index 0000000..e999b31 --- /dev/null +++ b/Fonts/carlito/LICENSE @@ -0,0 +1,95 @@ +Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Carlito". + +This Font Software is licensed under the SIL Open Font License, +Version 1.1 as shown below. + +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 + +PREAMBLE The goals of the Open Font License (OFL) are to stimulate +worldwide development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to provide +a free and open framework in which fonts may be shared and improved in +partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. +The fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. +This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components +as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting ? in part or in whole ? +any of the components of the Original Version, by changing formats or +by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer +or other person who contributed to the Font Software. + + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components,in + Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the + corresponding Copyright Holder. This restriction only applies to the + primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + +5) The Font Software, modified or unmodified, in part or in whole, must + be distributed entirely under this license, and must not be distributed + under any other license. The requirement for fonts to remain under + this license does not apply to any document created using the Font + Software. + + + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + + + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. + diff --git a/Fonts/mplus/M+ Fonts License.txt b/Fonts/mplus/M+ Fonts License.txt new file mode 100644 index 0000000..379b9cc --- /dev/null +++ b/Fonts/mplus/M+ Fonts License.txt @@ -0,0 +1,16 @@ +M+ FONTS Copyright (C) 2002-2008 M+ FONTS PROJECT + +- + +LICENSE_E + + + + +These fonts are free softwares. +Unlimited permission is granted to use, copy, and distribute it, with +or without modification, either commercially and noncommercially. +THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY. + + +http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/ \ No newline at end of file diff --git a/Fonts/mplus/mplus-1m-bold.ttf b/Fonts/mplus/mplus-1m-bold.ttf new file mode 100644 index 0000000..d97c674 Binary files /dev/null and b/Fonts/mplus/mplus-1m-bold.ttf differ diff --git a/Fonts/mplus/mplus-1m-light.ttf b/Fonts/mplus/mplus-1m-light.ttf new file mode 100644 index 0000000..a099c6a Binary files /dev/null and b/Fonts/mplus/mplus-1m-light.ttf differ diff --git a/Fonts/mplus/mplus-1m-medium.ttf b/Fonts/mplus/mplus-1m-medium.ttf new file mode 100644 index 0000000..93aa671 Binary files /dev/null and b/Fonts/mplus/mplus-1m-medium.ttf differ diff --git a/Fonts/mplus/mplus-1m-regular.ttf b/Fonts/mplus/mplus-1m-regular.ttf new file mode 100644 index 0000000..f28fc25 Binary files /dev/null and b/Fonts/mplus/mplus-1m-regular.ttf differ diff --git a/Fonts/mplus/mplus-1m-thin.ttf b/Fonts/mplus/mplus-1m-thin.ttf new file mode 100644 index 0000000..17729e4 Binary files /dev/null and b/Fonts/mplus/mplus-1m-thin.ttf differ diff --git a/Fonts/tinos/Apache License.txt b/Fonts/tinos/Apache License.txt new file mode 100644 index 0000000..989e2c5 --- /dev/null +++ b/Fonts/tinos/Apache License.txt @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "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. \ No newline at end of file diff --git a/Fonts/tinos/Tinos-Bold.ttf b/Fonts/tinos/Tinos-Bold.ttf new file mode 100644 index 0000000..c16befb Binary files /dev/null and b/Fonts/tinos/Tinos-Bold.ttf differ diff --git a/Fonts/tinos/Tinos-BoldItalic.ttf b/Fonts/tinos/Tinos-BoldItalic.ttf new file mode 100644 index 0000000..58fc85e Binary files /dev/null and b/Fonts/tinos/Tinos-BoldItalic.ttf differ diff --git a/Fonts/tinos/Tinos-Italic.ttf b/Fonts/tinos/Tinos-Italic.ttf new file mode 100644 index 0000000..64dd43b Binary files /dev/null and b/Fonts/tinos/Tinos-Italic.ttf differ diff --git a/Fonts/tinos/Tinos-Regular.ttf b/Fonts/tinos/Tinos-Regular.ttf new file mode 100644 index 0000000..ae5030d Binary files /dev/null and b/Fonts/tinos/Tinos-Regular.ttf differ diff --git a/Miscellaneous/Thesis-01.png b/Miscellaneous/Thesis-01.png new file mode 100644 index 0000000..18c39b3 Binary files /dev/null and b/Miscellaneous/Thesis-01.png differ diff --git a/Miscellaneous/Thesis-05.png b/Miscellaneous/Thesis-05.png new file mode 100644 index 0000000..3637c85 Binary files /dev/null and b/Miscellaneous/Thesis-05.png differ diff --git a/Miscellaneous/Thesis-07.png b/Miscellaneous/Thesis-07.png new file mode 100644 index 0000000..c21cf08 Binary files /dev/null and b/Miscellaneous/Thesis-07.png differ diff --git a/Miscellaneous/Thesis-12.png b/Miscellaneous/Thesis-12.png new file mode 100644 index 0000000..3bae136 Binary files /dev/null and b/Miscellaneous/Thesis-12.png differ diff --git a/Miscellaneous/Thesis-14.png b/Miscellaneous/Thesis-14.png new file mode 100644 index 0000000..afaee51 Binary files /dev/null and b/Miscellaneous/Thesis-14.png differ diff --git a/Miscellaneous/Thesis-16.png b/Miscellaneous/Thesis-16.png new file mode 100644 index 0000000..ca8a52e Binary files /dev/null and b/Miscellaneous/Thesis-16.png differ diff --git a/Miscellaneous/Thesis-17.png b/Miscellaneous/Thesis-17.png new file mode 100644 index 0000000..dff56ec Binary files /dev/null and b/Miscellaneous/Thesis-17.png differ diff --git a/Miscellaneous/Thesis-18.png b/Miscellaneous/Thesis-18.png new file mode 100644 index 0000000..56d9fcc Binary files /dev/null and b/Miscellaneous/Thesis-18.png differ diff --git a/README.md b/README.md index 77ef33e..b9f172a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,45 @@ # simple-thesis-dissertation + Template for a simple thesis or dissertation (Ph.D. or master's degree) or technical report, in XeLaTeX. + +**Compiled sample document:**
+[Thesis.pdf](https://raw.githubusercontent.com/zachscrivena/simple-thesis-dissertation/master/Thesis.pdf) + +**Sample pages (click to enlarge):** + +Thesis-01 +Thesis-05 +Thesis-07 +Thesis-12 +Thesis-14 +Thesis-16 +Thesis-17 +Thesis-18 + +## 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/Thesis-BackMatter.tex b/Thesis-BackMatter.tex new file mode 100644 index 0000000..b89f6b7 --- /dev/null +++ b/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/Thesis-Chapter-ChapAbbr.tex b/Thesis-Chapter-ChapAbbr.tex new file mode 100644 index 0000000..d49645e --- /dev/null +++ b/Thesis-Chapter-ChapAbbr.tex @@ -0,0 +1,416 @@ + +\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] +{Figure-ChapAbbr-FigureExampleA} +\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] +{Figure-ChapAbbr-FigureExampleB} +\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,nonstop,draftmode]{simplethesisdissertation} +% Class options: +% a4paper, letterpaper, nonstop, 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/simplethesisdissertation.cls b/simplethesisdissertation.cls new file mode 100644 index 0000000..379871b --- /dev/null +++ b/simplethesisdissertation.cls @@ -0,0 +1,652 @@ +% !TEX TS-program = xelatex +% !TEX encoding = UTF-8 Unicode +% -*- coding: UTF-8; -*- +% vim: set fenc=utf-8 + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% SIMPLE-THESIS-DISSERTATION +%% +%% This is free and unencumbered software released into the +%% public domain; see for details. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} + +\ProvidesClass{simplethesisdissertation}[2016/11/26 Simple Thesis Dissertation https://github.com/zachscrivena/simple-thesis-dissertation] + +\DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{report}} +\DeclareOption{letterpaper}{\PassOptionsToClass{\CurrentOption}{report}} + +% Draft mode. +\newcommand{\TypesetInDraftMode}{0} +\DeclareOption{draftmode}{\renewcommand{\TypesetInDraftMode}{1}} + +% Run in non-stop mode. +\DeclareOption{nonstop}{\nonstopmode} + +\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. +\makeatletter +\let\@afterindentfalse\@afterindenttrue +\makeatother + +% 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. +\makeatletter +\def\ps@empty{% +\def\@oddhead{\UseHeaderFooterFont}% +\def\@evenhead{\UseHeaderFooterFont}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} +\makeatother + +% Plain style, for chapter pages. +\makeatletter +\def\ps@plain{% +\def\@oddhead{\UseHeaderFooterFont% +\hfill\thepage\hfill}% +\def\@evenhead{\UseHeaderFooterFont% +\hfill\thepage\hfill}% +\def\@oddfoot{\UseHeaderFooterFont\FooterText}% +\def\@evenfoot{\UseHeaderFooterFont\FooterText}} +\makeatother + +\iffalse +% Plain style, for chapter pages. +\makeatletter +\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}} +\makeatother + +% Regular style, for regular pages in numbered chapters. +\makeatletter +\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}} +\makeatother + +% Regular style, for regular pages in unnumbered chapters. +\makeatletter +\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}} +\makeatother +\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.) +\makeatletter +% 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{} +\makeatother + +% 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} + +\makeatletter +\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 +} +\makeatother + +% 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} + +\makeatletter +\@ifundefined{chapter} +{\newtheorem{Thm:Theorem}{Theorem}[]} +{\newtheorem{Thm:Theorem}{Theorem}[chapter]} +\makeatother + +\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. + +\makeatletter +\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} +\makeatother + +% 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