diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls b/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls index 9990a07a884..0a3a44310c5 100644 --- a/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls +++ b/Master/texmf-dist/tex/latex/mitthesis/mitthesis.cls @@ -7,8 +7,8 @@ %% MIT Libraries' requirements as of 2024. %% %% This file's version and date: - \def\versionno{1.13} - \def\versiondate{2024/07/03\space} + \def\versionno{1.14} + \def\versiondate{2024/07/19\space} %% %% Author: John H. Lienhard, V %% Department of Mechanical Engineering @@ -361,18 +361,16 @@ \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 } } % command not def'd until 2022/10/16 +% { \str_casefold:e { \tl_to_str:N \g__dd_month_tl } } % not def'd until 2022/10/16 { \str_lowercase:f { \tl_to_str:N \g__dd_month_tl } } { {february}{} {may}{} {june}{} {september}{}} { \msg_error:nnn { \ClassName } { wrong_month } {#1} } } \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.} -\cs_generate_variant:Nn \text_titlecase_first:n {V} -\cs_generate_variant:Nn \text_titlecase_all:n {V} \NewDocumentCommand\DegreeDate{mm}{% {month}{year} \__dd_setdates:nn {#1}{#2} - \cs_new:Npn \DegreeMonth { \text_titlecase_first:V { \str_lowercase:f \g__dd_month_tl } } + \cs_new:Npn \DegreeMonth { \text_titlecase_first:n { \text_lowercase:n \g__dd_month_tl } } \cs_new:Npn \DegreeYear { \text_expand:n { \g__dd_year_tl } }% edited 2024/06/24 } \msg_new:nnnn { \ClassName } { no_degree_date } {Missing\ degree\ date!}{ @@ -568,12 +566,16 @@ % If for some reason you need to change "Thesis Supervisor" to a different string (say, "Doctoral Advisor") % This construction removes leading and trailing spaces and lowercases the string. -% Commands in output modules handle titlecasing. \NewDocumentCommand\SupervisorDesignation{ m } { - \tl_gset:Nn \g_titlepage_supervisor_designation_tl { \str_lowercase:f { \tl_trim_spaces:n {#1} } } - \tl_gset:Nn \g_abstract_supervisor_designation_tl { \str_lowercase:f { \tl_trim_spaces:n {#1} } } + \tl_gset:Nn \g_titlepage_supervisor_designation_tl + { \cs_if_exist:NTF \text_titlecase_all:n % not def'd until 2023/07/08 + { \text_titlecase_all:n { \text_lowercase:n { \tl_trim_spaces:n {#1} } } } + { \tl_trim_spaces:n {#1} } + } + \tl_gset:Nn \g_abstract_supervisor_designation_tl + { \text_titlecase_first:n { \text_lowercase:n { \tl_trim_spaces:n {#1} } } } } - + \cs_new:Nn \__supervisor_abstractblock: { \int_zero_new:N \l__supervisor_supervisorno_int \int_incr:N \l__supervisor_supervisorno_int @@ -583,12 +585,12 @@ \msg_error:nn { \ClassName } { no_supervisor } } {\int_until_do:nNnn { \l__supervisor_supervisorno_int } = { \g_supervisor_supervisorcnt_int } { - \text_titlecase_first:V { \g_abstract_supervisor_designation_tl } :\space + \g_abstract_supervisor_designation_tl :\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 } - \text_titlecase_first:V { \g_abstract_supervisor_designation_tl } :\space + \g_abstract_supervisor_designation_tl :\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 } @@ -629,8 +631,8 @@ { 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.} + { Missing\ acceptor\ title\ (blank\ in\ \Acceptor{name}{department}{title}\ command).\space Perhaps\ you\ are\ trying\ to\ save\ vertical\ space?\space + You\ can\ put\ the\ acceptor\ title\ into\ department\ field\ instead.\space For\ consistency,\ I\ will\ omit\ titles\ of\ ALL\ acceptors.} \cs_new_protected:Nn \__acceptor_data_add:nnn { @@ -802,8 +804,7 @@ \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 },\ - \text_titlecase_all:V { \g_titlepage_supervisor_designation_tl }\\[1em] - %\ Thesis\ Supervisor\\[1em] + \g_titlepage_supervisor_designation_tl \\[1em] } \int_compare:nNnF { \g_acceptor_acceptorcnt_int } = {0} { \int_do_while:nNnn { \g__signature_accno_int } < { \g_acceptor_acceptorcnt_int } { @@ -937,12 +938,12 @@ \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} + {This\ work\ is\ licensed\ under\ a\ \g_copyright_ccname_tl\ license.\space \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} + {All\ rights\ reserved.\space \g_copyright_mitpermission_tl} } \int_compare:nNnTF {\g_author_authorcnt_int} > {1} { @@ -981,7 +982,7 @@ } } \hypersetup{ - pdfcopyright={Copyright\ \DegreeYear\ by\ \CopyrightAuthor.\ \g_copyright_pdfrightstext_tl}, + pdfcopyright={Copyright\ \DegreeYear\ by\ \CopyrightAuthor.\space \g_copyright_pdfrightstext_tl}, pdfauthor={\g__author_pdfca_tl}, pdfcaptionwriter = {\g__author_pdfca_tl}, } |