diff options
author | Norbert Preining <norbert@preining.info> | 2023-06-21 03:00:51 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-06-21 03:00:51 +0000 |
commit | 16d6a70c44a97b15c195cf6b10f59f3deadd0e66 (patch) | |
tree | 5bcad01a9bbbb2a9f79dc7f9838bcda60024164d /macros/latex/contrib/mitthesis/examples/font_samples | |
parent | cce87a5ab0d6acdcd0d1425a8a86696c803785b4 (diff) |
CTAN sync 202306210300
Diffstat (limited to 'macros/latex/contrib/mitthesis/examples/font_samples')
21 files changed, 2954 insertions, 0 deletions
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf Binary files differindex f2bc9f2a7e..8e7bfb658b 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Fira-newtxsf.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf Binary files differindex 45c1769bee..b0ef64f09c 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Fira-newtxsf.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf Binary files differindex 10b658fc9d..be6b61f387 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf Binary files differindex b4a118e17f..1386a6dd90 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf Binary files differindex 78a2027168..1fa067f258 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf Binary files differindex 2efd9fefe6..e06e4593c2 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf Binary files differindex c448aa1159..25068af4e5 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf Binary files differindex 8ff17c4a24..644c1847a8 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf Binary files differindex b118214e28..214db239aa 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf Binary files differindex edd2ef9d6f..07a2ea28b2 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex new file mode 100644 index 0000000000..0d763ceadc --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=defaultfonts,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Fira_Newtxsf.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Fira_Newtxsf.tex new file mode 100644 index 0000000000..4dda829043 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Fira_Newtxsf.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=fira-newtxsf,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Heros-Stix2.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Heros-Stix2.tex new file mode 100644 index 0000000000..78b5cb85b4 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Heros-Stix2.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=heros-stix2,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex new file mode 100644 index 0000000000..864cac6b7c --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=libertine,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex new file mode 100644 index 0000000000..96810ffc4a --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=lucida,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx-sans-text.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx-sans-text.tex new file mode 100644 index 0000000000..013dd138d5 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx-sans-text.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=newtx-sans-text,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex new file mode 100644 index 0000000000..03964967c9 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=newtx,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/README_font_sample_sources.txt b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/README_font_sample_sources.txt new file mode 100644 index 0000000000..c4d5c782c1 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/README_font_sample_sources.txt @@ -0,0 +1,14 @@ + +NOTE ON FONT SAMPLE SOURCES + +These font sample files call the following additional files as inputs: + +abstract.tex +acknowledgments.tex +appendixa.tex +biography.tex +chapter1.tex +mitthesis-sample.bib +mydesign.tex + +All of those files are in the directory mitthesis/MIT-thesis-template. diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex new file mode 100644 index 0000000000..93566f9925 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=stix2,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes-Stix2.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes-Stix2.tex new file mode 100644 index 0000000000..ee8efc6205 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes-Stix2.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=termes-stix2,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex new file mode 100644 index 0000000000..5d1857b244 --- /dev/null +++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex @@ -0,0 +1,294 @@ +% !TEX encoding = UTF-8 Unicode +% !BIB TS-program = biber +% !BIB program = biber + +% This file is MIT-Thesis.tex, a template for producing MIT theses with the mitthesis class. +% Version: 1.00, 2023/06/17 +% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit + +% Documentation: https://ctan.org/pkg/mitthesis + +%% Don't modify the \DocumentMetadata command unless you know what it does. +%% If this command throws an "undefined" error, your latex system is out of date: try commenting this command out. +\DocumentMetadata +{ + pdfstandard = a-2b, + pdfversion = 1.7, + lang = en-US, +% debug = {xmp-export}, % output xmpi file to directly examine metadata +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[fontset=termes,mydesign]{mitthesis} +% +% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages. +% option [lineno] provides line numbers, as for editing +% option [mydesign] loads titlesec, enumitem, caption, subcaption - you may edit the mydesign.tex file as you like it. +% option [fontset] is a keyvalue which can be: +% pdftex or unicode engines: defaultfonts, libertine, lucida +% pdftex only: fira-newtxsf, newtx, newtx-sans-text +% unicode engines (luatex): heros-stix2, stix2, termes, termes-stix2 +% if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the latex font". +% You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts]. +% If you are using multiple languages, load the babel package in your fontset file, before the fonts. + +%%%%%%%%% Packages used in sample chapters (not otherwise required) %%%%%%% + +%% Package for code listing in Appendix A. +\usepackage{listings} + +%% Set chemical formulas nicely +\usepackage[version=4]{mhchem} + +%% Latin filler used in Chapter 1, with a test for package version date +\usepackage{lipsum} +\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} + + +%%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically) +%% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set: + +% \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath + + +%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex} + +\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= + +%% These two commands enable line breaks in long URLs in the bibliography (delete if you don't want that) +\setcounter{biburllcpenalty}{7000} +\setcounter{biburlucpenalty}{8000} + +% biblatex is very powerful, and you can customize most aspects the reference list and citations. + + +%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\RequirePackage[numbers,sort&compress]{natbib} + +%%% add bibliography to table of contents +%\apptocmd{\bibliography}{\addcontentsline{toc}{chapter}{\protect\textbf{\bibname}}}{}{} + +%%% You can use this to rename the bibliography section +%\renewcommand{\bibname}{References} + +%%% Can adjust space between bibliography items (change 4pt to something else; don't drop last two lengths, they are stretchable "glue") +%\setlength\bibsep{4pt plus 1pt minus 1pt} + + +%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{booktabs}% better quality tables +\usepackage{array}% additional options for table columns + +%\usepackage{tabularx} + +%\usepackage{dcolumn} % alignment on decimal places +%\newcolumntype{d}[1]{D{.}{.}{#1}} + + +%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Back in the typewriter era, double spaced lines were convenient for editing with a pencil. +%% In typography, the separation between lines is called "leading", and it is usually set in +%% proportion to the font size (i.e., when the font is loaded). If you really feel the need +%% to change the line separation, the most attractive results will be obtained by changing the +%% leading in proportion to the the current font size, rather than just doubling the space. + +%% The setspace package provides a tool for changing line separation (use these here) +% +%\usepackage{setspace} +%\setstretch{1.1}% you can choose some other value for the stretch of space between lines +% +%% Use the these commands AFTER the frontmatter +% +%\onehalfspacing +%\doublespacing +%\singlespacing % will turn these effects off (you can use these anywhere in the document) + +%% The best result may be to stay with leading selected by the typographer who set up the font. + + +%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\def\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!! + +\hypersetup{% +% +% Be sure to change the following to your own information! <======== !!! +% + pdftitle={MIT thesis template}, + pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT}, + pdfauthor={\YourName}, + pdfauthortitle={Professor of Mechanical Engineering}, + pdfcaptionwriter={\YourName}, +% pdfcaptionwriter={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..} + pdfurl={https://lienhard.mit.edu}, + pdfcontactemail={lienhard@mit.edu}, + pdfcontactaddress={77 Massachusetts Avenue, Room 3-166}, + pdfcontactcity={Cambridge, MA}, + pdfcontactpostcode={02139}, + pdfcontactcountry={USA}, + pdfcontacturl={https://lienhard.mit.edu}, +% + pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about +% + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=violet, + filecolor=red, +% anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does) +% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata +% + pdfborder={0 0 0}, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, +% pdfpagemode=UseNone,% this option means don't open bookmarks panel + pdfpagelayout=SinglePage, + pdfdisplaydoctitle=true, + pdfstartview=Fit, + pdfnewwindow=true, +% + pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},% definitions made by class file, don't change + pdflicenseurl={\CCurl},% definition made by class file, don't change +} + +%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\begin{document} + + +%%% edit the following commands to match your thesis %%%%%%%%%% + +\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air} + +% \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][... +% Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted + +% note on names: most of the following names are made up; Silas Holman was a professor at MIT in the 19th century. + +\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876] +%\Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] + +% Use once for each degree fulfilled by thesis +\Degree{Bachelor of Science in Physics}{Department of Physics} +%\Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering} + +% If there is more than one supervisor, use the \Supervisor command for each. +\Supervisor{Edward C. Pickering}{Professor of Physics} +%\Supervisor{Secunda Castor}{Department of Mechanical Engineering} + +% Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) +% If more than one department, use more than once +\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Graduate Officer, First Degree Department} +%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department} + +% If your title page is overflowing (from too many names, degrees, etc.), you can scale +% down the Signature block at the bottom with this command, or use another creative solution... +%\SignatureBlockSize{\small} + +% Usage: \DegreeDate{Month}{year} +% Valid degree months are September, February, or June. +\DegreeDate{June}{1876} + +% Date that final thesis is submitted to department +\ThesisDate{May 18, 1876} + + +%%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% If you are using a cc license, put details of your cc license here. +% Omit this command if you are not using a cc license. +% +\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/} +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% Titlepage +\maketitle + \cleardoublepage% for two-sided printing, this puts abstract on a right-hand (odd) page, possibly inserting a blank page + % if the the class option [twoside] is omitted, the command just begins a new page + + +%%%%%%%%% Contents that you need to write follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...} +% for usage, see https://latexref.xyz/dev/latex2e.html#g_t_005cinclude-_0026-_005cincludeonly + +%%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% The abstract environment creates all the required headers and footnote. +% You only need to add the text of the abstract itself in the file abstract.tex +\begin{abstract} + \input{abstract.tex}% in this case, use \input rather than \include because you are inside an environment +\end{abstract} + \cleardoublepage + +\include{acknowledgments.tex}% + \cleardoublepage + +\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format + \cleardoublepage + + +%%% Table of contents and lists of stuff (edit only if you want different lists) %%%%%%%%%%%%%%%% + + \pdfbookmark[0]{Table of Contents}{toc}% +\tableofcontents + \cleardoublepage + + \phantomsection +\listoffigures + \addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}% + \cleardoublepage + + \phantomsection +\listoftables + \addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}% + \cleardoublepage + + +%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% If you really feel the need to engage in "double spacing", you can start here... + +\include{chapter1.tex} +%\include{chapter2.tex} +%\include{chapter3.tex} + + +%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appendix +\include{appendixa.tex} + + +%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text +% +\printbibliography[title={References},heading=bibintoc] +} +% biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566 +% see the biblatex manual, section 3.14.3 + + +%%%% Option for natbib %%%%%%%%%%%%% +%% use an appropriate style (.bst) and your own .bib file[s] + +%\bibliographystyle{plainnat} +%\bibliography{mitthesis-sample.bib} + +\end{document} +
\ No newline at end of file |