summaryrefslogtreecommitdiff
path: root/macros/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-08-31 03:01:22 +0000
committerNorbert Preining <norbert@preining.info>2023-08-31 03:01:22 +0000
commit7cda3a1cc32bd43dab837e2b73046dab2aeaec98 (patch)
tree48236f7b604cedb33b9977bcf4960b7dd5313641 /macros/latex
parent4fee29360f7566a474b6143951b0744fa151edc9 (diff)
CTAN sync 202308310301
Diffstat (limited to 'macros/latex')
-rw-r--r--macros/latex/contrib/jwjournal/README.md10
-rw-r--r--macros/latex/contrib/jwjournal/jwjournal-demo-cn.tex8
-rw-r--r--macros/latex/contrib/jwjournal/jwjournal-demo-en.tex8
-rw-r--r--macros/latex/contrib/jwjournal/jwjournal-demo-fr.tex8
-rw-r--r--macros/latex/contrib/jwjournal/jwjournal.cls119
-rw-r--r--macros/latex/contrib/mathastext/README.md12
-rw-r--r--macros/latex/contrib/mathastext/mathastext.dtx318
-rw-r--r--macros/latex/contrib/mathastext/mathastext.pdfbin578580 -> 574466 bytes
-rw-r--r--macros/latex/contrib/mitthesis/MIT-Thesis.pdfbin489188 -> 490683 bytes
-rw-r--r--macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex127
-rw-r--r--macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex4
-rw-r--r--macros/latex/contrib/mitthesis/README.md16
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/No_cc_license.tex75
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree.tex61
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees.tex61
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees_from_one_department.tex62
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree.tex61
-rw-r--r--macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_two_degrees.tex63
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdfbin490288 -> 490687 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdfbin319041 -> 323017 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdfbin151460 -> 151029 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdfbin454847 -> 458937 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdfbin169955 -> 169261 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdfbin270252 -> 274790 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdfbin316127 -> 320067 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdfbin159625 -> 159311 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf (renamed from macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf)bin161691 -> 161163 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdfbin157894 -> 157329 bytes
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex151
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Fira_Newtxsf.tex151
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Heros-Stix2.tex137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx-sans-text.tex137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex139
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes-stix2.tex (renamed from macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes-Stix2.tex)137
-rw-r--r--macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex138
-rw-r--r--macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex8
-rw-r--r--macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdfbin81325 -> 82805 bytes
-rw-r--r--macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex26
-rw-r--r--macros/latex/contrib/mitthesis/mitthesis.cls1072
42 files changed, 1741 insertions, 1779 deletions
diff --git a/macros/latex/contrib/jwjournal/README.md b/macros/latex/contrib/jwjournal/README.md
index 4114691820..996d0376a0 100644
--- a/macros/latex/contrib/jwjournal/README.md
+++ b/macros/latex/contrib/jwjournal/README.md
@@ -65,10 +65,10 @@ And there are only three major syntaxes for the main text:
The space(s) between `[Note]` and the text following it would be ignored.
> You may also use `【` and `】`, which is especially useful when writing Chinese.
3) Displayed images can be included via one of the following ways:
- - `|| [<width>] {<image file name>}`: show image in the middle.
- - `(( [<width>] {<image file name>}`: show image on the left.
- - `)) [<width>] {<image file name>}`: show image on the right.
- > The `[<width>]` is optional. Here `<width>` is a number like `0.75`, the unit is `\linewidth`. When `[<width>]` is not given, the width would be full `\linewidth`.
+ - `|| <⟨width⟩> {⟨image file name⟩}` or `|| {⟨image file name⟩} <⟨width⟩>`: show image in the middle.
+ - `(( <⟨width⟩> {⟨image file name⟩}` or `(( {⟨image file name⟩} <⟨width⟩>`: show image on the left.
+ - `)) <⟨width⟩> {⟨image file name⟩}` or `)) {⟨image file name⟩} <⟨width⟩>`: show image on the right.
+ > The `<⟨width⟩>` is optional. Here `⟨width⟩` is a number like `0.75`, the unit is `\linewidth`. When `<⟨width⟩>` is not given, the width would be full `\linewidth`.
With a few more for icing on the cake:
- `|`: The first vertical bar would be interpreted as `\hfill`. This allows you to write the title line as
@@ -96,7 +96,7 @@ With a few more for icing on the cake:
>> (Some remark)
>> (Another remark)
```
-- `->` and `<-`: Skip or retrieve certain vertical space, by default half of `\baselineskip`. You may specify the exact spacing in the unit of `\baselineskip`: for example, `-> [0.3]` would be skipping `0.3\baselineskip`, while `<- [.75]` means retrieving `0.75\baselineskip`.
+- `->` and `<-`: Skip or retrieve certain vertical space, by default half of `\baselineskip`. You may specify the exact spacing in the unit of `\baselineskip`: for example, `-> <0.3>` would be skipping `0.3\baselineskip`, while `<- <.75>` means retrieving `0.75\baselineskip`.
- `+++`: If a single sentence or a few words fall to the next page, you may write a `+++` before that entry to enlarge the current page by one line.
> You may write this `+++` several times if necessary, but do make sure that the number of the `+` sign is a multiple of 3.
- `===`: Three or more equal signs `=` would simply be ignored. This is for improving the readability of the code, allowing you to write your journal like:
diff --git a/macros/latex/contrib/jwjournal/jwjournal-demo-cn.tex b/macros/latex/contrib/jwjournal/jwjournal-demo-cn.tex
index 81647136b9..5ed5d23589 100644
--- a/macros/latex/contrib/jwjournal/jwjournal-demo-cn.tex
+++ b/macros/latex/contrib/jwjournal/jwjournal-demo-cn.tex
@@ -19,14 +19,14 @@
图片这可以这样引入:
- || [.4] {example-image-a}
+ || <.4> {example-image-a} % 或者 || {example-image-a} <.4>
>> (图片的注释)
>> (更多注释)
也可以靠左或者靠右显示:
- (( [.4] {example-image-a}
- -> [.3] % 加入一点竖直间距,例如这里是 0.3\baselineskip
- )) [.4] {example-image-a}
+ (( <.4> {example-image-a} % 或者 (( {example-image-a} <.4>
+ -> <.3> % 加入一点竖直间距,例如这里是 0.3\baselineskip
+ )) <.4> {example-image-a} % 或者 )) {example-image-a} <.4>
diff --git a/macros/latex/contrib/jwjournal/jwjournal-demo-en.tex b/macros/latex/contrib/jwjournal/jwjournal-demo-en.tex
index f0b85fc484..5a5d8740c9 100644
--- a/macros/latex/contrib/jwjournal/jwjournal-demo-en.tex
+++ b/macros/latex/contrib/jwjournal/jwjournal-demo-en.tex
@@ -16,14 +16,14 @@
Images can be included via:
- || [.4] {example-image-a}
+ || <.4> {example-image-a} % or || {example-image-a} <.4>
>> (Remark on the image)
>> (More remark...)
You may also show the image on the left or on the right:
- (( [.4] {example-image-a}
- -> [.3] % add some vertical spacing, here is 0.3\baselineskip
- )) [.4] {example-image-a}
+ (( <.4> {example-image-a} % or (( {example-image-a} <.4>
+ -> <.3> % add some vertical spacing, here is 0.3\baselineskip
+ )) <.4> {example-image-a} % or )) {example-image-a} <.4>
diff --git a/macros/latex/contrib/jwjournal/jwjournal-demo-fr.tex b/macros/latex/contrib/jwjournal/jwjournal-demo-fr.tex
index d8c6413bc8..865402e254 100644
--- a/macros/latex/contrib/jwjournal/jwjournal-demo-fr.tex
+++ b/macros/latex/contrib/jwjournal/jwjournal-demo-fr.tex
@@ -18,14 +18,14 @@
Les images peuvent être incluses via :
- || [.4] {example-image-a}
+ || <.4> {example-image-a} % ou || {example-image-a} <.4>
>> (Remarque sur l'image)
>> (Plus de remarque...)
Vous pouvez également afficher l'image à gauche ou à droite :
- (( [.4] {example-image-a}
- -> [.3] % ajouter un certain espace vertical, ici c'est 0.3\baselineskip
- )) [.4] {example-image-a}
+ (( <.4> {example-image-a} % ou (( {example-image-a} <.4>
+ -> <.3> % ajouter un certain espace vertical, ici c'est 0.3\baselineskip
+ )) <.4> {example-image-a} % ou )) {example-image-a} <.4>
diff --git a/macros/latex/contrib/jwjournal/jwjournal.cls b/macros/latex/contrib/jwjournal/jwjournal.cls
index f7d1da7f64..bf03993158 100644
--- a/macros/latex/contrib/jwjournal/jwjournal.cls
+++ b/macros/latex/contrib/jwjournal/jwjournal.cls
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{jwjournal}
- {2023/08/29} {}
+ {2023/08/30} {}
{JW's journal class}
\keys_define:nn { jwjournal }
@@ -119,15 +119,17 @@
\end{description}
}
-\NewDocumentCommand \JWJournalSkip { O{.5} }
+\NewDocumentCommand \JWJournalSkip { D<>{.5} }
{
% \vspace{#1\baselineskip}
- \vskip#1\baselineskip
+ % \vskip#1\baselineskip
+ \par\vspace{#1\baselineskip}
}
-\NewDocumentCommand \JWJournalBack { O{.5} }
+\NewDocumentCommand \JWJournalBack { D<>{.5} }
{
% \vspace{-#1\baselineskip}
- \vskip-#1\baselineskip
+ % \vskip-#1\baselineskip
+ \par\vspace{-#1\baselineskip}
}
\newenvironment{JWJournalCompactCenter}
@@ -148,22 +150,61 @@
#1
\end{JWJournalCompactCenter}
}
-\NewDocumentCommand \JWJournalShowImageCenter { O{1} m }
+\NewDocumentCommand \JWJournalShowImageCenter { D<>{*} m D<>{*} }
{
+ \str_if_eq:nnTF { #1 } { * }
+ {
+ \str_if_eq:nnTF { #3 } { * }
+ {
+ \tl_set:Nn \l_tmpa_tl { 1 }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #3 }
+ }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #1 }
+ }
\begin{JWJournalCenter}
- \includegraphics[width=#1\linewidth]{#2}
+ \includegraphics[width= \tl_use:N \l_tmpa_tl \linewidth]{#2}
\end{JWJournalCenter}
}
-\NewDocumentCommand \JWJournalShowImageLeft { O{1} m }
+\NewDocumentCommand \JWJournalShowImageLeft { D<>{*} m D<>{*} }
{
+ \str_if_eq:nnTF { #1 } { * }
+ {
+ \str_if_eq:nnTF { #3 } { * }
+ {
+ \tl_set:Nn \l_tmpa_tl { 1 }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #3 }
+ }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #1 }
+ }
\begin{JWJournalLeft}
- \includegraphics[width=#1\linewidth]{#2}
+ \includegraphics[width= \tl_use:N \l_tmpa_tl \linewidth]{#2}
\end{JWJournalLeft}
}
-\NewDocumentCommand \JWJournalShowImageRight { O{1} m }
+\NewDocumentCommand \JWJournalShowImageRight { D<>{*} m D<>{*} }
{
+ \str_if_eq:nnTF { #1 } { * }
+ {
+ \str_if_eq:nnTF { #3 } { * }
+ {
+ \tl_set:Nn \l_tmpa_tl { 1 }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #3 }
+ }
+ }
+ {
+ \tl_set:Nn \l_tmpa_tl { #1 }
+ }
\begin{JWJournalRight}
- \includegraphics[width=#1\linewidth]{#2}
+ \includegraphics[width= \tl_use:N \l_tmpa_tl \linewidth]{#2}
\end{JWJournalRight}
}
@@ -193,14 +234,66 @@
{ ={3,} }
{ }
\l_jwjournal_tmp_tl
+
+ \regex_match:nVT { ❄️ \ *? -> } \l_jwjournal_tmp_tl
+ {
+ \regex_match:nVTF { ❄️ \ *? -> \ *? < [\+\-\ ]*(\d+|\d*\.\d+)\ * > } \l_jwjournal_tmp_tl
+ {
+ \exp_args:Nno \regex_extract_once:nnN
+ { ❄️ \ *? -> \ *? < ([\+\-\ ]*(?:\d+|\d*\.\d+)\ *) > }
+ { \l_jwjournal_tmp_tl }
+ \l_tmpa_seq
+ \seq_pop_left:NN \l_tmpa_seq \l_tmpa_tl
+ \seq_pop_left:NN \l_tmpa_seq \l_tmpa_tl
+ \tl_gput_right:Nn \g_jwjournal_content_tl { \JWJournalSkip }
+ \tl_gput_right:Nx \g_jwjournal_content_tl { < \l_tmpa_tl > }
+ \regex_replace_once:nnN
+ { ❄️ \ *? -> \ *? < (?:[\+\-\ ]*(?:\d+|\d*\.\d+)\ *) > (.*) }
+ { ❄️ \1 }
+ \l_jwjournal_tmp_tl
+ }
+ {
+ \tl_gput_right:Nn \g_jwjournal_content_tl { \JWJournalSkip }
+ \regex_replace_once:nnN
+ { ❄️ \ *? -> \ *? (.*) }
+ { ❄️ \1 }
+ \l_jwjournal_tmp_tl
+ }
+ }
\regex_replace_all:nnN
{ -> }
{ \c{JWJournalSkip} }
\l_jwjournal_tmp_tl
+ \regex_match:nVT { ❄️ \ *? <- } \l_jwjournal_tmp_tl
+ {
+ \regex_match:nVTF { ❄️ \ *? <- \ *? < [\+\-\ ]*(\d+|\d*\.\d+)\ * > } \l_jwjournal_tmp_tl
+ {
+ \exp_args:Nno \regex_extract_once:nnN
+ { ❄️ \ *? <- \ *? < ([\+\-\ ]*(?:\d+|\d*\.\d+)\ *) > }
+ { \l_jwjournal_tmp_tl }
+ \l_tmpa_seq
+ \seq_pop_left:NN \l_tmpa_seq \l_tmpa_tl
+ \seq_pop_left:NN \l_tmpa_seq \l_tmpa_tl
+ \tl_gput_right:Nn \g_jwjournal_content_tl { \JWJournalBack }
+ \tl_gput_right:Nx \g_jwjournal_content_tl { < \l_tmpa_tl > }
+ \regex_replace_once:nnN
+ { ❄️ \ *? <- \ *? < (?:[\+\-\ ]*(?:\d+|\d*\.\d+)\ *) > (.*) }
+ { ❄️ \1 }
+ \l_jwjournal_tmp_tl
+ }
+ {
+ \tl_gput_right:Nn \g_jwjournal_content_tl { \JWJournalBack }
+ \regex_replace_once:nnN
+ { ❄️ \ *? <- \ *? (.*) }
+ { ❄️ \1 }
+ \l_jwjournal_tmp_tl
+ }
+ }
\regex_replace_all:nnN
{ <- }
{ \c{JWJournalBack} }
\l_jwjournal_tmp_tl
+
\regex_replace_all:nnN
{ \|\| }
{ \c{JWJournalShowImageCenter} }
@@ -213,6 +306,7 @@
{ \)\) }
{ \c{JWJournalShowImageRight} }
\l_jwjournal_tmp_tl
+
\regex_replace_once:nnN
{ \| }
{ \c{hfill} }
@@ -228,8 +322,7 @@
% \l_jwjournal_tmp_tl
\exp_args:Nno \regex_split:nnN { >> } { \l_jwjournal_tmp_tl } \l_tmpa_seq
\seq_pop_left:NN \l_tmpa_seq \l_tmpa_tl
- \tl_clear:N \l_jwjournal_tmp_tl
- \tl_put_right:NV \l_jwjournal_tmp_tl \l_tmpa_tl
+ \tl_set_eq:NN \l_jwjournal_tmp_tl \l_tmpa_tl
\seq_map_inline:Nn \l_tmpa_seq
{
\tl_put_right:Nn \l_jwjournal_tmp_tl
diff --git a/macros/latex/contrib/mathastext/README.md b/macros/latex/contrib/mathastext/README.md
index b008e82276..59ebf89913 100644
--- a/macros/latex/contrib/mathastext/README.md
+++ b/macros/latex/contrib/mathastext/README.md
@@ -10,11 +10,11 @@
This Work may be distributed and/or modified under the conditions
of the [LPPL1.3c](http://www.latex-project.org/lppl/lppl-1-3c.txt)
-The Author of this Work is Jean-Francois Burnol
+The Author of this Work is Jean-Francois Burnol (`jfbu at free dot fr`)
-Copyright (C) 2011-2019, 2022 Jean-Francois Burnol (`jfbu at free dot fr`)
+Copyright (C) 2011-2016, 2018, 2019, 2022, 2023 Jean-Francois Burnol
- Source: mathastext.dtx 1.3y 2022/11/04
+ Source: mathastext.dtx 1.3z 2023/09/01
DESCRIPTION
@@ -82,6 +82,12 @@ Main options: `italic`, `subdued`, `LGRgreek`.
RECENT CHANGES
==============
+1.3z \[2023/09/01\]
+----
+
+Fix 1.3y regression which broke `selfGreek` option due to internal
+renamings. Thanks to Stephan Korell for report.
+
1.3y \[2022/11/04\]
----
diff --git a/macros/latex/contrib/mathastext/mathastext.dtx b/macros/latex/contrib/mathastext/mathastext.dtx
index c95ca043e5..0bc64214ab 100644
--- a/macros/latex/contrib/mathastext/mathastext.dtx
+++ b/macros/latex/contrib/mathastext/mathastext.dtx
@@ -1,9 +1,9 @@
-% -*- coding: iso-latin-1; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z" -*-
+% -*- coding: iso-latin-1; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z"; time-stamp-active: nil -*-
% N.B.: this dtx file does NOT use \DocInput, it only uses docstrip.
% The LaTeX source of the documentation is NOT prefixed with %'s.
%<*dtx>
-\def\dtxtimestamp {Time-stamp: <04-11-2022 at 12:36:29 CET>}
-\def\docdate{2022/11/04}
+\def\dtxtimestamp {Time-stamp: <30-08-2023 at 21:41:24 CEST>}
+\def\docdate{2023/09/01}
% To extract run etex on this file, then to build documentation run
% latexmk on mathastext.tex then dvipdfmx on the dvi.
% For more information see http://jf.burnol.free.fr/v13/INSTALL.txt
@@ -11,8 +11,8 @@
% due to usage of (<A7>) as an active character.
%</dtx>
%<*drv>
-\def\MSTpkgdate {2022/11/04}
-\def\MSTpkgversion {1.3y}
+\def\MSTpkgdate {2023/09/01}
+\def\MSTpkgversion {1.3z}
%</drv>
%<*dtx>
\iffalse % meta-comment
@@ -30,11 +30,11 @@
This Work may be distributed and/or modified under the conditions
of the [LPPL1.3c](http://www.latex-project.org/lppl/lppl-1-3c.txt)
-The Author of this Work is Jean-Francois Burnol
+The Author of this Work is Jean-Francois Burnol (`jfbu at free dot fr`)
-Copyright (C) 2011-2019, 2022 Jean-Francois Burnol (`jfbu at free dot fr`)
+Copyright (C) 2011-2016, 2018, 2019, 2022, 2023 Jean-Francois Burnol
- Source: mathastext.dtx 1.3y 2022/11/04
+ Source: mathastext.dtx 1.3z 2023/09/01
%</readme>
%<*dtx>
@@ -44,9 +44,10 @@ Copyright (C) 2011-2019, 2022 Jean-Francois Burnol (`jfbu at free dot fr`)
%%----------------------------------------------------------------
%% Package: mathastext
%% Info: Use the text font in math mode (JFB)
-%% Version: 1.3y 2022/11/04
+%% Version: 1.3z 2023/09/01
%% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2016, 2018, 2019, 2022, 2023 Jean-Francois Burnol
+%% <jfbu at free dot fr>
%% Examples of use of mathastext:
%% http://jf.burnol.free.fr/mathastext.html
%% http://jf.burnol.free.fr/showcase.html
@@ -199,6 +200,12 @@ MATHASTEXT CHANGE LOG
%</changelog>
%<*readme|changelog>
+1.3z \[2023/09/01\]
+----
+
+Fix 1.3y regression which broke `selfGreek` option due to internal
+renamings. Thanks to Stephan Korell for report.
+
1.3y \[2022/11/04\]
----
@@ -1413,7 +1420,7 @@ $\mathnormal{ff}$, $\mathrm{ff}$, $\mathit{ff}$, $\mathbf{ff}$, $\mathtt{ff}$
%<*dtx>
^^Afi^^Aendgroup % end of big \iffalse block including generated files
% customization should be done in mathastext.tex, not here.
-\documentclass[abstract]{scrartcl}
+\documentclass{scrartcl}
\makeatletter
%%% START OF CUSTOM doc.sty LOADING (May 21, 2022 in xint.dtx)
%%% (October 29, 2022 here, comments trimmed)
@@ -1533,8 +1540,10 @@ $\mathnormal{ff}$, $\mathrm{ff}$, $\mathit{ff}$, $\mathbf{ff}$, $\mathtt{ff}$
\SetSymbolFont{largesymbols}{bold}{OMX}{txex}{bx}{n}
\DeclareFontSubstitution{OMX}{txex}{m}{n}
-% in order to cancel the removal done by ltxdoc
-% of comment characters inside verbatim blocks.
+% in order to cancel the removal of comment characters
+% inside verbatim blocks caused by doc.sty's redefinition
+% of \@verbatim (a macro which is not used by tagging code,
+% by the way)
\makeatletter\let\check@percent\relax\makeatother
\usepackage{color}
@@ -1546,15 +1555,13 @@ $\mathnormal{ff}$, $\mathrm{ff}$, $\mathit{ff}$, $\mathbf{ff}$, $\mathtt{ff}$
\usepackage[hscale=0.66]{geometry}
-\usepackage[pdfencoding=pdfdoc]{hyperref}
+\usepackage{hyperref}
\hypersetup{linktoc=all,%
-%hidelinks,%
colorlinks=true,%
-breaklinks=true,%
linkcolor={blue},%
urlcolor={joli},
-pdfauthor={Jean-Fran\c cois Burnol},%
+pdfauthor={Jean-Franois Burnol},%
pdftitle={The mathastext package},%
pdfsubject={LaTeX, math fonts},%
pdfkeywords={LaTeX, Fonts},%
@@ -1580,7 +1587,7 @@ pdfpagemode=UseOutlines,%
% plus loin \@jfendshrtverb
\catcode`\=13
\makeatletter
-\def{\begingroup
+\def{\leavevmode\begingroup
\let\do\@makeother\dospecials
\@jfendshrtverb }
\def\@jfendshrtverb #1#2{\hyperref[#2]{\ttfamily\hyphenchar\font=127 #1#2}\endgroup}
@@ -1591,13 +1598,14 @@ pdfpagemode=UseOutlines,%
{mathastext}\xspace}
\let\oldexists\exists\let\oldforall\forall
-
+\let\originalbullet\bullet
\usepackage[subdued,%
asterisk,%
defaultmathsizes,%
symbolmisc,symbolre,%
LGRgreek]{mathastext}
-
+\let\symbolbullet\bullet
+\let\bullet\originalbullet
% This version will use the mlmodern font which is current
% last loaded font package in preamble
\Mathastext[upright]
@@ -2335,7 +2343,7 @@ reasons of PDF file size.}%
\subsection{Main options}
- \subsubsection{The \blueit{italic} option}
+ \subsubsection[The italic option]{The \blueit{italic} option}
In the initial version |1.0|, the Latin letters in
mathematical mode assumed the exact same shape as in
@@ -2363,7 +2371,7 @@ traditional French mathematical typography.\footnote{more precisely
stated, the value of \cs{shapedefault} is used.}
-\subsubsection{The \blueit{defaultmathsizes} option}
+\subsubsection[The defaultmathsizes option]{The \blueit{defaultmathsizes} option}
The default sizes give for subscripts of subscripts barely legible glyphs
(author's opinion!). So \mst makes more reasonable choices. It also
@@ -2371,7 +2379,7 @@ redefines \cs{Huge} and defines a \cs{HUGE} size, copied from
the |moresize| package. To cancel all of this use option
defaultmathsizes.
-\subsubsection{The \blueit{subdued} option}\label{sec:subdued}
+\subsubsection[The subdued option]{The \blueit{subdued} option}\label{sec:subdued}
This option was introduced in |v1.15|.\RightNote{1.15} It provides a manner to
switch on the \mst-\emph{ification} only for limited portions of
@@ -2446,7 +2454,7 @@ the subdued \mst will pick them up in the same font as used for
operator names, which for example in the case of the \emph{euler} package, is
the main document font.
-\subsubsection{The \blueit{LGRgreek} option}
+\subsubsection[The LGRgreek option]{The \blueit{LGRgreek} option}
There is the issue of Greek letters. Sometimes the text font has
Greek glyphs, in |LGR| encoding%
@@ -2531,7 +2539,7 @@ text.
\begin{document}
\end{verbatim}
-\subsubsection{using \mst with \href{https://ctan.org/pkg/beamer}{beamer}}\label{ssec:beamer}
+\subsubsection[using \mst with beamer]{using \mst with \href{https://ctan.org/pkg/beamer}{beamer}}\label{ssec:beamer}
%\noindent\llap{\textcolor{green}{\bfseries 2015/02/26}\hspace{1em}}
@@ -2590,7 +2598,7 @@ with release |3.34| of \href{https://ctan.org/pkg/beamer}{beamer}%
|LY1|.
\end{framed}
-\subsubsection{using \mst with \href{https://ctan.org/pkg/frenchmath}{frenchmath}}\label{ssec:frenchmath}
+\subsubsection[using \mst with frenchmath]{using \mst with \href{https://ctan.org/pkg/frenchmath}{frenchmath}}\label{ssec:frenchmath}
To use \mst concurrently with the
\href{https://ctan.org/pkg/frenchmath}{frenchmath} package%
@@ -3254,11 +3262,12 @@ correction:\par
\rlap{\texttt{text italic in math}}\break
$abcdefghijklmnopqrstuvwxyz$\hfill
\rlap{\texttt{math italic in math}}\break
- {\usefont{OML}{cmm}{m}{it}abcdefghijklmnopqrstuvwxyz}\hfill
+ {\usefont{OML}{mlmm}{m}{it}abcdefghijklmnopqrstuvwxyz}\hfill
\rlap{\texttt{math italic in text}}\par}
Where are our italic corrections gone? the last line
-was done with \cs{usefont\{OML\}\{lmm\}\{m\}\{it\}} and confirms that italic
-corrections have been used for the math italic in math.
+was done with \cs{usefont\{OML\}\{mlmm\}\{m\}\{it\}} and the
+line before that using math mode is longer and confirms that italic
+corrections have been used for the math italic in math mode.
Turning to the \TeX book (and its Appendix G) we learn that in such
circumstances, for the italic corrections to be put in from the font, one of its
@@ -3416,18 +3425,15 @@ $\mathit{f_i^i}$\par $\mathrm{f_i^i}$
\emph{Comment out the} |fontspec| \emph{line and use pdf\LaTeX{}. All
three outputs are different on my \TeX{} installation. \XeTeX{} does not have
the italic corrections. \LuaLaTeX{} does, but only for the italic font.
- pdf\LaTeX{} has them for both the italic and the upright font.%
-\footnotemark}
-%\tracingmacros1 % pour extraire le -0.5em du code de scrartcl...
-\footnotetext {2016/11/04: the situation hasn't changed,
+ pdf\LaTeX{} has them for both the italic and the upright font.}%
+\footnote{2016/11/04: the situation hasn't changed,
at least on current TL2016.
\noindent\kern-0.5em\relax2022/10/29: no change with current TL2022.}
-%\tracingmacros0
% For more see
% \url{http://tex.stackexchange.com/a/337076} which explores also the differences
-% between the two Unicode engines regarding italic corrections in pure text mode.}
+% between the two Unicode engines regarding italic corrections in pure text mode.
\subsection{Extra glue after \texorpdfstring{\cs{exists}}{\textbackslash
exists}, \texorpdfstring{\cs{forall}}{\textbackslash forall}, and before the prime glyph}
@@ -4232,7 +4238,7 @@ all the glyphs of the Euler font, if option |eulergreek| (or
\cs{neg}~$\neg$ \cs{clubsuit}~$\clubsuit$ \cs{diamondsuit}~$\diamondsuit$
\cs{heartsuit}~$\heartsuit$ \cs{spadesuit}~$\spadesuit$
\cs{smallint}~$\smallint$ \cs{wedge}~$\wedge$ \cs{vee}~$\vee$ \cs{cap}~$\cap$
- \cs{cup}~$\cup$ \cs{bullet}~$\bullet$ \cs{div}~$\div$ \cs{otimes}~$\otimes$
+ \cs{cup}~$\cup$ \cs{bullet}~$\symbolbullet$ \cs{div}~$\div$ \cs{otimes}~$\otimes$
\cs{oplus}~$\oplus$ \cs{pm}~$\pm$ \cs{ast}~$\ast$ \cs{times}~$\times$
\cs{proptopsy}~$\proptopsy$ \cs{mid}~$\mid$ \cs{leq}~$\leq$ \cs{geq}~$\geq$
\cs{approx}~$\approx$ \cs{supset}~$\supset$ \cs{subset}~$\subset$
@@ -4479,8 +4485,8 @@ Formerly, it was set to |0mu|.} In the case of the option |italic|, the
(without the quotes). See
\autoref{sec:newgreek}.
- This command can also be defined \emph{prior} to loading the package.
- Indeed it is defined this way:
+ This command can also be defined \emph{prior} to loading the package,
+ as the package itself only does:
\centeredline{|\providecommand*\MTgreekupdefault{n}|}
\item \MTgreekitdefault:\RLNote{new:}{1.3x} a command with
@@ -4492,8 +4498,8 @@ Formerly, it was set to |0mu|.} In the case of the option |italic|, the
(without the quotes).
See \autoref{sec:newgreek}.
- This command can also be used \emph{prior} to loading the package.
- Indeed it is defined this way:
+ This command can also be defined \emph{prior} to loading the package,
+ as the package itself only does:
\centeredline{|\providecommand*\MTgreekitdefault{it}|}
\end{enumerate}
@@ -4976,16 +4982,10 @@ Numerous examples will be found there:\\
\parindent \z@ \parfillskip \@flushglue \parskip \tw@\p@
\let \do \@makeother \dospecials \catcode`\ =10 }
-% et donc on ne fait pas \obeylines
+% et donc on ne fait pas \obeylines, ni \@noligs
\def\endverbatim{}
\let\@vobeyspaces\relax
-\begingroup \catcode `|=0 \catcode `[= 1 \catcode`]=2
-\catcode `\{=12 \catcode `\}=12 \catcode`\\=12
-|long|gdef|@xverbatim#1\end{verbatim}[#1|end[verbatim]]
-|endgroup
-
-% \end{verbatim} Fix du font-locking de AUCTeX (11.89.6)
% 2015/09/10 -- 2015/09/12
% Dornavant README.md (et possiblement un CHANGES.txt ou CHANGES.md)
% sont auto-extraits du .dtx.
@@ -5093,7 +5093,7 @@ Numerous examples will be found there:\\
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage {mathastext}
- [2022/11/04 v1.3y Use the text font in math mode (JFB)]
+ [2023/09/01 v1.3z Use the text font in math mode (JFB)]
% \end{macrocode}
% \LaTeX{} |2019-10-01| release has made robust math macros such as the math
% accents and \cs{hbar}.
@@ -6497,48 +6497,52 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% package; to be examined next time --- which may be a long time in
% future!).
%
+% Unfortunately the |1.3x/1.3y| did some internal renamings here (using
+% |@lgr@| in macro names in place of |@greek@|) which were not everywhere
+% followed up, and this broke the |selfGreek| option. Fixed at |1.3z|.
+%
% \begin{macrocode}
\providecommand*\MTgreekupdefault{n}
\providecommand*\MTgreekitdefault{it}
-\newif\ifmst@lgr@lower@up
-\newif\ifmst@lgr@upper@up
+\newif\ifmst@greek@lower@up
+\newif\ifmst@greek@upper@up
\def\mst@update@greeksh{
- \def\mst@lgr@lsh{\mst@ltsh}
- \def\mst@lgr@ush{\mst@opsh}
- \mst@lgr@lower@uptrue
+ \def\mst@greek@lsh{\mst@ltsh}
+ \def\mst@greek@ush{\mst@opsh}
+ \mst@greek@lower@uptrue
\expandafter\in@\expanded{{\mst@ltsh.}}{it.,sl.}%
- \ifin@\mst@lgr@lower@upfalse\fi
- \mst@lgr@upper@uptrue
+ \ifin@\mst@greek@lower@upfalse\fi
+ \mst@greek@upper@uptrue
\expandafter\in@\expanded{{\mst@opsh.}}{it.,sl.}%
- \ifin@\mst@lgr@upper@upfalse\fi
+ \ifin@\mst@greek@upper@upfalse\fi
\ifmst@itgreek
- \def\mst@lgr@lsh{\MTgreekitdefault}
- \def\mst@lgr@ush{\MTgreekitdefault}
- \mst@lgr@lower@upfalse
- \mst@lgr@upper@upfalse
+ \def\mst@greek@lsh{\MTgreekitdefault}
+ \def\mst@greek@ush{\MTgreekitdefault}
+ \mst@greek@lower@upfalse
+ \mst@greek@upper@upfalse
\fi
\ifmst@upgreek
- \def\mst@lgr@lsh{\MTgreekupdefault}
- \def\mst@lgr@ush{\MTgreekupdefault}
- \mst@lgr@lower@uptrue
- \mst@lgr@upper@uptrue
+ \def\mst@greek@lsh{\MTgreekupdefault}
+ \def\mst@greek@ush{\MTgreekupdefault}
+ \mst@greek@lower@uptrue
+ \mst@greek@upper@uptrue
\fi
\ifmst@frenchmath
\ifmst@itgreek\else
\ifmst@upgreek\else
- \def\mst@lgr@lsh{\mst@opsh}
- \def\mst@lgr@ush{\mst@opsh}
- \mst@lgr@lower@uptrue
- \mst@lgr@upper@uptrue
+ \def\mst@greek@lsh{\mst@opsh}
+ \def\mst@greek@ush{\mst@opsh}
+ \mst@greek@lower@uptrue
+ \mst@greek@upper@uptrue
\fi\fi
\fi
\ifcase\mst@greek@select
\or
- \def\mst@lgr@ush{\MTgreekitdefault}
- \mst@lgr@upper@upfalse
+ \def\mst@greek@ush{\MTgreekitdefault}
+ \mst@greek@upper@upfalse
\or
- \def\mst@lgr@ush{\MTgreekupdefault}
- \mst@lgr@upper@uptrue
+ \def\mst@greek@ush{\MTgreekupdefault}
+ \mst@greek@upper@uptrue
\fi
}
\mst@update@greeksh
@@ -7880,33 +7884,33 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\Psiit}{\mathalpha}{mtgreekit}{89}
\DeclareMathSymbol{\Omegait}{\mathalpha}{mtgreekit}{87}
%
- \def\mst@Alpha{\ifmst@lgr@upper@up\Alphaup\else\Alphait\fi}%
- \def\mst@Beta{\ifmst@lgr@upper@up\Betaup\else\Betait\fi}%
- \def\mst@Epsilon{\ifmst@lgr@upper@up\Epsilonup\else\Epsilonit\fi}%
- \def\mst@Zeta{\ifmst@lgr@upper@up\Zetaup\else\Zetait\fi}%
- \def\mst@Eta{\ifmst@lgr@upper@up\Etaup\else\Etait\fi}%
- \def\mst@Iota{\ifmst@lgr@upper@up\Iotaup\else\Iotait\fi}%
- \def\mst@Kappa{\ifmst@lgr@upper@up\Kappaup\else\Kappait\fi}%
- \def\mst@Mu{\ifmst@lgr@upper@up\Muup\else\Muit\fi}%
- \def\mst@Nu{\ifmst@lgr@upper@up\Nuup\else\Nuit\fi}%
- \def\mst@Omicron{\ifmst@lgr@upper@up\Omicronup\else\Omicronit\fi}%
- \def\mst@Rho{\ifmst@lgr@upper@up\Rhoup\else\Rhoit\fi}%
- \def\mst@Tau{\ifmst@lgr@upper@up\Tauup\else\Tauit\fi}%
- \def\mst@Chi{\ifmst@lgr@upper@up\Chiup\else\Chiit\fi}%
+ \def\mst@Alpha{\ifmst@greek@upper@up\Alphaup\else\Alphait\fi}%
+ \def\mst@Beta{\ifmst@greek@upper@up\Betaup\else\Betait\fi}%
+ \def\mst@Epsilon{\ifmst@greek@upper@up\Epsilonup\else\Epsilonit\fi}%
+ \def\mst@Zeta{\ifmst@greek@upper@up\Zetaup\else\Zetait\fi}%
+ \def\mst@Eta{\ifmst@greek@upper@up\Etaup\else\Etait\fi}%
+ \def\mst@Iota{\ifmst@greek@upper@up\Iotaup\else\Iotait\fi}%
+ \def\mst@Kappa{\ifmst@greek@upper@up\Kappaup\else\Kappait\fi}%
+ \def\mst@Mu{\ifmst@greek@upper@up\Muup\else\Muit\fi}%
+ \def\mst@Nu{\ifmst@greek@upper@up\Nuup\else\Nuit\fi}%
+ \def\mst@Omicron{\ifmst@greek@upper@up\Omicronup\else\Omicronit\fi}%
+ \def\mst@Rho{\ifmst@greek@upper@up\Rhoup\else\Rhoit\fi}%
+ \def\mst@Tau{\ifmst@greek@upper@up\Tauup\else\Tauit\fi}%
+ \def\mst@Chi{\ifmst@greek@upper@up\Chiup\else\Chiit\fi}%
%
- \def\mst@Digamma{\ifmst@lgr@upper@up\Digammaup\else\Digammait\fi}%
+ \def\mst@Digamma{\ifmst@greek@upper@up\Digammaup\else\Digammait\fi}%
%
- \def\mst@Gamma{\ifmst@lgr@upper@up\Gammaup\else\Gammait\fi}%
- \def\mst@Delta{\ifmst@lgr@upper@up\Deltaup\else\Deltait\fi}%
- \def\mst@Theta{\ifmst@lgr@upper@up\Thetaup\else\Thetait\fi}%
- \def\mst@Lambda{\ifmst@lgr@upper@up\Lambdaup\else\Lambdait\fi}%
- \def\mst@Xi{\ifmst@lgr@upper@up\Xiup\else\Xiit\fi}%
- \def\mst@Pi{\ifmst@lgr@upper@up\Piup\else\Piit\fi}%
- \def\mst@Sigma{\ifmst@lgr@upper@up\Sigmaup\else\Sigmait\fi}%
- \def\mst@Upsilon{\ifmst@lgr@upper@up\Upsilonup\else\Upsilonit\fi}%
- \def\mst@Phi{\ifmst@lgr@upper@up\Phiup\else\Phiit\fi}%
- \def\mst@Psi{\ifmst@lgr@upper@up\Psiup\else\Psiit\fi}%
- \def\mst@Omega{\ifmst@lgr@upper@up\Omegaup\else\Omegait\fi}%
+ \def\mst@Gamma{\ifmst@greek@upper@up\Gammaup\else\Gammait\fi}%
+ \def\mst@Delta{\ifmst@greek@upper@up\Deltaup\else\Deltait\fi}%
+ \def\mst@Theta{\ifmst@greek@upper@up\Thetaup\else\Thetait\fi}%
+ \def\mst@Lambda{\ifmst@greek@upper@up\Lambdaup\else\Lambdait\fi}%
+ \def\mst@Xi{\ifmst@greek@upper@up\Xiup\else\Xiit\fi}%
+ \def\mst@Pi{\ifmst@greek@upper@up\Piup\else\Piit\fi}%
+ \def\mst@Sigma{\ifmst@greek@upper@up\Sigmaup\else\Sigmait\fi}%
+ \def\mst@Upsilon{\ifmst@greek@upper@up\Upsilonup\else\Upsilonit\fi}%
+ \def\mst@Phi{\ifmst@greek@upper@up\Phiup\else\Phiit\fi}%
+ \def\mst@Psi{\ifmst@greek@upper@up\Psiup\else\Psiit\fi}%
+ \def\mst@Omega{\ifmst@greek@upper@up\Omegaup\else\Omegait\fi}%
%
\DeclareMathSymbol{\alphaup}{\mathalpha}{mtgreekup}{97}
\DeclareMathSymbol{\betaup}{\mathalpha}{mtgreekup}{98}
@@ -7965,33 +7969,33 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\digammait}{\mathalpha}{mtgreekit}{147}
\DeclareMathSymbol{\varsigmait}{\mathalpha}{mtgreekit}{99}
%
- \def\mst@alpha{\ifmst@lgr@lower@up\alphaup\else\alphait\fi}%
- \def\mst@beta{\ifmst@lgr@lower@up\betaup\else\betait\fi}%
- \def\mst@gamma{\ifmst@lgr@lower@up\gammaup\else\gammait\fi}%
- \def\mst@delta{\ifmst@lgr@lower@up\deltaup\else\deltait\fi}%
- \def\mst@epsilon{\ifmst@lgr@lower@up\epsilonup\else\epsilonit\fi}%
- \def\mst@zeta{\ifmst@lgr@lower@up\zetaup\else\zetait\fi}%
- \def\mst@eta{\ifmst@lgr@lower@up\etaup\else\etait\fi}%
- \def\mst@theta{\ifmst@lgr@lower@up\thetaup\else\thetait\fi}%
- \def\mst@iota{\ifmst@lgr@lower@up\iotaup\else\iotait\fi}%
- \def\mst@kappa{\ifmst@lgr@lower@up\kappaup\else\kappait\fi}%
- \def\mst@lambda{\ifmst@lgr@lower@up\lambdaup\else\lambdait\fi}%
- \def\mst@mu{\ifmst@lgr@lower@up\muup\else\muit\fi}%
- \def\mst@nu{\ifmst@lgr@lower@up\nuup\else\nuit\fi}%
- \def\mst@xi{\ifmst@lgr@lower@up\xiup\else\xiit\fi}%
- \def\mst@omicron{\ifmst@lgr@lower@up\omicronup\else\omicronit\fi}%
- \def\mst@pi{\ifmst@lgr@lower@up\piup\else\piit\fi}%
- \def\mst@rho{\ifmst@lgr@lower@up\rhoup\else\rhoit\fi}%
- \def\mst@sigma{\ifmst@lgr@lower@up\sigmaup\else\sigmait\fi}%
- \def\mst@tau{\ifmst@lgr@lower@up\tauup\else\tauit\fi}%
- \def\mst@upsilon{\ifmst@lgr@lower@up\upsilonup\else\upsilonit\fi}%
- \def\mst@phi{\ifmst@lgr@lower@up\phiup\else\phiit\fi}%
- \def\mst@chi{\ifmst@lgr@lower@up\chiup\else\chiit\fi}%
- \def\mst@psi{\ifmst@lgr@lower@up\psiup\else\psiit\fi}%
- \def\mst@omega{\ifmst@lgr@lower@up\omegaup\else\omegait\fi}%
+ \def\mst@alpha{\ifmst@greek@lower@up\alphaup\else\alphait\fi}%
+ \def\mst@beta{\ifmst@greek@lower@up\betaup\else\betait\fi}%
+ \def\mst@gamma{\ifmst@greek@lower@up\gammaup\else\gammait\fi}%
+ \def\mst@delta{\ifmst@greek@lower@up\deltaup\else\deltait\fi}%
+ \def\mst@epsilon{\ifmst@greek@lower@up\epsilonup\else\epsilonit\fi}%
+ \def\mst@zeta{\ifmst@greek@lower@up\zetaup\else\zetait\fi}%
+ \def\mst@eta{\ifmst@greek@lower@up\etaup\else\etait\fi}%
+ \def\mst@theta{\ifmst@greek@lower@up\thetaup\else\thetait\fi}%
+ \def\mst@iota{\ifmst@greek@lower@up\iotaup\else\iotait\fi}%
+ \def\mst@kappa{\ifmst@greek@lower@up\kappaup\else\kappait\fi}%
+ \def\mst@lambda{\ifmst@greek@lower@up\lambdaup\else\lambdait\fi}%
+ \def\mst@mu{\ifmst@greek@lower@up\muup\else\muit\fi}%
+ \def\mst@nu{\ifmst@greek@lower@up\nuup\else\nuit\fi}%
+ \def\mst@xi{\ifmst@greek@lower@up\xiup\else\xiit\fi}%
+ \def\mst@omicron{\ifmst@greek@lower@up\omicronup\else\omicronit\fi}%
+ \def\mst@pi{\ifmst@greek@lower@up\piup\else\piit\fi}%
+ \def\mst@rho{\ifmst@greek@lower@up\rhoup\else\rhoit\fi}%
+ \def\mst@sigma{\ifmst@greek@lower@up\sigmaup\else\sigmait\fi}%
+ \def\mst@tau{\ifmst@greek@lower@up\tauup\else\tauit\fi}%
+ \def\mst@upsilon{\ifmst@greek@lower@up\upsilonup\else\upsilonit\fi}%
+ \def\mst@phi{\ifmst@greek@lower@up\phiup\else\phiit\fi}%
+ \def\mst@chi{\ifmst@greek@lower@up\chiup\else\chiit\fi}%
+ \def\mst@psi{\ifmst@greek@lower@up\psiup\else\psiit\fi}%
+ \def\mst@omega{\ifmst@greek@lower@up\omegaup\else\omegait\fi}%
%
- \def\mst@digamma{\ifmst@lgr@lower@up\digammaup\else\digammait\fi}%
- \def\mst@varsigma{\ifmst@lgr@lower@up\varsigmaup\else\varsigmait\fi}%
+ \def\mst@digamma{\ifmst@greek@lower@up\digammaup\else\digammait\fi}%
+ \def\mst@varsigma{\ifmst@greek@lower@up\varsigmaup\else\varsigmait\fi}%
\fi
% \end{macrocode}
% \end{macro}
@@ -8681,40 +8685,40 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% \begin{macrocode}
\def\mst@greek@lsh@loc{\csname mst@ltshape@\mst@version\endcsname}%
\def\mst@greek@ush@loc{\csname mst@shape@\mst@version\endcsname}%
- \mst@lgr@lower@uptrue
+ \mst@greek@lower@uptrue
\expandafter\in@\expanded{{\mst@greek@lsh@loc.}}{it.,sl.}%
- \ifin@\mst@lgr@lower@upfalse\fi
- \mst@lgr@upper@uptrue
+ \ifin@\mst@greek@lower@upfalse\fi
+ \mst@greek@upper@uptrue
\expandafter\in@\expanded{{\mst@greek@ush@loc.}}{it.,sl.}%
- \ifin@\mst@lgr@upper@upfalse\fi
+ \ifin@\mst@greek@upper@upfalse\fi
\ifmst@itgreek
\def\mst@greek@lsh@loc{\MTgreekitdefault}%
\def\mst@greek@ush@loc{\MTgreekitdefault}%
- \mst@lgr@lower@upfalse
- \mst@lgr@upper@upfalse
+ \mst@greek@lower@upfalse
+ \mst@greek@upper@upfalse
\fi
\ifmst@upgreek
\def\mst@greek@lsh@loc{\MTgreekupdefault}%
\def\mst@greek@ush@loc{\MTgreekupdefault}%
- \mst@lgr@lower@uptrue
- \mst@lgr@upper@uptrue
+ \mst@greek@lower@uptrue
+ \mst@greek@upper@uptrue
\fi
\ifmst@frenchmath
\ifmst@itgreek\else
\ifmst@upgreek\else
\def\mst@greek@lsh@loc{\csname mst@shape@\mst@version\endcsname}%
\def\mst@greek@ush@loc{\csname mst@shape@\mst@version\endcsname}%
- \mst@lgr@lower@uptrue
- \mst@lgr@upper@uptrue
+ \mst@greek@lower@uptrue
+ \mst@greek@upper@uptrue
\fi\fi
\fi
\ifcase\mst@greek@select
\or
\def\mst@greek@ush@loc{\MTgreekitdefault}%
- \mst@lgr@upper@upfalse
+ \mst@greek@upper@upfalse
\or
\def\mst@greek@ush@loc{\MTgreekupdefault}%
- \mst@lgr@upper@uptrue
+ \mst@greek@upper@uptrue
\fi
\ifmst@LGRgreeks
\SetSymbolFont{mtgreekup}{#2}{LGR}{#4}{#5}{\MTgreekupdefault}%
@@ -8725,14 +8729,14 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% Also |1.3x| fixes some strange log messages which did not recall
% the math version name and referred to `non subdued versions' (strange).
% \begin{macrocode}
- \expandafter\let\csname ifmst@lgr@\mst@version @upper@up\expandafter\endcsname
- \csname ifmst@lgr@upper@up\endcsname
- \expandafter\let\csname ifmst@lgr@\mst@version @lower@up\expandafter\endcsname
- \csname ifmst@lgr@lower@up\endcsname
+ \expandafter\let\csname ifmst@greek@\mst@version @upper@up\expandafter\endcsname
+ \csname ifmst@greek@upper@up\endcsname
+ \expandafter\let\csname ifmst@greek@\mst@version @lower@up\expandafter\endcsname
+ \csname ifmst@greek@lower@up\endcsname
\typeout{** Greek letters (upper:
- `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+ `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
lower:
- `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+ `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
will use
font family `#4\string' (LGR)^^J**
in mathastext math version `\mst@version\string'.}%
@@ -8750,14 +8754,14 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% This is where the shape of uppercase/lowercase Greek letters is recorded,
% for \cs{MTversion}'s triggered \cs{MTcustomgreek} to do the right thing.
% \begin{macrocode}
- \expandafter\let\csname ifmst@lgr@\mst@version @upper@up\expandafter\endcsname
- \csname ifmst@lgr@upper@up\endcsname
- \expandafter\let\csname ifmst@lgr@\mst@version @lower@up\expandafter\endcsname
- \csname ifmst@lgr@lower@up\endcsname
+ \expandafter\let\csname ifmst@greek@\mst@version @upper@up\expandafter\endcsname
+ \csname ifmst@greek@upper@up\endcsname
+ \expandafter\let\csname ifmst@greek@\mst@version @lower@up\expandafter\endcsname
+ \csname ifmst@greek@lower@up\endcsname
\typeout{** Greek letters (upper:
- `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+ `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
lower:
- `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+ `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
will use font family `\mst@greekfont\string' (LGR)^^J**
in mathastext math version `\mst@version\string'.}%
\else
@@ -8968,10 +8972,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% \end{macrocode}
% |1.3x| addition for \cs{MTcustomgreek} under |LGRgreeks| option.
% \begin{macrocode}
- \expandafter\let\csname ifmst@lgr@upper@up\expandafter\endcsname
- \csname ifmst@lgr@\math@version @upper@up\endcsname
- \expandafter\let\csname ifmst@lgr@lower@up\expandafter\endcsname
- \csname ifmst@lgr@\math@version @lower@up\endcsname
+ \expandafter\let\csname ifmst@greek@upper@up\expandafter\endcsname
+ \csname ifmst@greek@\math@version @upper@up\endcsname
+ \expandafter\let\csname ifmst@greek@lower@up\expandafter\endcsname
+ \csname ifmst@greek@\math@version @lower@up\endcsname
\MTcustomgreek
\mst@nonsubduedhbar
\mst@nonsubduedinodot
@@ -8983,10 +8987,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% \end{macrocode}
% |1.3x| addition for \cs{MTcustomgreek} under |LGRgreek| option.
% \begin{macrocode}
- \expandafter\let\csname ifmst@lgr@upper@up\expandafter\endcsname
- \csname ifmst@lgr@\math@version @upper@up\endcsname
- \expandafter\let\csname ifmst@lgr@lower@up\expandafter\endcsname
- \csname ifmst@lgr@\math@version @lower@up\endcsname
+ \expandafter\let\csname ifmst@greek@upper@up\expandafter\endcsname
+ \csname ifmst@greek@\math@version @upper@up\endcsname
+ \expandafter\let\csname ifmst@greek@lower@up\expandafter\endcsname
+ \csname ifmst@greek@\math@version @lower@up\endcsname
\MTcustomgreek % new with 1.3d
\mst@nonsubduedhbar
\mst@nonsubduedinodot
@@ -9257,9 +9261,9 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\mst@encoding@normal/\mst@family@normal/\mst@series@normal%
(\mst@boldvariant@normal)/\mst@ltshape@normal}%
\ifmst@LGRgreek\typeout{** Greek letters (upper:
- `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+ `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
lower:
- `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+ `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
will use font family `\mst@greekfont\string' (LGR)}%
\fi
\ifmst@nodigits\else
diff --git a/macros/latex/contrib/mathastext/mathastext.pdf b/macros/latex/contrib/mathastext/mathastext.pdf
index df962ded91..461c8e6b4a 100644
--- a/macros/latex/contrib/mathastext/mathastext.pdf
+++ b/macros/latex/contrib/mathastext/mathastext.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
index 169e05b2e0..d21b696202 100644
--- a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
+++ b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
index 66deabb5d0..35865fc403 100644
--- a/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
+++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex
@@ -2,11 +2,13 @@
% !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.05, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/29
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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.
@@ -14,32 +16,32 @@
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[twoside]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside will eliminate even-numbered blank pages.
% option [lineno] provides line numbers, as for editing
% option [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,14 +57,17 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -81,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -98,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -176,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -190,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -218,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -229,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -253,7 +230,7 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you feel a need for "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex
index fda5b48ea2..f55a984123 100644
--- a/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex
+++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex
@@ -1,5 +1,5 @@
% From mitthesis package
-% Version: 1.02, 2023/07/21
+% Version: 1.03, 2023/08/10
% Documentation: https://ctan.org/pkg/mitthesis
@@ -7,7 +7,7 @@
\lipsum[1-2] Postremo aliquos futuros suspicor, qui me ad alias litteras vocent, genus hoc scribendi, etsi sit elegans, personae tamen et dignitatis esse negent~\cite{DKE1969,ww1920,kirk2288a,churchill1948,gibbs1863}.
-\section[A section discussing the first issue: \(\psi/\textrm{J}\)]{A section discussing the first issue: \ifpdftex\(\bm{\psi}/\bm{J}\)\else{\(\symbfup{\psi/J}\)}\fi}
+\section[A section discussing the first issue: \(\textrm{J}/\psi\)]{A section discussing the first issue: \ifpdftex\(\bm{J}/\bm{\psi}\)\else{\(\symbfup{J/\psi}\)}\fi}
We begin with some ideas from the literature \cite{Fong2015,sharpe1}.
diff --git a/macros/latex/contrib/mitthesis/README.md b/macros/latex/contrib/mitthesis/README.md
index 46bef90606..fb3b6bbc1e 100644
--- a/macros/latex/contrib/mitthesis/README.md
+++ b/macros/latex/contrib/mitthesis/README.md
@@ -1,10 +1,10 @@
- #mitthesis --- A LaTeX template for MIT theses#
+ #mitthesis --- A LaTeX template for an MIT thesis#
- v1.05 dated 2023/07/21
+ v1.06 dated 2023/08/29
####Overview####
- This class provides a LaTeX template for MIT theses formatted according to
+ This class provides a LaTeX template to format an MIT thesis according to
the requirements of the Massachusetts Institute of Technology Libraries (as posted in 2023):
[https://libraries.mit.edu/distinctive-collections/thesis-specs/](https://libraries.mit.edu/distinctive-collections/thesis-specs/)
@@ -53,6 +53,16 @@
---
####Change log####
+
+ v1.06 (29 August 2023):
+ - Extensive revision of class file, with most code converted to expl3. Significant streamlining of remaining LaTeX2e code. Minor changes to user interface. No changes to format or design of thesis.
+ - Add user macros for \CopyrightAuthor, \DegreeMonth, \DegreeYear, and \Institution{..}
+ - Drop user macros \CCurl, \PDFRightsText, and \MIT{..}
+ - Reduce volume of pdf metadata required to be added by user
+ - Accommodate author names that end with a period or include a comma (e.g., Martin Luther King, Jr.)
+ - Reduce font size in fira-newtxsf fontset
+ - Update documentation
+
v1.05 (21 July 2023):
- Fix bug in toc page number affecting some lists of figures or tables (note: for backward compatibility, remove code in .tex file around \tableofcontents, \listoffigures, and \listoftables so that your code will match the present version)
- Include thesis submission date in abstract, remove previous degrees from abstract page, and allow May for degree month, per MIT Libraries
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/No_cc_license.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/No_cc_license.tex
index 90af70cb5d..337f31814b 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/No_cc_license.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/No_cc_license.tex
@@ -17,73 +17,52 @@
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[]{mitthesis}
+\documentclass[]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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.
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
-
+\author{\YourName}
%%% edit the following commands to match your thesis %%%%%%%%%%
\title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air}
@@ -109,7 +88,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -137,8 +116,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree.tex
index 9b426eb0e3..c5e4db50b3 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree.tex
@@ -31,51 +31,32 @@
% If you are using multiple languages, load the babel package in your fontset file, before the fonts.
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -137,8 +118,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees.tex
index b03232b383..6334a228ae 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees.tex
@@ -31,51 +31,32 @@
% If you are using multiple languages, load the babel package in your fontset file, before the fonts.
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -139,8 +120,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees_from_one_department.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees_from_one_department.tex
index 9589bc981f..9646d3d503 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees_from_one_department.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_two_degrees_from_one_department.tex
@@ -31,52 +31,32 @@
% If you are using multiple languages, load the babel package in your fontset file, before the fonts.
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -137,8 +117,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree.tex
index 711264986e..e5e2618b69 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree.tex
@@ -31,51 +31,32 @@
% If you are using multiple languages, load the babel package in your fontset file, before the fonts.
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -138,8 +119,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_two_degrees.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_two_degrees.tex
index dc92f65998..930b218b1c 100644
--- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_two_degrees.tex
+++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_two_degrees.tex
@@ -31,51 +31,32 @@
% If you are using multiple languages, load the babel package in your fontset file, before the fonts.
-%%%%%%%%%%% Hyperref setting and metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
+
%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -125,8 +106,6 @@
% 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.
@@ -138,8 +117,6 @@
%%% 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
% 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
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf
index 5c080c9afd..fab86f8556 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf
index 4b95649c1c..e862497f6c 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf
index 5eb395eb5f..6d0ff66249 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf
index 59314cd515..cc9163c2d4 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf
index 5455942967..2d57d358db 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf
Binary files differ
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
index ae8977d4df..9e3f99af1f 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
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf
index 4df3847882..40da2bac86 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf
index 1fb37710cd..cb1c5cee2e 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf
index ca04ea5d18..bab4183c99 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-Stix2.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf
index 792607b351..808306fb9f 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf
Binary files differ
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
index f700e4ba80..f924303a9f 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Defaultfonts.tex
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=defaultfonts]{mitthesis}
+\documentclass[twoside]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,74 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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},
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about
-%
- colorlinks=true,
- linkcolor=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -176,25 +157,31 @@
% 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{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
+% For two degrees from one department, leave the department argument blank for the second degree {}.
\Degree{Bachelor of Science in Physics}{Department of Physics}
+%\Degree{Master of Science in 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}
+%\Supervisor{Secunda Castor}{Professor of Research}
+%\Supervisor{Quintus Castor}{Professor of Log Dams}
% 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
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
-%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department}
+%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
+%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
% 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}
+%\SignatureBlockSize{\small} %\SignatureBlockSize{\footnotesize}
% Usage: \DegreeDate{Month}{year}
% Valid degree months are September, February, or June.
@@ -215,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -226,22 +210,18 @@
%%% 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{acknowledgments.tex}
\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) %%%%%%%%%%%%%%%%
+%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
\tableofcontents
\listoffigures
@@ -250,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -265,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 69d491ff84..d428bcadf1 100644
--- 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
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=fira-newtxsf]{mitthesis}
+\documentclass[fontset=fira-newtxsf]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,74 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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},
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- pdfsubject={Template for writing MIT theses with the mitthesis class},% briefly state what this document is about
-%
- colorlinks=true,
- linkcolor=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -176,25 +157,31 @@
% 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{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
+% For two degrees from one department, leave the department argument blank for the second degree {}.
\Degree{Bachelor of Science in Physics}{Department of Physics}
+%\Degree{Master of Science in 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}
+%\Supervisor{Secunda Castor}{Professor of Research}
+%\Supervisor{Quintus Castor}{Professor of Log Dams}
% 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
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
-%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Second Degree Department}
+%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
+%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
% 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}
+%\SignatureBlockSize{\small} %\SignatureBlockSize{\footnotesize}
% Usage: \DegreeDate{Month}{year}
% Valid degree months are September, February, or June.
@@ -215,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -226,22 +210,18 @@
%%% 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{acknowledgments.tex}
\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) %%%%%%%%%%%%%%%%
+%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
\tableofcontents
\listoffigures
@@ -250,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -265,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 3985d9f560..1ae057c0cd 100644
--- 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
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=heros-stix2]{mitthesis}
+\documentclass[fontset=heros-stix2]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index a4c37ddedb..8fa97df9b0 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Libertine.tex
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=libertine]{mitthesis}
+\documentclass[fontset=libertine]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 2c3a8e342c..1af3c90754 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Lucida.tex
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=lucida]{mitthesis}
+\documentclass[fontset=lucida]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 31832cc0ce..87ad88c57e 100644
--- 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
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=newtx-sans-text]{mitthesis}
+\documentclass[fontset=newtx-sans-text]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index fcc126e440..eb96cc7892 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Newtx.tex
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=newtx]{mitthesis}
+\documentclass[fontset=newtx]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 7ac6317072..ffc9657186 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Stix2.tex
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=stix2]{mitthesis}
-
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+\documentclass[fontset=stix2]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
+%
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- colorlinks=true,
- linkcolor=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although 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,
-}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 5da99c4c83..29bb0e05cf 100644
--- 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
@@ -2,45 +2,46 @@
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=termes-stix2]{mitthesis}
+\documentclass[fontset=termes-stix2]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -55,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -82,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -99,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -177,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -191,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -219,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -230,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -254,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
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
index 586c7419a9..fb2f11a35d 100644
--- a/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex
+++ b/macros/latex/contrib/mitthesis/examples/font_samples/latex_sources/Termes.tex
@@ -1,47 +1,47 @@
-% !TEX TS-program = LuaLaTeX
% !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.01, 2023/07/21
+% This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
+%
+% Version: 1.06, 2023/08/28
+%
% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit
-% Documentation: https://ctan.org/pkg/mitthesis
+% Documentation is here: 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
-{
+\DocumentMetadata{
pdfstandard = a-2b,
pdfversion = 1.7,
lang = en-US,
-% debug = {xmp-export}, % output xmpi file to directly examine metadata
+% debug = {xmp-export}, % uncomment to output a separate xmpi file showing the metadata
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\documentclass[fontset=termes]{mitthesis}
+\documentclass[fontset=termes]{mitthesis} %,fontset=libertine ,fontset=newtx-sans-text, fontset=heros-stix2, fontset=stix2
%
-% option [twoside] gives facing-page behavior for printing; omitting it will eliminate even-numbered blank pages.
+% option [twoside] gives facing-page behavior for printing; omitting twoside 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 [mydesign] loads packages for color, title and list formats, margins, or captions: edit mydesign.tex to change defaults.
% 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".
+% 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}
+\usepackage{listings}% documentation is here https://ctan.org/pkg/listings
%% Set chemical formulas nicely
-\usepackage[version=4]{mhchem}
+\usepackage[version=4]{mhchem}% documentation is here https://ctan.org/pkg/mhchem
-%% Latin filler used in Chapter 1, with a test for package version date
+%% Latin filler used in Chapter 1, with a test for package version date. https://ctan.org/pkg/lipsum
\usepackage{lipsum}
\IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{}
@@ -56,15 +56,18 @@
%%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,articlein=false,]{biblatex}
+\usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
+ \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces default "[Online]. Available" by "URL"
+
-\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <=================
+\addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <================= CHANGE
%% 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.
+% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
+% documentation is here: https://ctan.org/pkg/biblatex
%%%%%%%%%% Option to use natbib %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -83,16 +86,16 @@
%%%%%%%%%% Table related packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{booktabs}% better quality tables
-\usepackage{array}% additional options for table columns
+\usepackage{booktabs}% better quality tables, https://ctan.org/pkg/booktabs
+\usepackage{array}% additional options for table columns, https://ctan.org/pkg/array
-%\usepackage{tabularx}
+%\usepackage{tabularx}% https://ctan.org/pkg/tabularx
-%\usepackage{dcolumn} % alignment on decimal places
+%\usepackage{dcolumn}% alignment on decimal place, https://ctan.org/pkg/dcolumn
%\newcolumntype{d}[1]{D{.}{.}{#1}}
-%%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% 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
@@ -100,73 +103,51 @@
%% 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)
+%% The setspace package provides a tool for changing line separation (use thesetwo here)
%
-%\usepackage{setspace}
-%\setstretch{1.1}% you can choose some other value for the stretch of space between lines
+% \usepackage{setspace}% documentation at https://ctan.org/pkg/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)
+% \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\YourName{John H. Lienhard}% <====== CHANGE TO YOUR NAME !!!
+% Most of the document metadata is created automatically.
+% The following items should be adjusted to match your work. <================= !!!!!!!!!!
\hypersetup{%
+ pdfsubject={Template for writing MIT theses with the mitthesis class},
+ % Change this to briefly state topic of your thesis
+%
+ pdfkeywords={Massachusetts Institute of Technology, MIT},
+ % Add keywords that will help search engines and libraries to find your work.
+ % Includes the name[s] of the author[s]
+ % (If you have used \DocumentMetadata, at line 15, you can just put "\CopyrightAuthor," for the names.)
%
-% Be sure to change the following to your own information! <======== !!!
-%
- pdftitle={MIT thesis template},
- pdfkeywords={\YourName, Massachusetts Institute of Technology, MIT},
- pdfauthor={\YourName},
-% pdfauthor={{John H. Lienhard, V}},% if you have a comma in your name, surround by {..}
- pdfauthortitle={Professor of Mechanical Engineering},
- pdfcaptionwriter={\YourName},
- 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=Blue3,% from xcolor package
- citecolor=Blue3,% from xcolor package
- urlcolor=violet,% from xcolor package
- filecolor=red,
-% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does)
-% colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
+ pdfurl={},
+ % If you have a url for the thesis, put it here. Otherwise delete this.
+ % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
+%
+ pdfcontactemail={},
+ % You can put a [permanent] email address into the metadata, if you like.
+ % Otherwise delete this.
%
- 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,
+ pdfauthortitle={},
+ % If you have a title, you can include it here.
}
-\AtEndDocument{
- \hypersetup{pdfcopyright={Copyright © \DegreeYear\ by \YourName. \PDFRightsText},}% 1st and 3rd commands are defined by class file.
-}
-
-%%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%% 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}
@@ -178,6 +159,7 @@
\Author{Silas W. Holman}{Department of Physics}%[B.S. Physics, MIT, 1876][MBA, Ferengi School of Management, 2022]
%\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]
+%\Author{Thurston Howell III}{Department of Economics}
% Use once for each degree fulfilled by thesis
% For two degrees from one department, leave the department argument blank for the second degree {}.
@@ -192,7 +174,7 @@
% 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
-% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.
+% **If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}.**
\Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics}
%\Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research}
%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
@@ -220,9 +202,6 @@
%%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -231,19 +210,15 @@
%%% 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{acknowledgments.tex}
\include{biography.tex}% optional, see MIT Libraries https://libraries.mit.edu/distinctive-collections/thesis-specs/#format
- \cleardoublepage
%%% Table of contents and lists of stuff (delete lists you don't need, e.g., if no tables) %%%%%%%%
@@ -255,11 +230,12 @@
%%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% If you really feel the need to engage in "double spacing", you can start here...
+%% If you want to use "double spacing", you can start here...
\include{chapter1.tex}
%\include{chapter2.tex}
%\include{chapter3.tex}
+%\include{chapter4.tex}
%%% Appendicies of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -270,7 +246,7 @@
%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{\raggedright% to avoid stretched white space and split urls; DELETE if you prefer justified text
+{ \raggedright% to avoid stretched white space and split urls; DELETE THIS if you prefer justified text
%
\printbibliography[title={References},heading=bibintoc]
}
diff --git a/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex b/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex
index 55e6a7de52..90ab699b18 100644
--- a/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex
+++ b/macros/latex/contrib/mitthesis/fontsets/mitthesis-fira-newtxsf.tex
@@ -1,5 +1,5 @@
% From mitthesis package
-% Version: 1.02, 2023/07/03
+% Version: 1.03, 2023/08/29
% Documentation: https://ctan.org/pkg/mitthesis
@@ -7,10 +7,10 @@
%
\ifpdftex
\typeout{^^JLoading Fira sans text font with newtx sans serif math font and Inconsolata typewriter^^J}
- \RequirePackage[sfdefault]{FiraSans} % sans serif text package %,scaled=.85
+ \RequirePackage[sfdefault,scaled=0.90]{FiraSans} % sans serif text package %,scaled=.85
\RequirePackage[T1]{fontenc}
- \RequirePackage[varqu,varl,,scaled=1.12]{zi4} % inconsolata font for typewriter
- \RequirePackage[cmintegrals,scaled=1.12]{newtxsf} % sans serif math
+ \RequirePackage[varqu,varl,scaled=1.05]{zi4} % inconsolata font for typewriter
+ \RequirePackage[scaled=1.05]{newtxsf} % sans serif math
\RequirePackage{bm}
\else
\ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts}
diff --git a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf
index ddc3fcfafe..95c7b6c17b 100644
--- a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf
+++ b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex
index a896751c37..c9431036ea 100644
--- a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex
+++ b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex
@@ -251,7 +251,7 @@ The new MIT thesis template consists of: \texttt{mitthesis.cls}; a root file \te
\section*{Information you need to complete}
Various fields and commands must be changed to your own information in the preamble of \texttt{MIT-Thesis.tex} and immediately after the \verb|\begin{document}| command. This information includes the title, author, degree and other essential information. With the comments in \texttt{MIT-Thesis.tex}, this step should be self-explanatory. Nevertheless some comments follow.
-In the \verb|\hypersetup{..}| command, change the sample file to match your own information (name, title, keywords, etc.). These commands generate metadata that are incorporated into the pdf file.
+In the \verb|\hypersetup{..}| command, change the sample file to match your own information (e.g., keywords, subject, etc.). These commands generate metadata that are incorporated into the pdf file.
The commands that define the title page are as follow.
\begin{itemize}
@@ -262,7 +262,7 @@ Note that third, fourth, fifth, and sixth arguments are optional [..] and may be
\item \verb|\Degree{name of degree}{department giving degree}|. Use once for each degree fulfilled by thesis. If the thesis satisfies two degrees from one department, leave the department argument blank for the \textit{second} degree: \verb|\Degree{2nd degree name}{}|
-\item \verb|\Supervisor{supervisor name}{supervisor department}|. Use once for each supervisor.
+\item \verb|\Supervisor{supervisor name}{supervisor title}|. Use once for each supervisor.
\item \verb|\Acceptor{acceptor name}{acceptor title}{thesis related position}|. Professor who accepts theses for your department (e.g., the Graduate Officer). Use once for each department.
@@ -280,11 +280,9 @@ If you wish to make your thesis available under a Creative Commons License, issu
\vskip 5pt
\noindent\quad\verb|\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/}|.
-
\section*{Package options}
Package options may be specified for \verb|\documentclass[..]{mitthesis}|. These options are described in Table~\ref{tab:1} and the subsections that follow.
-
\begin{table}[ht]
\caption{Options to the document class\label{tab:1}}
\smallskip\setlength\extrarowheight{3pt}%
@@ -303,7 +301,7 @@ twoside & gives facing-page behavior for two-sided printing; omitting it will e
\end{tabular}}%
\end{table}
-\subsection*{Font loading}
+\subsection*{Font loading}\enlargethispage{\baselineskip}%
By default, \texttt{mitthesis.cls} will load the traditional \LaTeX\ fonts, computer modern (\pdfTeX) or latin modern (unicode engines). By using the key value \texttt{fontset=$\cdots$} in the \verb|\documentclass| command, you can select a different set of fonts.
Ten fontsets are predefined, including the default set (see Table~\ref{tab:2}). Three work only with \pdfTeX, four work only with unicode engines, and three work with either. These options include a mixture of serif or sans serif text and math fonts, as shown in the table.
@@ -346,7 +344,11 @@ termes-stix2 & no & yes & serif & serif & \url{http://www.gust.org.pl/projects/
\subsection*{Design options}
The thesis will follow the default styles of the \LaTeX\ report class for sections headings, captions, and lists. If you prefer different styles you can use the class option [mydesign] which loads the file \texttt{mydesign.tex}.
-With \texttt{mydesign.tex}, you can set options for packages that manage color, e.g.\ \texttt{\hrefurl{https://ctan.org/pkg/xcolor}{xcolor}}, that change the margins, or that change the design of titles, captions, and lists: \texttt{\hrefurl{https://ctan.org/pkg/titlesec}{titlesec}}, \texttt{\hrefurl{https://ctan.org/pkg/caption}{caption}}, or \texttt{\hrefurl{https://ctan.org/pkg/enumitem}{enumitem}}. You can also load other packages. The \texttt{mitthesis} class will insert these commands at the appropriate point (prior to loading \texttt{\hrefurl{https://ctan.org/pkg/babel}{babel}}, fonts, or \texttt{\hrefurl{https://ctan.org/pkg/hyperref}{hyperref}}). You should not need to edit the class file.\footnote{If you are using different style files, say \texttt{styleA.tex} and \texttt{styleB.tex}, you can switch between them with the options [mydesign=styleA] and [mydesign=styleB].}
+With \texttt{mydesign.tex}, you can set options for packages that manage color, e.g.\ \texttt{\hrefurl{https://ctan.org/pkg/xcolor}{xcolor}}, that change the margins, or that change the design of titles, captions, and lists: \texttt{\hrefurl{https://ctan.org/pkg/titlesec}{titlesec}}, \texttt{\hrefurl{https://ctan.org/pkg/caption}{caption}}, or \texttt{\hrefurl{https://ctan.org/pkg/enumitem}{enumitem}}. You can also load other packages. The \texttt{mitthesis} class will insert these commands at the appropriate point (prior to loading \texttt{\hrefurl{https://ctan.org/pkg/babel}{babel}}, fonts, or \texttt{\hrefurl{https://ctan.org/pkg/hyperref}{hyperref}}). You should not need to edit the class file.
+
+Hyperlink colors and pdf bookmark or viewing options from the \texttt{hyperref} package can be changed by using \verb|\hypersetup{ .. }| in the preamble or using \verb|\AtBeginDocument{ \hypersetup{ .. } }| in the \texttt{mydesign.tex} file.
+
+If you have two different style files, say \texttt{styleA.tex} and \texttt{styleB.tex}, you can switch between them with the options [mydesign=styleA] and [mydesign=styleB].
\subsection*{Single-sided vs.\ double-sided layout}
The sample template uses the option \texttt{[twosided]}, which starts major sections (abstract, table of contents, chapters, etc.) on odd-numbered pages. This arrangement is suitable for two-sided printing, but can lead to empty even-numbered pages. If you do not wish to have this behavior, omit that option. By default, even and odd page margins are the same; this can be changed in the \texttt{mydesign.tex} file if necessary.
@@ -366,7 +368,6 @@ bookmarks& is loaded automatically under the new pdf-management system & --- \\
doi & support for hyperlinking DOIs & hyperlink a doi number: \verb|\doi{..}| \\
etoolbox & extend or modify other macros & can use in preamble if needed \\
iftex & check which \LaTeX\ engine is running& macros to check engine \\
-ifthen & streamlined conditionals & can use in preamble if needed \\
geometry & set page size and margins & can use \verb|\newgeometry| in \texttt{mydesign.tex}\\
graphicsx& support for inserting images & use to include graphics\\
hyperref & support for hyperlinks and metadata & must complete setup in preamble\\
@@ -395,7 +396,7 @@ unicode-math & --- & load in a fontset file if using a unicode engine\\
\end{tabular*}}%
\end{table}
-\section*{PDF/A compatibility}
+\section*{PDF/A compatibility}\enlargethispage{\baselineskip}%
PDF/A-2b compliance will be automatic if the \verb|\DocumentMetadata{..}| command is issued before the \verb|\documentclass{..}| command and \textit{provided that your graphics are also compliant}. This command was added to \LaTeX\ in June 2022. For older versions of \LaTeX, the \texttt{mitthesis} class will fall back to loading \texttt{hyperxmp} to support pdf metadata, but PDF/A compliance will require post-processing (for example, by using the PreFlight function of Adobe Acrobat). An up-to-date \LaTeX\ installation is preferred.
Current \LaTeX\ development (ca.~2023) is working toward fully accessible PDF/A out of the box (e.g., PDF/A-2a). Unicode compliance (e.g., PDF/A-2u) depends greatly on your fonts and figures.
@@ -407,7 +408,7 @@ Specialized packages for many disciplines can be found in \hrefurl{https://ctan.
When selecting a package to use, check that it is currently maintained (with relatively recent updates), and compare it to other packages that perform similar functions. Some packages are better than others, and some obsolete packages remain online.
-\section*{Nomenclature}
+\section*{Nomenclature}\enlargethispage{\baselineskip}%
An optional nomenclature environment is provided by the class. This environment can support either chapter-by-chapter nomenclature (at the section level) or a single nomenclature for the entire thesis (at the chapter level). The environment has three optional arguments: [1] adjust space between symbol and definition; [2] name (heading) of the nomenclature list; and [3] level, which can be ``chapter'' or ``section'' depending on whether you
have one nomenclature list for whole thesis or one for each chapter (default = section).
@@ -446,14 +447,17 @@ produces the nomenclature list below
\clearpage
+\section*{Additional commands}
+The class also provides \verb|\DegreeYear|, \verb|\DegreeMonth|, and \verb|\CopyrightAuthor|. The latter combines all author names into a single token list, e.g., ``Joseph O. Hirschfelder, Charles F. Curtiss and R. Byron Bird''; a period at the end of the final name (e.g., as in ``John F. Nash Jr.'') is removed.
+
\section*{Use outside MIT}
If your want to adapt this template for use at a different institution, you can put the following commands in your preamble.
\begin{itemize}
-\item Use \verb|\def\MIT{YOUR INSTITUTION}| to change MIT to your own institution (use all capital letters).
+\item Use \verb|\Institution{Your Institution}| to change MIT to your own institution on the title page. {\small\textit{New with v1.06.}}
\item Use \verb|\maketitle*| (in place of \verb|\maketitle|) to drop the MIT copyright permission statement
-\item Use \verb|\setcounter{acccnt}{-2}| to remove the ``Accepted by:'' field.
+\item Omitting \verb|\Acceptor| commands will drop the ``Accepted by:'' field. To suppress the resultant error message, put \verb|\SuppressAcceptorError| before \verb|\maketitle*|. \newline{\small\textit{New with v1.06.}}
\end{itemize}
Please do not remove the license/copyright text from the sources files.
diff --git a/macros/latex/contrib/mitthesis/mitthesis.cls b/macros/latex/contrib/mitthesis/mitthesis.cls
index 8acd3e6358..b98528e532 100644
--- a/macros/latex/contrib/mitthesis/mitthesis.cls
+++ b/macros/latex/contrib/mitthesis/mitthesis.cls
@@ -7,8 +7,8 @@
%% MIT Libraries' requirements as of 2023.
%%
%% This file's version and date:
- \def\versionno{1.05}
- \def\versiondate{2023/07/21\space}
+ \def\versionno{1.06}
+ \def\versiondate{2023/08/29\space}
%%
%% Author: John H. Lienhard, V
%% Department of Mechanical Engineering
@@ -47,48 +47,26 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mitthesis}[\versiondate MIT Thesis Template (JHL)]
-\LoadClass[12pt]{report}% [twoside] option can be issued in the .tex file; point size must be set here.
+\LoadClass[12pt,openright]{report}% [twoside] option can be issued in the .tex file; point size must be set here.
-\RequirePackage{etoolbox}% provides \ifblank, \patchcmd, \apptocmd, etc.
-\RequirePackage{ifthen} % provides \whiledo, etc.
+\ExplSyntaxOn
+ \str_const:Nn \ClassName {mitthesis}
+\ExplSyntaxOff
-\def\ClassName{mitthesis}
+\RequirePackage{iftex}[2019/11/07]% provides \ifpdftex, etc.
%%%%%%%%%%%%% Some compatibility for older latex distributions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}% compare version to date
-\providecommand\IfPackageAtLeastTF{\@ifpackagelater}% compare version to date
-
-\ifdefined\NewDocumentCommand\else
- \RequirePackage{xparse}% enable pre-10/2020 formats to access essential macros later moved into LaTeX kernel
-\fi
+\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}% compare version to date; \If... added to latex 2020/10/01
+\providecommand\IfPackageAtLeastTF{\@ifpackagelater}% compare version to date; \If... added to latex 2020/10/01
\IfFormatAtLeastTF{2020/02/25}{%
\typeout{^^JYour LaTeX format is dated \fmtversion. LaTeX distributions from 2022/11/01 or later are strongly recommended for best results^^J}
}{%
- \ClassError{\ClassName}{Your LaTeX format is dated \fmtversion. Formats dated 2022/11/01 or later are recommended for this class. Older formats may generate errors}{Please UPDATE your LaTeX distribution to obtain best results. TeX Live is available for download at no charge: \string https://www.tug.org/texlive/. You can try to click past the errors for now...}%
+ \ClassError{\ClassName}{Your LaTeX format is dated \fmtversion. Formats dated 2022/11/01 or later are strongly recommended for this class. Older formats may generate errors}{Please UPDATE your LaTeX distribution to obtain best results. TeX Live is available for download at no charge: \string https://www.tug.org/texlive/. You can try to click past the errors for now...}%
}
-\IfFileExists{iftex.sty}{%
- \RequirePackage{iftex}% check whether pdftex or another engine is used
- }{%
- \ClassWarning{\ClassName}{This class requires the missing package iftex.sty---trying a work-around.}
- % Code copied from iftex package written by the LaTeX3 Project (used under LPPL).
- % \csname and \let construct useful for hiding \ifzzz tokens from outer level \if tests.
- \def\IFTEX@let#1#2{%
- \expandafter\let\csname if#1\expandafter\endcsname
- \csname if#2\endcsname}
- % pdftex (including in dvi mode)
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdftexversion\endcsname\relax
- \IFTEX@let{pdftex}{false}
- \else
- \IFTEX@let{pdftex}{true}
- \fi
- \IFTEX@let{PDFTeX}{pdftex}
- }
-
-% check whether pdfmanagement (\DocumentMetadata) has been loaded (to fallback on hyperxmp)
+% check whether pdfmanagement (\DocumentMetadata) has been loaded (if not, fall back to hyperxmp)
\newif\ifmit@pdfmanagement
% As of 2021/07/23 we could instead do:\IfPDFManagementActiveTF{\mit@pdfmanagementtrue}{\mit@pdfmanagementfalse}
\ExplSyntaxOn
@@ -96,20 +74,21 @@
\bool_if:nTF
{
\bool_lazy_and_p:nn
- {\cs_if_exist_p:N \pdfmanagement_if_active_p:}
+ { \cs_if_exist_p:N \pdfmanagement_if_active_p: }
{ \pdfmanagement_if_active_p: }
}
- {
- \mit@pdfmanagementtrue
- }
- {
- \mit@pdfmanagementfalse
- }
- }{\mit@pdfmanagementfalse}
+ { \mit@pdfmanagementtrue }
+ { \mit@pdfmanagementfalse }
+ }{ \mit@pdfmanagementfalse }
\ExplSyntaxOff
-%% Old installations may want textcomp load, but we only require copyright character:
-\ifdefined\textcopyright\else %\def\textcopyright{©}\fi. % 2023/06/26
+% Enable pre-2020/10 formats to access essential macros later moved into LaTeX kernel
+\ifdefined\NewDocumentCommand\else
+ \RequirePackage{xparse}
+\fi
+
+%% Pre-2020/02 installations may need textcomp to be loaded, but we require only the copyright character:
+\ifdefined\textcopyright\else
\ifpdftex
\DeclareTextSymbol{\textcopyright}{TS1}{'251}
\DeclareTextSymbolDefault{\textcopyright}{TS1}
@@ -133,7 +112,7 @@
\SetKeys[\ClassName]{fontset=defaultfonts}%
\DeclareUnknownKeyHandler[\ClassName]{\relax}% suppress warning about unused keys
\ProcessKeyOptions
-}{%
+}{% Compatibility code for distributions pre-2022/11
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=\ClassName,
@@ -141,39 +120,33 @@
setkeys=\kvsetkeys,
}
% set key [fontset] for font selection
- \DeclareStringOption[defaultfonts]{fontset}[]% fixed 2023/06/26
+ \DeclareStringOption[defaultfonts]{fontset}[]
+ %
+ % set key [lineno] to load package lineno
+ \DeclareBoolOption{lineno}
+ %
+ % set key [mydesign] to input file mydesign.tex
+ \DeclareBoolOption{mydesign}
%
\ProcessKeyvalOptions{\ClassName}
%
%% Turn off these keys now that we're done with them
- \def\@KeyFamily{\ClassName}
\NewDocumentCommand\mit@DisableOption{m}{%
\DisableKeyvalOption[%
action=ignore,%
class=\ClassName%
- ]{#1}{\@KeyFamily}%
+ ]{#1}{\ClassName}%
}
- \NewDocumentCommand\@DisableKeys{>{\SplitList{;}}m}{\ProcessList{#1}{\mit@DisableOption}}
+ \NewDocumentCommand\mit@DisableKeys{>{\SplitList{;}}m}{\ProcessList{#1}{\mit@DisableOption}}
+ %
+ \mit@DisableKeys{fontset;lineno;mydesign}%
%
- \@DisableKeys{fontset;}%
-
-
- %%%%%%%% more options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- %%% option to obtain line numbers [lineno]
- \newif\ifmit@lineno\mit@linenofalse
- \DeclareOption{lineno}{\mit@linenotrue}
-
- %%% option for to load packages that customize the design [mydesign] (caption, subcaption, titlesec, itemenum)
- \newif\ifmit@mydesign\mit@mydesignfalse
- \DeclareOption{mydesign}{\mit@mydesigntrue}
-
%% Suppress warnings about unused global options
- \DeclareOption*{}
-
+ \DeclareOption*{}
\ProcessOptions \relax
}
+
%%%%%%%%%%%%% Line numbering (class option) %%%%%%%%%%%%%%%%%%%%%%%%%
%%% Adjustments when lineno option is used
@@ -187,21 +160,19 @@
\providecommand{\@LN@col}[1]{\relax}
\providecommand{\@LN}[2]{\relax}
+
%%%%%%%%%%%%% Patch table of contents, list of figures, and list of tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% We'd like these to have pdf bookmarks and to have the lists appear in the table of contents
+\RequirePackage{etoolbox}% provides \patchcmd
+
+% We'd like these sections to have pdf bookmarks and to have the two lists appear in the table of contents
-\pretocmd{\tableofcontents}{\pdfbookmark[0]{Table of Contents}{toc}}{}{}
-\apptocmd{\tableofcontents}{\cleardoublepage}{}{}
-\pretocmd{\listoffigures}{\phantomsection}{}{}
+\patchcmd{\tableofcontents}{\@starttoc{toc}}{\pdfbookmark[0]{Table of Contents}{toc}\@starttoc{toc}}{}{}
\patchcmd{\listoffigures}{\chapter*{\listfigurename}}{\chapter*{\listfigurename}\addcontentsline{toc}{chapter}{\protect\textbf{\listfigurename}}}{}{}
-\apptocmd{\listoffigures}{\cleardoublepage}{}{}
-\pretocmd{\listoftables}{\phantomsection}{}{}
\patchcmd{\listoftables}{\chapter*{\listtablename}}{\chapter*{\listtablename}\addcontentsline{toc}{chapter}{\protect\textbf{\listtablename}}}{}{}
-\apptocmd{\listoftables}{\cleardoublepage}{}{}
-%%%%%%%%%%%%% Geometry, mathtools, design, graphics, bibliography, hyperrefs, bookmarks %%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%% Geometry, mathtools, design, graphics, bibliography, hyperrefs, bookmarks, footnotes %%%%%%%%%%%%
\RequirePackage[letterpaper,top=1in,bottom=1in,left=1in,right=1in,marginparwidth=50pt,headsep=12pt,footskip=0.5in]{geometry}
@@ -243,7 +214,7 @@
% ==> NOT every font includes a bold math version, so you may need to use other math macros in the headings to get bold math <==
\fi
-%% Font loading
+%% Font loading %%%%%%%%%%
\typeout{^^JFontset key is \mit@fontset.^^J}
\IfFileExists{fontsets/\ClassName-\mit@fontset.tex}{% 2023/07/03
\input{fontsets/\ClassName-\mit@fontset.tex}
@@ -261,7 +232,7 @@
\fi
}
-\RequirePackage{graphicx}
+\RequirePackage{graphicx}
\ifmit@pdfmanagement
\ClassInfo{\ClassName}{pdfmanagement is defined. Will not load hyperxmp}%
@@ -275,16 +246,36 @@
% authors should use hypersetup to set details, in root .tex file
\urlstyle{same} % this changes font for \url to the current text font
-\providecommand\hrefurl[2]{\href{#1}{#2}}% in case new pdf management has not been loaded
+\providecommand\hrefurl[2]{\href{#1}{#2}}% in case \DocumentMetadata has not been loaded
\RequirePackage{doi} % create macro for hyperlinking doi numbers
-% Directly add the xmp property that shows work is copyrighted. See l3pdfmeta.pdf.
-% This is not automatic with \DocumentMetadata. "True" must be capitalized.
-\ExplSyntaxOn
- \cs_if_exist:NTF \pdfmeta_xmp_add:n {\pdfmeta_xmp_add:n{<xmpRights:Marked>True</xmpRights:Marked>}}{}
-\ExplSyntaxOff
-
-
+% the user can override all these design choices in the preamble,
+% or by using \AtBeginDocument{ \hypersetup{..} } in mydesign.tex
+\hypersetup{
+ colorlinks=true,
+ linkcolor=Blue3,% from xcolor package
+ citecolor=Blue3,% from xcolor package
+ urlcolor=violet,% from xcolor package
+ filecolor=red,
+% anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does): hyperref issues a warning
+% 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,
+%
+ pdfcontactaddress={Massachusetts Institute of Technology, 77 Massachusetts Avenue},
+ pdfcontactcity={Cambridge, MA},
+ pdfcontactpostcode={02139-4307},
+ pdfcontactcountry={USA},
+ pdfcontacturl={https://dspace.mit.edu/handle/1721.1/7582},% DSPACE@MIT theses page
+}
+
%%%%%%%%%%%%% Stuff related to PDF bookmarks %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Since \bm may be useful in headings, this fix will reduce frequency with which
@@ -292,435 +283,666 @@
\pdfstringdefDisableCommands{%
\def\bm#1#{\relax}%
}
-%
%%% Let's disable \( and \) in pdf bookmarks
\pdfstringdefDisableCommands{%
\def\({\relax}%
\def\){\relax}%
}
-%
%%% Let's also make sure \NoCaseChange in section headings won't break pdf bookmarks
\pdfstringdefDisableCommands{%
- \let\NoCaseChange\relax%
+ \let\NoCaseChange\relax%
}
-%
%%% Let's just remove citations from pdf bookmarks
\pdfstringdefDisableCommands{%
\def\cite{\@gobble}%
}
-%
%%% Let's fix \eqref in pdf bookmarks
\pdfstringdefDisableCommands{%
\def\eqref#1{(\ref{#1})}%
-%
-%%% Let's make sure footnotes in section headings don't break pdf bookmarks.
-\robustify{\footnote}
+}
+%%% Let's make sure footnotes in section headings don't break pdf bookmarks. (Note: redefined \footnote below is protected)
% \patchcmd{\section}{\sectionmark}{\let\footnote\@gobble\sectionmark}{}{}% <== not needed unless you implement running heads
\pdfstringdefDisableCommands{%
\def\footnote#1{}%
}
-}
-%%% Let's have commas separate successive footnotes
-\let\oldfootnote\footnote
-\renewcommand\footnote[1]{%
- \oldfootnote{#1}\futurelet\nextToken\isOtherfnote}
-
-\newcommand\isOtherfnote{%
- \ifx\footnote\nextToken\textsuperscript{\mdseries,}%
- \fi%
-}
+
+\ExplSyntaxOn
+%\debug_on:n {all}
+
+%%%%%%%%%% Put comma between successive footnotes %%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\cs_new:Npn \__mitthesis_NoteComma:n { \peek_meaning:NTF \footnote {\textsuperscript{\mdseries,}} { } }
+\cs_new_eq:NN \__savefootnote \footnote
+\cs_gset_protected:Npn \footnote #1 { \__savefootnote{#1}\__mitthesis_NoteComma:n }
+
+%%%%%%%%%% End Footnote comma %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% MACROS FOR HANDLING TITLE AND ABSTRACT PAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%% Dates %%%%%%%%%%%%%%%
-
-\ExplSyntaxOn
-\NewExpandableDocumentCommand\MonthCheck{mm}{%
- \str_case_e:nnF {#1}{ {May}{} {June}{} {September}{} {February}{}
- {\space May}{} {\space June}{} {\space September}{} {\space February}{}
- {May\space}{} {June\space}{} {September\space}{} { February\space}{}
- {\space May\space}{} {\space June\space}{} {\space September\space}{} {\space February\space}{}
- }{#2}
+%%%%%%%%%% Degree Date Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\tl_new:N \g__dd_month_tl
+\tl_new:N \g__dd_year_tl
+\cs_generate_variant:Nn \msg_error:nnn {nne}
+\cs_generate_variant:Nn \str_casefold:n {e}
+\cs_generate_variant:Nn \tl_gremove_all:Nn {No}
+\cs_new_protected:Nn \__dd_setdates:nn {
+ \tl_gset:Nn \g__dd_month_tl {#1}
+ \tl_gset:Nn \g__dd_year_tl {#2}
+ \tl_gremove_all:No \g__dd_month_tl { \space }
+ \tl_gremove_all:No \g__dd_year_tl { \space }
+ \str_case_e:nnF
+ { \str_casefold:e { \tl_to_str:N \g__dd_month_tl } }
+ { {february}{} {may}{} {june}{} {september}{}}
+ { \msg_error:nne {\ClassName} {wrong_month} { \text_titlecase:n {\g__dd_month_tl} } }
}
-\ExplSyntaxOff
+\msg_new:nnnn {\ClassName} {wrong_month} {The\ degree\ month\ must\ be\ one\ of\ February,\ May,\ June,\ or\ September.} {You\ cannot\ use\ #1\ as\ the\ degree\ month.}
-\NewDocumentCommand\DegreeDate{mm}{%
- \def\@DegreeMonth{\ignorespaces#1}%
- \def\@@DegreeMonth{#1}%
- \def\@DegreeYear{\ignorespaces#2}%
- \def\DegreeYear{\ignorespaces#2}%
+\cs_generate_variant:Nn \text_titlecase:n {o,V}
+\NewDocumentCommand\DegreeDate{mm}{% {month}{year}
+ \__dd_setdates:nn {#1}{#2}
+ \cs_new:Npn \DegreeMonth { \text_titlecase:V { \g__dd_month_tl } }
+ \cs_new:Npn \DegreeYear { \text_titlecase:V { \g__dd_year_tl } }
+}
+\msg_new:nnnn {\ClassName} {no_degree_date} {Missing\ degree\ date!}{
+ You\ MUST\ issue\ the\ \DegreeDate{month}{year}\ command\ between\ \string\begin{document}\ and\ \string\maketitle.}
+
+\NewDocumentCommand\ThesisDate{m}{
+ \tl_if_exist:NTF \g_dd_thesisdate_tl { \g_dd_thesisdate_tl } { \__dd_thesisdate:n {#1} }% will use only value given first
+}
+\cs_new_protected:Nn \__dd_thesisdate:n {
+ \tl_new:N \g_dd_thesisdate_tl
+ \tl_gset:Nx \g_dd_thesisdate_tl { \tl_trim_spaces:n {#1} }
}
-\NewDocumentCommand\ThesisDate{m}{%
- \def\@ThesisDate{\ignorespaces#1}%
+%%%%%%%%%% End Degree Date Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% Author Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\seq_new:N \g_author_name_seq
+\seq_new:N \g_author_department_seq
+\seq_new:N \g_author_prevdegree_seq
+\seq_new:N \g_author_secondprevdegree_seq
+\seq_new:N \g_author_thirdprevdegree_seq
+\seq_new:N \g_author_fourthprevdegree_seq
+\int_gzero_new:N \g_author_authorcnt_int
+
+\NewDocumentCommand\Author{mm O{}O{}O{}O{} }
+ {
+ \tl_if_blank:nTF{#1}{
+ \msg_error:nn {\ClassName} {blank_author}
+ }{
+ \__author_data_add:nnnnnn { #1 } { #2 } { #3 } { #4 } { #5 } { #6 }
+ }
+ \tl_if_blank:nTF{#2}{\msg_error:nn {\ClassName} {blank_author_dep}}{}
+ }
+\cs_new_protected:Nn \__author_data_add:nnnnnn
+ {
+ \int_gincr:N \g_author_authorcnt_int
+ \seq_gput_right:cx { g_author_name_seq } { \tl_trim_spaces:n {#1} }
+ \seq_gput_right:cx { g_author_department_seq } { \tl_trim_spaces:n {#2} }
+ \seq_gput_right:cx { g_author_prevdegree_seq } { \tl_trim_spaces:n {#3} }
+ \seq_gput_right:cx { g_author_secondprevdegree_seq } { \tl_trim_spaces:n {#4} }
+ \seq_gput_right:cx { g_author_thirdprevdegree_seq } { \tl_trim_spaces:n {#5} }
+ \seq_gput_right:cx { g_author_fourthprevdegree_seq } { \tl_trim_spaces:n {#6} }
+ }
+\msg_new:nnnn {\ClassName} {blank_author} {Missing\ author\ name,\ check\ for\ blank\ in\ \Author\ command.}{%
+ You\ MUST\ provide\ an\ author\ name\ using\ the\ \Author{name}{department}\ command.}
+\msg_new:nnnn {\ClassName} {blank_author_dep} {Missing\ author\ department,\ check\ for\ blank\ in\ \Author\ command.}{%
+ You\ MUST\ provide\ the\ author's\ department\ using\ the\ \Author{name}{department}\ command.}
+
+\NewExpandableDocumentCommand\CopyrightAuthor{}{
+ \tl_if_exist:NTF \g__author_ca_tl
+ { \g__author_ca_tl }
+ { \__author_copyrightauthor: \g__author_ca_tl }
}
-%%%%%%%%%%%%%% Author, supervisor, acceptor, titles, and departments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\newcounter{authorcnt}
-\setcounter{authorcnt}{0}% this counter's final value is used repeatedly.
-
-\NewDocumentCommand\Author{m m oooo}{%
- \ifblank{#1}{%
- \ClassError{\ClassName}{Missing author name, check for blank in Author command}{%
- You MUST provide an author name using the \Author{name}{department} command.}%
- }{%
- \addtocounter{authorcnt}{1}%
- \expandafter\xdef\csname aut@\theauthorcnt\endcsname{\ignorespaces#1}%
- \expandafter\xdef\csname autdep@\theauthorcnt\endcsname{\ignorespaces#2}%
- \IfNoValueF{#3}{\expandafter\xdef\csname prevdegree@\theauthorcnt\endcsname{\ignorespaces#3}}%
- \IfNoValueF{#4}{\expandafter\xdef\csname secondprevdegree@\theauthorcnt\endcsname{\ignorespaces#4}}%
- \IfNoValueF{#5}{\expandafter\xdef\csname thirdprevdegree@\theauthorcnt\endcsname{\ignorespaces#5}}%
- \IfNoValueF{#6}{\expandafter\xdef\csname fourthprevdegree@\theauthorcnt\endcsname{\ignorespaces#6}}%
- }%
- \ifblank{#2}{\ClassWarning{\ClassName}{Missing author department, check for blank in Author command}}{}%
-}% defines \aut@authorcnt as Name #1 and \autdep@authorcnt as Name #1's department
-
-\newcounter{authorno}
-\setcounter{authorno}{0}
-
-\NewDocumentCommand\@AuthorBlock{}{% Revised 2023/06/23
- \setcounter{authorno}{1}%
- \ifnum\value{authorcnt}=0
- \ClassError{\ClassName}{Missing author! You must issue the \Author{name}{department} command}{%
- You MUST issue the \Author{name}{department} command after \begin{document} and before \maketitle.}%
- \fi
- {by\par
- \whiledo{\value{authorno}<\value{authorcnt}}{%
- \ignorespaces\csname aut@\theauthorno\endcsname\par
- \ifcsundef{prevdegree@\theauthorno}{\relax}{\normalsize\csname prevdegree@\theauthorno\endcsname}%
- \ifcsundef{secondprevdegree@\theauthorno}{\relax}{\linebreak\normalsize\csname secondprevdegree@\theauthorno\endcsname}%
- \ifcsundef{thirdprevdegree@\theauthorno}{\relax}{\linebreak\normalsize\csname thirdprevdegree@\theauthorno\endcsname}%
- \ifcsundef{fourthprevdegree@\theauthorno}{\relax}{\linebreak\normalsize\csname fourthprevdegree@\theauthorno\endcsname}%
- \par and\par
- \addtocounter{authorno}{1}%
- }%
- \ignorespaces\csname aut@\theauthorno\endcsname
- \ifcsundef{prevdegree@\theauthorno}{\relax}{\par\normalsize\csname prevdegree@\theauthorno\endcsname}%
- \ifcsundef{secondprevdegree@\theauthorno}{\relax}{\linebreak \normalsize\csname secondprevdegree@\theauthorno\endcsname}%
- \ifcsundef{thirdprevdegree@\theauthorno}{\relax}{\linebreak \normalsize\csname thirdprevdegree@\theauthorno\endcsname}%
- \ifcsundef{fourthprevdegree@\theauthorno}{\relax}{\linebreak \normalsize\csname fourthprevdegree@\theauthorno\endcsname}%
- \par\medskip
- }%
+\cs_new_protected:Nn \__author_copyrightauthor: {
+ \tl_new:N \g__author_ca_tl
+ \int_zero_new:N \l__author_autcrcnt_int
+ \int_incr:N \l__author_autcrcnt_int
+ \tl_gset:Nx \g__author_ca_tl { \seq_item:cn { g_author_name_seq } { \l__author_autcrcnt_int } }
+ \int_incr:N \l__author_autcrcnt_int
+ \int_while_do:nNnn { \l__author_autcrcnt_int } < { \g_author_authorcnt_int }
+ {
+ \tl_gput_right:Nx \g__author_ca_tl {,\ \seq_item:cn { g_author_name_seq } { \l__author_autcrcnt_int } }
+ \int_incr:N \l__author_autcrcnt_int
+ }
+ \int_compare:nNnT { \l__author_autcrcnt_int } = { \g_author_authorcnt_int } {
+ \tl_gput_right:Nx \g__author_ca_tl {\ and\ \seq_item:cn { g_author_name_seq } { \l__author_autcrcnt_int } }
+ }
+ \tl_set:Nn \l_tmpa_tl {\tl_item:Nn \g__author_ca_tl {-1} }% get last token
+ \str_case_e:nnT
+ { \l_tmpa_tl }
+ { {.}{} }
+ { \__copyright_remove_period:N { \g__author_ca_tl } }% remove last token if it is a period
+ \__author_pdfcopyrightauthor:
+}
+\cs_new:Nn \__copyright_remove_period:N
+ {
+ \tl_gset:Nx #1 { \tl_range:Nnn #1 { 1 } { \tl_count:N #1 - 1 } }
+ }
+\cs_new_protected:Nn \__author_pdfcopyrightauthor: {
+ \tl_new:N \g__author_pdfca_tl
+ \int_set:Nn \l_tmpa_int {1}
+ \tl_gset:Nx \g__author_pdfca_tl { { \seq_item:cn { g_author_name_seq } { \l_tmpa_int } } }
+ \int_until_do:nNnn { \l_tmpa_int } = { \g_author_authorcnt_int }
+ {
+ \int_incr:N \l_tmpa_int
+ \tl_gput_right:Nx \g__author_pdfca_tl {,\ { \seq_item:cn { g_author_name_seq } { \l_tmpa_int } } }
+ }
}
-\NewDocumentCommand\@AbstractAuthorBlock{}{% Revised 2023/07/20
- \setcounter{authorno}{1}%
+
+\cs_new:Nn \__author_block: {
+ \int_zero_new:N \l__author_authorno_int
+ \int_incr:N \l__author_authorno_int
+ \int_compare:nNnTF { \g_author_authorcnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_author}
+ }
{by\par
- \whiledo{\value{authorno}<\value{authorcnt}}{%
- \ignorespaces\csname aut@\theauthorno\endcsname
+ \int_until_do:nNnn { \l__author_authorno_int } = { \g_author_authorcnt_int } {
+ \seq_item:cn { g_author_name_seq } { \l__author_authorno_int } \par
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_prevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \normalsize \l_tmpa_tl }% no linebreak or par for empty items
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_secondprevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_thirdprevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_fourthprevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
\par and\par
- \addtocounter{authorno}{1}%
- }%
- \ignorespaces\csname aut@\theauthorno\endcsname
+ \int_incr:N \l__author_authorno_int
+ }
+ \seq_item:cn { g_author_name_seq } { \l__author_authorno_int } \par
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_prevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \normalsize \l_tmpa_tl }% no linebreak or par for empty items
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_secondprevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_thirdprevdegree_seq } { \l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
+ \tl_set:Nx \l_tmpa_tl { \seq_item:cn { g_author_fourthprevdegree_seq } {\l__author_authorno_int} }
+ \tl_if_empty:NF \l_tmpa_tl { \linebreak\normalsize \l_tmpa_tl }
+ \par\medskip
+ }
+}
+\msg_new:nnnn {\ClassName} {no_author}
+ { Missing\ author!\ You\ must\ issue\ the\ \Author{name}{department}\ command. }{
+ You\ MUST\ issue\ the\ \Author{name}{department}\ command\ after\ \string\begin{document}\ and\ before\ \string\maketitle. }
+
+\cs_new:Nn \__author_abstractblock: {
+ \int_zero_new:N \l__author_authorno_int
+ \int_incr:N \l__author_authorno_int
+ \int_compare:nNnTF { \g_author_authorcnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_author}
+ }
+ {by\par
+ \int_until_do:nNnn { \l__author_authorno_int } = { \g_author_authorcnt_int } {
+ \seq_item:cn { g_author_name_seq } { \l__author_authorno_int }
+ \par and\par
+ \int_incr:N \l__author_authorno_int
+ }%
+ \seq_item:cn { g_author_name_seq } { \l__author_authorno_int }
}%
}
-\newcounter{autcrcnt}
-\setcounter{autcrcnt}{1}
+%%%%%%%%%% End Author Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\NewDocumentCommand\@CopyrightAuthor{}{%
- \csname aut@\theautcrcnt\endcsname
- \addtocounter{autcrcnt}{1}%
- \whiledo{\value{autcrcnt}<\value{authorcnt}}{%
- , \ignorespaces\csname aut@\theautcrcnt\endcsname
- \addtocounter{autcrcnt}{1}%
- }%
- \ifnum\value{autcrcnt}=\value{authorcnt}%
- \space and\space\csname aut@\theauthorcnt\endcsname\ignorespaces
- \fi
- \setcounter{autcrcnt}{1}% reset so we can use this command more than once
+
+%%%%%%%%%% Supervisor Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\seq_new:N \g_supervisor_name_seq
+\seq_new:N \g_supervisor_title_seq
+\int_gzero_new:N \g_supervisor_supervisorcnt_int
+
+\NewDocumentCommand\Supervisor{mm}{
+ \tl_if_blank:nTF{#1}{
+ \msg_error:nn {\ClassName} {blank_supervisor}
+ }{
+ \__supervisor_data_add:nn { #1 } { #2 }
+ }
+ \tl_if_blank:nTF{#2}{\msg_error:nn {\ClassName} {blank_supervisor_title}}{}
}
+\msg_new:nnnn {\ClassName} {blank_supervisor}
+ { Missing\ supervisor\ name, check\ for\ blank\ in\ \Supervisor{name}{title}\ command.}{
+ You\ MUST\ provide\ the\ supervisor's\ name\ using\ the\ \Supervisor{name}{title}\ command.}
+\msg_new:nnnn {\ClassName} {blank_supervisor_title}
+ { Missing\ supervisor\ title, check\ for\ blank\ in\ \Supervisor{name}{title}\ command. }{
+ You\ MUST\ provide\ the\ supervisor's\ title\ using\ the\ \Supervisor{name}{title}\ command.}
+
+\cs_new_protected:Nn \__supervisor_data_add:nn
+ {
+ \int_gincr:N \g_supervisor_supervisorcnt_int
+ \seq_gput_right:cx { g_supervisor_name_seq } { \tl_trim_spaces:n {#1} }
+ \seq_gput_right:cx { g_supervisor_title_seq } { \tl_trim_spaces:n {#2} }
+ }
+
+
+\cs_new:Nn \__supervisor_abstractblock: {
+ \int_zero_new:N \l__supervisor_supervisorno_int
+ \int_incr:N \l__supervisor_supervisorno_int
+ \setlength{\parindent}{0pt}
+ \par\bigskip
+ \int_compare:nNnTF { \g_supervisor_supervisorcnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_supervisor}
+ }
+ {\int_until_do:nNnn { \l__supervisor_supervisorno_int } = { \g_supervisor_supervisorcnt_int } {
+ Thesis\ supervisor:\space \seq_item:cn { g_supervisor_name_seq } { \l__supervisor_supervisorno_int }\par
+ Title:\space \seq_item:cn { g_supervisor_title_seq } { \l__supervisor_supervisorno_int }\par\medskip
+ \int_incr:N \l__supervisor_supervisorno_int
+ }
+ Thesis\ supervisor:\space \seq_item:cn { g_supervisor_name_seq } { \l__supervisor_supervisorno_int }\par
+ Title:\space \seq_item:cn { g_supervisor_title_seq } { \l__supervisor_supervisorno_int }\ignorespaces
+ }
+}
+\msg_new:nnnn {\ClassName} {no_supervisor}
+ { Missing\ supervisor!\ You\ must\ issue\ the\ \Supervisor{name}{title}\ command. }{
+ You\ MUST\ issue\ the\ \Supervisor{name}{title}\ command\ after\ \string\begin{document}\ and\ before\ \string\maketitle. }
-\newcounter{degcnt}
-\setcounter{degcnt}{0}
-\newcounter{depflag}
-\setcounter{depflag}{0}
-\NewDocumentCommand\Degree{mm}{% Revised 2023/06/23
- \ifblank{#1}{%
- \ClassError{\ClassName}{Missing degree name, check for blank \Degree{name}{department} command}{%
- Check for blank name \Degree{name}{department} command.}%
- }{%
- \addtocounter{degcnt}{1}%
- \expandafter\xdef\csname deg@\thedegcnt\endcsname{\ignorespaces#1}%
- \expandafter\xdef\csname degdep@\thedegcnt\endcsname{\ignorespaces#2}%
- }%
- \ifblank{#2}{%
- \setcounter{depflag}{\value{degcnt}}%
- \ClassWarning{\ClassName}{Missing degree department for Degree command number \thedegcnt. Assuming to be a duplicate of previous department}}{}%
-}% defines \deg@degcnt as Name #1 and \degdep@degcnt as associated dept.
-
-\newcounter{degno}
-\newcounter{depno}
-\NewDocumentCommand\@DegreeBlock{}{% extensive revision 2023/06/23
- \ifnum\value{degcnt}=0
- \ClassError{\ClassName}{Missing degree! You must issue the \Degree{name}{department} command}{%
- You MUST issue the \Degree{name}{department} command after \begin{document} and before \maketitle. You do want the degree, don't you?}%
- \fi
- \setcounter{degno}{1}
- \setcounter{depno}{1}
- \newcommand*\PrevDept{\csname degdep@\thedepno\endcsname}
- \newcommand*\CurrDept{}
- Submitted to the \mbox{\PrevDept}%
- \whiledo{\value{depno}<\value{degcnt}}{%
- \addtocounter{depno}{1}%
- \renewcommand*\CurrDept{\csname degdep@\thedepno\endcsname}%
- \ifnum\value{depflag}=\value{depno}\relax\else
- \space and the\linebreak
- \mbox{\CurrDept}%
- \fi%
- }%
- \linebreak \mbox{in partial fulfillment of the requirements for the\space
- \ifnum\value{degcnt}>1 degrees\else degree\fi\space of}%
+
+%%%%%%%%%% End Supervisor Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% Acceptor Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\seq_new:N \g_acceptor_name_seq
+\seq_new:N \g_acceptor_department_seq
+\seq_new:N \g_acceptor_title_seq
+\int_gzero_new:N \g_acceptor_acceptorcnt_int
+
+\bool_new:N \g__acceptor_title_tf_bool
+\bool_gset_false:N \g__acceptor_title_tf_bool
+
+\NewDocumentCommand\Acceptor{mmm}{
+ \tl_if_blank:nTF{#1}{
+ \msg_error:nn {\ClassName} {blank_acceptor}
+ }{
+ \__acceptor_data_add:nnn {#1} {#2} {#3}
+ }
+ \tl_if_blank:nTF{#2}{\msg_error:nn {\ClassName} {blank_acceptor_dep}}{}
+ \tl_if_blank:nTF{#3}{
+ \bool_gset_true:N \g__acceptor_title_tf_bool
+ \msg_warning:nn {\ClassName} {blank_acceptor_title}}{}
+}
+\msg_new:nnnn {\ClassName} {blank_acceptor}
+ { Missing\ acceptor\ name, check\ for\ blank\ in\ \Acceptor{name}{department}{title}\ command.}{
+ You\ MUST\ provide\ the\ acceptor's\ name\ using\ the\ \Acceptor{name}{department}{title}\ command.}
+\msg_new:nnnn {\ClassName} {blank_acceptor_dep}
+ { Missing\ acceptor\ department, check\ for\ blank\ in\ \Acceptor{name}{department}{title}\ command. }{
+ You\ MUST\ provide\ the\ acceptor's\ department\ using\ the\ \Acceptor{name}{department}{title}\ command.}
+\msg_new:nnn {\ClassName} {blank_acceptor_title}
+ { Missing\ acceptor\ title\ (blank\ in\ \Acceptor{name}{department}{title}\ command).\ Perhaps\ you\ are\ trying\ to\ save\ vertical\ space?\ You\ can\ put\ the\ acceptor\ title\ into\ department\ field\ instead.\ For\ consistency,\ I\ will\ omit\ titles\ of\ ALL\ acceptors.}
+
+\cs_new_protected:Nn \__acceptor_data_add:nnn
+ {
+ \int_gincr:N \g_acceptor_acceptorcnt_int
+ \seq_gput_right:cx { g_acceptor_name_seq } { \tl_trim_spaces:n {#1} }
+ \seq_gput_right:cx { g_acceptor_department_seq } { \tl_trim_spaces:n {#2} }
+ \seq_gput_right:cx { g_acceptor_title_seq } { \tl_trim_spaces:n {#3} }
+ }
+
+%%%%%%%%%% End Acceptor Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% Degree Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\seq_new:N \g_degree_name_seq
+\seq_new:N \g_degree_department_seq
+\int_gzero_new:N \g_degree_degreecnt_int
+\int_gzero_new:N \g__degree_degreeflag_int
+
+\NewDocumentCommand\Degree{mm}
+ {
+ \tl_if_blank:nTF {#1} {
+ \msg_error:nn {\ClassName} {blank_degree}
+ }{
+ \__degree_data_add:nn { #1 } { #2 }
+ }
+ \tl_if_blank:nT {#2} {
+ \int_gset_eq:NN \g__degree_degreeflag_int \g_degree_degreecnt_int
+ \msg_warning:nnx {\ClassName} {blank_degree_dep} { \int_to_arabic:n { \g__degree_degreeflag_int } }
+ \tl_if_blank:nT {#1} { \int_gincr:N \g__degree_degreeflag_int }% in case both are blank
+ }
+ }
+\cs_new_protected:Nn \__degree_data_add:nn
+ {
+ \int_gincr:N \g_degree_degreecnt_int
+ \seq_gput_right:cx { g_degree_name_seq } { \tl_trim_spaces:n {#1} }
+ \seq_gput_right:cx { g_degree_department_seq } { \tl_trim_spaces:n {#2} }
+ }
+\msg_new:nnnn {\ClassName} {blank_degree} {Missing\ degree\ name,\ check\ for\ blank\ in\ \Degree\ command.}
+ {You\ MUST\ provide\ a\ degree\ name\ using\ the\ \Degree{name}{department}\ command.}
+\msg_new:nnnn {\ClassName} {blank_degree_dep} {Missing\ degree\ department\ for\ Degree\ command\ number\
+ #1.\ Will\ treat\ as\ a\ duplicate\ of\ previous\ department.}{}
+
+\int_zero_new:N \l__degree_degreeno_int
+\int_zero_new:N \l__degree_departmentno_int
+
+\cs_new:Nn \__degree_block: {
+ \int_compare:nNnTF { \g_degree_degreecnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_degree}
+ }
+ \int_zero_new:N \l__degree_degreeno_int
+ \int_incr:N \l__degree_degreeno_int
+ \int_zero_new:N \l__degree_departmentno_int
+ \int_incr:N \l__degree_departmentno_int
+ \cs_new:Nx \__degree_prevdept: {\seq_item:cn { g_degree_department_seq } { \l__degree_departmentno_int } }
+ \cs_new:Nn \__degree_currdept: {}
+ \mbox {Submitted\ to\ the\ } \mbox {\__degree_prevdept:}
+ \int_until_do:nNnn { \l__degree_departmentno_int } = { \g_degree_degreecnt_int } {
+ \int_incr:N \l__degree_departmentno_int
+ \cs_set:Nx \__degree_currdept: {\seq_item:cn { g_degree_department_seq } { \l__degree_departmentno_int } }
+ \int_compare:nNnTF { \l__degree_departmentno_int } = {\g__degree_degreeflag_int } { \scan_stop: }
+ {
+ \mbox {\ and\ the}\linebreak
+ \mbox {\__degree_currdept: }
+ }
+ }
+ \linebreak \mbox {in\ partial\ fulfillment\ of\ the\ requirements\ for\ the\
+ \int_compare:nNnTF { \g_degree_degreecnt_int } > {1} {degrees} {degree}
+ \ of}
\par\medskip
- \whiledo{\value{degno}<\value{degcnt}}{%
- \MakeUppercase{\ignorespaces\csname deg@\thedegno\endcsname}\par and\par
- \addtocounter{degno}{1}%
- }%
- \MakeUppercase{\ignorespaces\csname deg@\thedegno\endcsname}\par\medskip
+ \int_until_do:nNnn { \l__degree_degreeno_int } = { \g_degree_degreecnt_int } {
+ \text_uppercase:n {\seq_item:cn { g_degree_name_seq } { \l__degree_degreeno_int }}\par and\par
+ \int_incr:N \l__degree_degreeno_int
+ }
+ \text_uppercase:n {\seq_item:cn { g_degree_name_seq } { \l__degree_degreeno_int }}\par\medskip
}
-
-\NewDocumentCommand\@AbstractDegreeBlock{}{% 2023/07/19
- \setcounter{degno}{1}
- \setcounter{depno}{1}
- \newcommand*\PrevDept{\csname degdep@\thedepno\endcsname}
- \newcommand*\CurrDept{}
- Submitted to the \mbox{\PrevDept}%
- \whiledo{\value{depno}<\value{degcnt}}{%
- \addtocounter{depno}{1}%
- \renewcommand*\CurrDept{\csname degdep@\thedepno\endcsname}%
- \ifnum\value{depflag}=\value{depno}\relax\else
- \space and the\linebreak
- \mbox{\CurrDept}%
- \fi%
- }%
- \linebreak on \@ThesisDate \space \mbox{in partial fulfillment of the requirements for the\space
- \ifnum\value{degcnt}>1 degrees\else degree\fi\space of}%
+\msg_new:nnnn {\ClassName} {no_degree}
+ { Missing\ degree!\ You\ must\ issue\ the\ \Degree{name}{department}\ command. }{
+ You\ MUST\ issue\ the\ \Degree{name}{department}\ command\ after\ \string\begin{document}\ and\ before\ \string\maketitle.\ You\ do\ want\ the\ degree,\ don't\ you?}
+
+
+\cs_new:Nn \__degree_abstractblock: {
+ \int_set:Nn \l__degree_degreeno_int {1}
+ \int_set:Nn \l__degree_departmentno_int {1}
+ \cs_set:Nx \__degree_prevdept: {\seq_item:cn { g_degree_department_seq } { \l__degree_departmentno_int } }
+ \cs_set:Nn \__degree_currdept: {}
+ \mbox {Submitted\ to\ the\ }\mbox{\__degree_prevdept:}
+ \int_until_do:nNnn { \l__degree_departmentno_int } = { \g_degree_degreecnt_int } {
+ \int_incr:N \l__degree_departmentno_int
+ \cs_set:Nx \__degree_currdept: {\seq_item:cn { g_degree_department_seq } { \l__degree_departmentno_int } }
+ \int_compare:nNnTF { \g__degree_degreeflag_int } = { \g_degree_degreecnt_int } { \scan_stop: }
+ {
+ \mbox {\ and\ the}\linebreak
+ \mbox { \__degree_currdept: }
+ }
+ }
+ \linebreak \mbox{on\ \g_dd_thesisdate_tl\ in\ partial\ fulfillment\ of\ the\ requirements\ for\ the\
+ \int_compare:nNnTF { \g_degree_degreecnt_int } > {1} {degrees} {degree}
+ \ of}
\par\medskip
- \whiledo{\value{degno}<\value{degcnt}}{%
- \MakeUppercase{\ignorespaces\csname deg@\thedegno\endcsname}\par and\par
- \addtocounter{degno}{1}%
- }%
- \MakeUppercase{\ignorespaces\csname deg@\thedegno\endcsname}\par\medskip
+ \int_until_do:nNnn { \l__degree_degreeno_int } = { \g_degree_degreecnt_int } {
+ \text_uppercase:n {\seq_item:cn { g_degree_name_seq } { \l__degree_degreeno_int }}\par and\par
+ \int_incr:N \l__degree_degreeno_int
+ }
+ \text_uppercase:n {\seq_item:cn { g_degree_name_seq } { \l__degree_degreeno_int }}\par\medskip
}
+%%%%%%%%%% End Degree Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcounter{supcnt}
-\setcounter{supcnt}{0}
-\newcounter{supno}
-\setcounter{supno}{0}
-\NewDocumentCommand\Supervisor{mm}{%
- \ifblank{#1}{%
- \ClassError{\ClassName}{Missing supervisor name, check for blank in \Supervisor{name}{department} command}{
- Check for blank in \Supervisor{name}{department} command.}%
- }{%
- \addtocounter{supcnt}{1}%
- \expandafter\xdef\csname sup@\thesupcnt\endcsname{#1}%
- \expandafter\xdef\csname supdep@\thesupcnt\endcsname{#2}%
- }%
- \ifblank{#2}{\ClassError{\ClassName}{Missing supervisor department, check for blank in \Supervisor{name}{department} command}{%
- check for blank in \Supervisor{name}{department} command.}}{}%
-}% defines \sup@supcnt as Name #1 and \supdep@supcnt as associated dept.
-
-\newcounter{acccnt}
-\setcounter{acccnt}{0}
-\newcounter{accno}
-\setcounter{accno}{0}
-\newif\ifmit@noacctitle\mit@noacctitlefalse % Revised 2023/06/23
-\NewDocumentCommand\Acceptor{mmm}{%
- \ifblank{#1}{%
- \ClassWarning{\ClassName}{Missing acceptor name, check for blank in \Acceptor{name}{department}{title} command}%
- }{%
- \addtocounter{acccnt}{1}%
- \expandafter\xdef\csname acc@\theacccnt\endcsname{#1}%
- \expandafter\xdef\csname accdep@\theacccnt\endcsname{#2}%
- \expandafter\xdef\csname acctitle@\theacccnt\endcsname{#3}%
- }%
- \ifblank{#2}{\ClassWarning{\ClassName}{Missing acceptor department, check for blank in \Acceptor{name}{department}{title} command.}}{}%
- \ifblank{#3}{%
- \mit@noacctitletrue
- \ClassWarning{\ClassName}{Missing acceptor title (blank in \Acceptor{name}{department}{title} command). Perhaps you are trying to save vertical space? You can put the acceptor title into department field instead. For consistency, I will omit titles of ALL acceptors.}%
- }{}%
-}% defines \acc@acccnt as Name #1, \accdep@accccnt as associated dept, and \acctitle@acccnt as title of acceptor
-
-\newcommand*\@SigSize{\relax}
-\NewDocumentCommand\SignatureBlockSize{m}{\renewcommand\@SigSize{\ignorespaces#1}}% revised 2023/06/23
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\NewDocumentCommand\@SetSignatureBlock{}{% Revised 2023/06/23
- \ifnum\value{supcnt}=0
- \ClassError{\ClassName}{Missing supervisor! You must issue the \Supervisor{name}{department} command}{%
- You MUST issue the \Supervisor{name}{department} command after \begin{document} and before \maketitle.}%
- \fi
- \ifnum\value{acccnt}=0
- \ClassError{\ClassName}{Missing acceptor! You must issue the \Acceptor{name}{department} command}{%
- You MUST issue the \Acceptor{name}{department} command after \begin{document} and before \maketitle.}%
- \fi
- \ifdefined\@ThesisDate\else\ClassError{\ClassName}{Missing thesis date!}{%
- You must issue the \ThesisDate{Date thesis is submitted} command between \begin{document} and \maketitle.}%
- \fi
- \setcounter{authorno}{0}%
- \setcounter{supno}{0}%
- \setcounter{accno}{0}%
- \@SigSize
+%%%%%%%%%% Signature Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\NewDocumentCommand\SignatureBlockSize{m}{
+ \__signature_sigsize:n {#1}
+}
+\tl_new:N \g__signature_sigsize_tl
+\cs_new_protected:Nn \__signature_sigsize:n
+ {
+ \tl_gset:Nf \g__signature_sigsize_tl { \tl_trim_spaces:n {#1} }
+ \token_case_meaning:NnF \g__signature_sigsize_tl
+ {
+ \normalsize {} \small {} \footnotesize{} \scriptsize{} \tiny{}
+ } {
+ \msg_error:nn {\ClassName} {weird_sigsize}
+ }
+ }
+
+\cs_new:Nn \__signature_block: {
+ \int_compare:nNnT { \g_supervisor_supervisorcnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_supervisor}% this message is def'd in Abstract supervisor block
+ }
+ \int_compare:nNnT { \g_acceptor_acceptorcnt_int } = {0} {
+ \msg_error:nn {\ClassName} {no_acceptor}
+ }
+ \tl_if_exist:NF \g_dd_thesisdate_tl {
+ \msg_error:nn {\ClassName} {no_thesis_date}
+ }
+ \int_gzero_new:N \g__signature_autno_int
+ \int_gzero_new:N \g__signature_supno_int
+ \int_gzero_new:N \g__signature_accno_int
+ \g__signature_sigsize_tl
\begin{tabbing}
- \hspace{1.35in}\=\hspace{1in}\kill
- \whiledo{\value{authorno}<\value{authorcnt}}{% starting with authorno = 0 ensures we reach authorcnt with +1
- \addtocounter{authorno}{1}%
- Authored by: \> \csname aut@\theauthorno\endcsname\\% remove \ignorespaces x9, 2023/06/23
- \> \csname autdep@\theauthorno\endcsname\\
- \> \@ThesisDate \\[1em]
- }% end whiledo
- \whiledo{\value{supno}<\value{supcnt}}{%
- \addtocounter{supno}{1}%
- Certified by: \> \csname sup@\thesupno\endcsname\\
- \> \csname supdep@\thesupno\endcsname, Thesis Supervisor\\[1em]
- }% end whiledo
- \whiledo{\value{accno}<\value{acccnt}}{%
- \addtocounter{accno}{1}%
- Accepted by: \> \csname acc@\theaccno\endcsname\\
- \> \csname accdep@\theaccno\endcsname
- \ifmit@noacctitle\else %<=== 2023/06/23
- \\
- \> \csname acctitle@\theaccno\endcsname
- \fi
- \\[1em]
- }% end whiledo
+ \hspace{1.35in} \= \hspace{1in} \kill
+ \int_do_while:nNnn { \g__signature_autno_int } < { \g_author_authorcnt_int } {
+ \int_gincr:N \g__signature_autno_int
+ Authored\ by: \> \seq_item:cn { g_author_name_seq } { \g__signature_autno_int } \\
+ \> \seq_item:cn { g_author_department_seq } { \g__signature_autno_int } \\
+ \> \g_dd_thesisdate_tl \\[1em]
+ }
+ \int_do_while:nNnn { \g__signature_supno_int } < { \g_supervisor_supervisorcnt_int } {
+ \int_gincr:N \g__signature_supno_int
+ Certified\ by: \> \seq_item:cn { g_supervisor_name_seq } { \g__signature_supno_int } \\
+ \> \seq_item:cn { g_supervisor_title_seq } { \g__signature_supno_int },\ Thesis\ Supervisor\\[1em]
+ }
+ \int_compare:nNnF { \g_acceptor_acceptorcnt_int } = {0} {
+ \int_do_while:nNnn { \g__signature_accno_int } < { \g_acceptor_acceptorcnt_int } {
+ \int_gincr:N \g__signature_accno_int
+ Accepted\ by: \> \seq_item:cn { g_acceptor_name_seq } { \g__signature_accno_int } \\
+ \> \seq_item:cn { g_acceptor_department_seq } { \g__signature_accno_int }
+ \bool_if:NF \g__acceptor_title_tf_bool
+ {
+ \\
+ \> \seq_item:cn { g_acceptor_title_seq } { \g__signature_accno_int }
+ }
+ \\[1em]
+ }
+ }
\end{tabbing}
}
-\NewDocumentCommand\@SetAbstractSupervisorBlock{}{% revised 2023/06/23
- \setcounter{supno}{1}
- \setlength{\parindent}{0pt}
- \par\bigskip\noindent
- \whiledo{\value{supno}<\value{supcnt}}{%
- Thesis supervisor: \csname sup@\thesupno\endcsname\par
- Title: \csname supdep@\thesupno\endcsname\par\medskip
- \addtocounter{supno}{1}%
- }% end whiledo
- Thesis supervisor: \csname sup@\thesupno\endcsname\par
- Title: \csname supdep@\thesupno\endcsname\ignorespaces
-}
+\msg_new:nnnn {\ClassName} {weird_sigsize}
+ { \SignatureBlockSize\ expects\ a\ font-sizing\ command,\ such\ as\ \small,\ \footnotesize,\ etc.}{You\ used\ a\ weird\ input\ value\ here.\ If\ you\ did\ so\ deliberately,\ try\ continuing.}
+\msg_new:nnnn {\ClassName} {no_acceptor}
+ { Missing\ acceptor!\ You\ must\ issue\ the\ \Acceptor{name}{department}{title}\ command. }{
+ You\ MUST\ issue\ the\ \Acceptor{name}{department}{title}\ command\ after\ \string\begin{document}\ and\ before\ \string\maketitle.}
+\msg_new:nnnn {\ClassName} {no_thesis_date}
+ { Missing\ thesis\ date!\ You\ must\ issue\ the\ \ThesisDate{Date\ thesis\ is\ submitted}\ command.}{
+ You\ MUST\ issue\ the\ \ThesisDate{Date thesis is submitted}\ command\ after\ \string\begin{document}\ and\ before\ \string\maketitle.}
-%%%%%%%%%%%%%%%%%%% Copyright related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% If for some reason you don't want a warning when you omit \Acceptor
+\NewDocumentCommand\SuppressAcceptorError{}
+ {
+ \msg_redirect_name:nnn { \ClassName } { no_acceptor } { none }
+ }
-\ExplSyntaxOn
-\newif\ifmit@cclicense\mit@cclicensefalse
-\NewDocumentCommand\CClicense{m m}{%
- \def\CClicensetext{\hrefurl{#2}{\ignorespaces#1}}% #1 - text, #2 - url
- \def\CCname{#1}%
- \def\CCurl{#2}% only for backward compatibility
- \mit@cclicensetrue
- \cs_if_exist:NT \pdfmeta_xmp_add:n {%
- \pdfmeta_xmp_add:n {<xmpRights:WebStatement>#2</xmpRights:WebStatement>}
- }
+%%%%%%%%%% End Signature Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% Copyright Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Directly add the xmp property that shows work is copyrighted. See l3pdfmeta.pdf.
+% This is not automatic with \DocumentMetadata. "True" must be capitalized.
+%
+\cs_if_exist:NTF \pdfmeta_xmp_add:n {\pdfmeta_xmp_add:n{<xmpRights:Marked>True</xmpRights:Marked>}}{}
+
+\tl_new:N \g_copyright_ccname_tl
+\tl_new:N \g_copyright_cclicensetext_tl
+\tl_new:N \g_copyright_copyrightlicencse_tl
+\tl_new:N \g_copyright_pdfrightstext_tl
+\tl_new:N \g__copyright_crwords_tl_
+\tl_new:N \g__copyright_mitpermissionlast_tl
+
+\tl_new:N \g_copyright_mitpermission_tl
+\tl_gset:Nn \g__copyright_mitpermissionlast_tl {to\ MIT\ a\ nonexclusive,\ worldwide,\ irrevocable,\ royalty-free\ license\ to\ exercise\ any\ and\ all\ rights\ under\ copyright,\ including\ to\ reproduce,\ preserve,\ distribute\ and\ publicly\ display\ copies\ of\ the\ thesis,\ or\ release\ the\ thesis\ under\ an\ open-access\ license.}
+
+\bool_new:N \g__cclicense_tf_bool
+\bool_gset_false:N \g__cclicense_tf_bool
+
+\NewDocumentCommand\CClicense{mm}{
+ \__copyright_licensedata:nn {#1}{#2}
+% \def\CCurl{ \tl_trim_spaces:n {#2} }% for backward compatibility with v1.05, if necessary
}
-\ExplSyntaxOff
+\cs_new_protected:Nn \__copyright_licensedata:nn
+ {
+ \tl_gset:Nf \g_copyright_cclicensetext_tl {\hrefurl{ \tl_trim_spaces:n {#2} }{ \tl_trim_spaces:n {#1} } }% #1 - text, #2 - url
+ \tl_gset:Nx \g_copyright_ccname_tl { \tl_trim_spaces:n {#1} }
+ \bool_gset_true:N \g__cclicense_tf_bool
+ \cs_if_exist:NT \pdfmeta_xmp_add:n {
+ \pdfmeta_xmp_add:n {<xmpRights:WebStatement>#2</xmpRights:WebStatement>}
+ }
+ \msg_note:nnx {\ClassName} {cclicense} { \text_expand:n {\g_copyright_ccname_tl} }
+ }
+\msg_new:nnn {\ClassName} {cclicense} { Using\ Creative\ Commons\ License\ #1.}
-%%%%%%%%%%%%%%%%%%% Create titlepage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% End Copyright Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\MIT{MASSACHUSETTS INSTITUTE OF TECHNOLOGY}
-\RenewDocumentCommand\maketitle{s}{%
+%%%%%%%%%% Title page Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RenewDocumentCommand{\title}{m}
+ {
+ \__mitthesis_title:n { #1 }
+ \hypersetup{
+ pdftitle={\g_mitthesis_title_tl},
+ }
+ }
%
- \ifdefined\@DegreeMonth\else\ClassError{\ClassName}{Missing degree date!}{%
- You must issue the \DegreeDate{month}{year} command between \begin{document} and \maketitle}%
- \fi
+\tl_new:N \g_mitthesis_title_tl
%
- \ifmit@cclicense
- \def\CopyrightLicense{This work is licensed under a \mbox{\CClicensetext} license.\par\MITpermission}% add mbox 2023/06/23
- \typeout{^^JUsing Creative Commons License \CCname^^J}
- \def\PDFRightsText{This work is licensed under a \CCname\ license. \MITpermission}% for use in metadata
- \else
- \def\CopyrightLicense{All rights reserved.\par\MITpermission}
- \def\PDFRightsText{All rights reserved. \MITpermission}% for use in metadata
- \fi
- \ifnum\value{authorcnt}>1
- \def\CRWords{The authors hereby grant}\else\def\CRWords{The author hereby grants}
- \fi
- \def\MITpermissionLast{to MIT a nonexclusive, worldwide, irrevocable, royalty-free license to exercise any and all rights under copyright, including to reproduce, preserve, distribute and publicly display copies of the thesis, or release the thesis under an open-access license.}%
- \IfBooleanTF{#1}{\def\MITpermission{\relax}}{\def\MITpermission{\CRWords\space\MITpermissionLast}}%
+\cs_new_protected:Nn \__mitthesis_title:n
+ {
+ \tl_gset:Nn \g_mitthesis_title_tl { \tl_trim_spaces:n {#1} }
+ }
+
+\tl_new:N \g_titlepage_institution_name_tl
+\tl_gset:Nn \g_titlepage_institution_name_tl {Massachusetts\ Institute\ of\ Technology}
+\cs_new:Npn \Institution #1 { \tl_gset:Nn \g_titlepage_institution_name_tl {\tl_trim_spaces:n #1} }
+
+
+\RenewDocumentCommand\maketitle{s}{%
+ \cs_if_exist:NTF \DegreeMonth { \scan_stop: } { \msg_error:nn {\ClassName} {no_degree_date} }% msg defined in degree-date section
+%
+ \bool_if:NTF \g__cclicense_tf_bool {
+ \tl_gset:Nn \g_copyright_copyrightlicencse_tl
+ {This\ work\ is\ licensed\ under\ a\ \mbox{\g_copyright_cclicensetext_tl}\ license.\par\g_copyright_mitpermission_tl}
+ \tl_gset:Nn \g_copyright_pdfrightstext_tl
+ {This\ work\ is\ licensed\ under\ a\ \g_copyright_ccname_tl\ license.\ \g_copyright_mitpermission_tl}
+ }{
+ \tl_gset:Nn \g_copyright_copyrightlicencse_tl
+ {All\ rights\ reserved. \par\g_copyright_mitpermission_tl}
+ \tl_gset:Nn \g_copyright_pdfrightstext_tl
+ {All\ rights\ reserved.\ \g_copyright_mitpermission_tl}
+ }
+ \int_compare:nNnTF {\g_author_authorcnt_int} > {1}
+ {
+ \tl_gset:Nn \g__copyright_crwords_tl_ {The\ authors\ hereby\ grant}
+ }
+ {
+ \tl_gset:Nn \g__copyright_crwords_tl_ {The\ author\ hereby\ grants}
+ }
+ \IfBooleanTF{#1}{%
+ \tl_gset:Nn \g_copyright_mitpermission_tl {\scan_stop:}
+ }{
+ \tl_gset:Nn \g_copyright_mitpermission_tl {\g__copyright_crwords_tl_\ \g__copyright_mitpermissionlast_tl}
+ }
%
\clearpage
\thispagestyle{empty}%
\phantomsection\addcontentsline{toc}{chapter}{\protect\textbf{Title page}}%
- {\centering\vbox to \vsize{% vbox to prevent signature block from breaking across page. Remove if necessary.
- \setlength{\parskip}{0.5\baselineskip plus 2pt minus 2pt}\setlength{\parindent}{0pt}%
- {\Large\textbf{\@title}\par}%
- \@AuthorBlock
- \par
- \@DegreeBlock
- at the\par
- \MIT\par
- \@DegreeMonth\space\@DegreeYear
- \MonthCheck{\@@DegreeMonth}{%
- \ClassError{\ClassName}{Acceptable months for the degree date are February, May, June, and September}{Change %
- the month of your degree date to one of February, May, June, or September.}%
- }%
- \par
- \copyright\space\@DegreeYear\space\@CopyrightAuthor. \CopyrightLicense
- \par
- \vskip\baselineskip
- %
- \@SetSignatureBlock
- \vfill
- }}%
- \newpage
+ {\centering \vbox_to_ht:nn { \vsize }% to prevent signature block from breaking across page
+ {
+ \setlength{\parskip}{0.5\baselineskip plus 2pt minus 2pt}\setlength{\parindent}{0pt}%
+ {\Large\textbf{\g_mitthesis_title_tl}\par}
+ \__author_block:
+ \par
+ \__degree_block:
+ at\ the\par
+ \text_uppercase:n { \g_titlepage_institution_name_tl }\par
+ \DegreeMonth\ \DegreeYear
+ \par
+ \copyright\space\DegreeYear\space\CopyrightAuthor\@.\c_space_token \g_copyright_copyrightlicencse_tl % In case name ends with III, IV, V,...
+ \par
+ \skip_vertical:n {\baselineskip}
+ %
+ \__signature_block:
+ \vfill % to avoid overstretched glue
+ }
+ }%
+ \hypersetup{
+ pdfcopyright={Copyright\ ©\ \DegreeYear\ by\ \CopyrightAuthor.\ \g_copyright_pdfrightstext_tl},
+ pdfauthor={\g__author_pdfca_tl},
+ pdfcaptionwriter = {\g__author_pdfca_tl},
+ }
+ \cleardoublepage
}
-%%%%%%%%%%%%%%%%%%% Create abstract page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% End title page module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% Abstract page Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\RenewDocumentEnvironment{abstract}{+b}{%
+% to change abstract name, follow either of these approaches in your preamble:
+% \RenewExpandableDocumentCommand\abstractname{}{Summary}
+% \renewcommand\abstractname{Summary}
+
+\RenewDocumentEnvironment{abstract}{+b}{
\newpage
- \phantomsection\addcontentsline{toc}{chapter}{\protect\textbf{Abstract}}%
+ \phantomsection\addcontentsline{toc}{chapter}{\protect\textbf{\abstractname}}
\begin{center}
- {\large{\textbf{\@title}}\par}
+ {\large{\textbf{\g_mitthesis_title_tl}}\par}
\setlength{\parskip}{0.5\baselineskip plus 2pt minus 2pt}
- \@AbstractAuthorBlock
+ \__author_abstractblock:
\par
- \@AbstractDegreeBlock
+ \__degree_abstractblock:
\end{center}
- \vskip\baselineskip
- \textbf{ABSTRACT}\par\vskip0.5em
- \ignorespaces#1\ignorespaces
- \ifblank{#1}{\typeout{Missing abstract!} MISSING ABSTRACT!}{\relax}
-}{%
- \@SetAbstractSupervisorBlock
- \newpage
- \ignorespacesafterend
+ \skip_vertical:n {\baselineskip}
+ \textbf{ \text_uppercase:n {\abstractname} }\par
+ \skip_vertical:n { 0.5em }
+ \tl_trim_spaces:n {#1}
+ \tl_if_blank:nT {#1} { MISSING\ ABSTRACT! \msg_error:nn { \ClassName } { missing_abstract } }
+}{
+ \__supervisor_abstractblock:
+ \cleardoublepage
}
+\msg_new:nnnn {\ClassName} { missing_abstract } {Missing\ Abstract!! } { No\ file\ was\ input\ for\ the\ abstract.\ You\ need\ to\ do\ \string\input{abstract.tex}.}
-%%%%%%% A nomenclature environment, if needed %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% End abstract page Module %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%\debug_off:n {all}
+\ExplSyntaxOff
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%% End title and abstract page codes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%% A nomenclature environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\nomname}{Nomenclature}
\newlength\nomenwidth
\newlength\savitemsep
-\makeatletter
+% nomenclature entries
\NewDocumentCommand\entry{m m}{%
- \ifblank{#2}{%
- \ClassWarning{\ClassName}{The command \protect\entry requires two arguments. To obtain a subheading, use \protect\EntryHeading}
- \itemsep3\p@ plus 1\p@ minus 1\p@%
- \goodbreak\item[\itshape#1\hfill]\setlength\itemsep\savitemsep\@itempenalty=1000%
- }{%
- \item[#1\hfill]#2%
- \@itempenalty=-\@lowpenalty%
- }%
+ \item[#1\hfill]#2%
+ \@itempenalty=-\@lowpenalty
}
-% A separate command command for nomenclature subheadings
+% nomenclature subheadings
\NewDocumentCommand\EntryHeading{m}{%
- \itemsep3\p@ plus 1\p@ minus 1\p@%
- \goodbreak\item[\itshape#1\hfill]\setlength\itemsep\savitemsep\@itempenalty=1000%
+ \itemsep3\p@ plus 1\p@ minus 1\p@
+ \goodbreak\item[\itshape#1\hfill]\setlength\itemsep\savitemsep\@itempenalty=1000
}
-\makeatother
%
% Increase first optional argument to a dimension > 2em if wide entries cause undesired misalignment of columns.
% Second optional argument can be used to rename the environment, e.g., to List of Symbols.
+% Third optional argument selects section-level or chapter-level style for the nomenclature list.
\NewDocumentEnvironment{nomenclature}{O{2em} O{\nomname} O{section}}{%
\setlength\columnsep{2em}
\setlength{\nomenwidth}{#1}
@@ -738,7 +960,7 @@
}%
}{\end{list}\ignorespacesafterend}
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput