diff options
author | Norbert Preining <norbert@preining.info> | 2024-07-20 03:01:53 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-07-20 03:01:53 +0000 |
commit | 96f9be3c7fb1e25375e2c57334a96fd897bfcf0e (patch) | |
tree | 5371d9996fd8e23e4f3d309dd3edfbce94a3e194 /macros/latex/contrib | |
parent | fb8f2ca1019d0b788efee13c1ceb5534befa6aad (diff) |
CTAN sync 202407200301
Diffstat (limited to 'macros/latex/contrib')
71 files changed, 280 insertions, 189 deletions
diff --git a/macros/latex/contrib/changebar/CATALOG b/macros/latex/contrib/changebar/CATALOG index 50cd35da78..5483fa9c13 100644 --- a/macros/latex/contrib/changebar/CATALOG +++ b/macros/latex/contrib/changebar/CATALOG @@ -1,7 +1,7 @@ Name: ChangeBar Problems-To: johannes.braams(at)texniek.nl Author: J.L. Braams -Version: 3.7d +Version: 3.7e Description: diff --git a/macros/latex/contrib/changebar/README b/macros/latex/contrib/changebar/README index 2a9c69bad7..bcd9ab0bbb 100644 --- a/macros/latex/contrib/changebar/README +++ b/macros/latex/contrib/changebar/README @@ -1,6 +1,6 @@ changebar bundle - January 9, 2024 + July 19, 2024 This bundle contains a package that I maintain to add changebars to a LaTeX document. diff --git a/macros/latex/contrib/changebar/changebar.bug b/macros/latex/contrib/changebar/changebar.bug index d661332150..aa476a2224 100644 --- a/macros/latex/contrib/changebar/changebar.bug +++ b/macros/latex/contrib/changebar/changebar.bug @@ -219,6 +219,10 @@ % v3.7d JLB: Arash Esbati reported a simlar phenomenon when \nochangebars % is used. Similar solution was needed. % +% v3.7e JLB: Daniel Flipo and Bruno Winckler reported that changebar no longer +% works when \usepackage[french]{babel} is used. This was caused by the +% solution implemented in v3.7b. This time use "/" is chosen as separator. +% % Known problems % - changebars for marginal paragraphs collide with changebars % for the main body of text diff --git a/macros/latex/contrib/changebar/changebar.dtx b/macros/latex/contrib/changebar/changebar.dtx index 406ccf5290..58df74102c 100644 --- a/macros/latex/contrib/changebar/changebar.dtx +++ b/macros/latex/contrib/changebar/changebar.dtx @@ -24,7 +24,7 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{2954} +% \CheckSum{2948} % %\iffalse % This file is built for \LaTeXe, so we make sure an error is @@ -39,7 +39,7 @@ \ProvidesFile{changebar.dtx} %</dtx> %<+package>\ProvidesPackage{changebar} - [2024/01/09 v3.7d Indicate changes with marginal bars] + [2024/07/17 v3.7e Indicate changes with marginal bars] % \end{macrocode} % % \section{A driver for this document} @@ -137,7 +137,10 @@ % \changes{v3.6e}{2023/08/13}{Added supprt for luaTeX} % \changes{v3.7b}{2023/12/28}{Added a few lines that were inadvertantly removed} % \changes{v3.7b}{2023/12/30}{the cb2-file use delimiting chars may -% change meaning when they end up in the wrong situation} +% change meaning when they end up in the wrong situation} +% \changes{v3.7e}{2024/07/17}{The us of the character `;´ as a string +% separator clashes with it's active variant when babel/french has +% been loaded} % % \title{The Changebar package % \thanks{This file has version number \fileversion, @@ -229,9 +232,7 @@ % \changes{v3.6a}{2011/04/30}{XeTeX added} % \item Xe\TeX % \changes{3.6e}{2023/08/13}{luaTeX added} -% \begin{changebar} % \item lua\TeX -% \end{changebar} % \end{itemize} % The drivers are represented in the normal typewriter method of % typing these names, or by the same entirely in lower case. @@ -752,7 +753,7 @@ % \item V\TeX % \item PDF\TeX % \item Xe\TeX -% \cbstart\item luaTeX\cbend +% \item luaTeX % \end{itemize} % % The intent is that the driver names should be case-insensitive, @@ -799,10 +800,17 @@ % \end{macrocode} % Redefine the |\cb@pdfxy| macro to write point coordinates to the % \file{.cb2} file. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of "," as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} % \begin{macrocode} \gdef\cb@pdfxy##1##2##3##4##5{% - \immediate\write\cb@writexy{##1.##2p##3;##4;##5}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \immediate\write\cb@writexy{##1.##2p##3/##4/##5}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}} \else\cb@pdftexerror\fi\fi\fi} % \end{macrocode} @@ -837,10 +845,17 @@ % \end{macrocode} % Redefine the |\cb@pdfxy| macro to write point coordinates to the % \file{.cb2} file. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of "," as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} % \begin{macrocode} \gdef\cb@pdfxy##1##2##3##4##5{% - \immediate\write\cb@writexy{##1.##2p##3;##4;##5}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \immediate\write\cb@writexy{##1.##2p##3/##4/##5}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}} \gdef\sec@nd@ftw@##1 ##2{##2} \fi} @@ -854,7 +869,6 @@ {You are not using XeLaTeX}} % \end{macrocode} % -% \begin{changebar} % \begin{macrocode} \DeclareOption{luaTeX}{\cb@luatexcheck} \DeclareOption{luatex}{\cb@luatexcheck} @@ -877,10 +891,17 @@ % \end{macrocode} % Redefine the |\cb@pdfxy| macro to write point coordinates to the % \file{.cb2} file. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of ",¨ as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} % \begin{macrocode} \gdef\cb@pdfxy##1##2##3##4##5{% - \immediate\write\cb@writexy{##1.##2p##3;##4;##5}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \immediate\write\cb@writexy{##1.##2p##3/##4/##5}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \expandafter\gdef\csname cb@##1.##2\endcsname{##3,##4,##5}} \fi} % \end{macrocode} @@ -892,7 +913,6 @@ {luaTeX option cannot be used}% {You are not using luaLaTeX}} % \end{macrocode} -% \end{changebar} % % The new features of \LaTeXe\ make it possible to implement the % \Lopt{outerbars} option. @@ -1120,6 +1140,8 @@ % compatibility mode} % \changes{v3.3e}{1998/02/24}{Added \cs{Textures}} % \changes{v3.5a}{2005/05/23}{Added 'PDFtex' option} +% \changes{v3.6a}{2011/04/30}{Added 'XeTeX' option} +% \changes{v3.6e}{2023/08/13}{Added 'luaTeX' option} % \begin{macrocode} \if@compatibility \def\driver#1{% @@ -1132,17 +1154,9 @@ \def\Textures{TEXTURES}% \def\VTeX{VTEX}% \def\pdfTeX{PDFTEX}% -% \end{macrocode} -% \changes{v3.6a}{2011/04/30}{Added 'XeTeX' option} -% \begin{macrocode} \def\xeTeX{XETEX} -% \end{macrocode} -% \changes{v3.6e}{2023/08/13}{Added 'luaTeX' option} -% \begin{changebar} -% \begin{macrocode} \def\luaTeX{LUATEX} % \end{macrocode} -% \end{changebar} % % The choice has to be communicated to the macro % \verb=\cb@setup@specials= that will be called from within @@ -1150,6 +1164,7 @@ % \verb=\cb@driver@setup= is used. It receives a numeric value % using \verb=\chardef=. % \changes{v3.6a}{2011/04/30}{Added 'XeTeX' option} +% \changes{v3.6e}{2023/08/13}{Added 'luaTeX' option} % \begin{macrocode} \global\chardef\cb@driver@setup=0\relax \ifx\tempa\LN \global\chardef\cb@driver@setup=0\fi @@ -1160,14 +1175,7 @@ \ifx\tempa\VTeX \global\chardef\cb@driver@setup=5\fi \ifx\tempa\pdfTeX \cb@pdftexcheck\fi \ifx\tempa\xeTeX \cb@xetexcheck\fi -% \end{macrocode} -% \changes{v3.6e}{2023/08/13}{Added 'luaTeX' option} -% \begin{changebar} -% \begin{macrocode} \ifx\tempa\luaTeX \cb@luatexcheck\fi -% \end{macrocode} -% \end{changebar} -% \begin{macrocode} \egroup} % \end{macrocode} % We add \verb+\driver+ to \verb+\@preamblecmds+, which is a @@ -1464,11 +1472,22 @@ % When the point is found it is removed from |\cb@pdfpoints|. \#9 % contains the cumulative head of the list to construct the new list % with the entry removed. \#3--\#8 are for pattern matching. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of "," as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdffind##1##2##3.##4p##5/##6/##7pt##8\relax##9{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{% \def\cb@next{% - \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5/##6/##7pt}}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \ifnum ##1=##3 \ifnum ##2=##4 \def\cb@pdfx{##5sp}% @@ -1519,8 +1538,13 @@ % \begin{macro}{\cb@pdfparsexy} % The |\cb@pdfparsexy| macro extracts the pagecount from an entry read in % from the \file{.cb2} file. +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdfparsexy##1.##2p##3/##4/##5pt{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdfparsexy##1.##2p##3;##4;##5pt{% \def\cb@pdfpg{##2}}% % \end{macrocode} % \end{macro} @@ -1565,7 +1589,7 @@ % In order to get things in the right spot we need a little scaling % factor. We define it here. % \begin{macrocode} -\def\cb@pdf@scale{0.996264009963} + \def\cb@pdf@scale{0.996264009963} % \end{macrocode} % \end{macro} % @@ -1636,14 +1660,12 @@ % \begin{macrocode} \gdef\cb@checkPdfxy##1##2##3##4##5{% \cb@@findpdfpoint{##1}{##2}% -% \end{macrocdode} -% \begin{changebar} -% \begin{macrocode +% \end{macrocode} +% \begin{macrocode} \ifdim##3sp=\cb@pdfx\relax \ifdim##4sp=\cb@pdfy\relax -% \end{macrocdode} -% \end{changebar} -% \begin{macrocode +% \end{macrocode} +% \begin{macrocode} \ifdim##5=\cb@pdfz\relax \else \cb@error @@ -1741,11 +1763,22 @@ % When the point is found it is removed from |\cb@pdfpoints|. \#9 % contains the cumulative head of the list to construct the new list % with the entry removed. \#3--\#8 are for pattern matching. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of "," as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdffind##1##2##3.##4p##5/##6/##7pt##8\relax##9{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{% \def\cb@next{% - \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5/##6/##7pt}}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \ifnum ##1=##3 \ifnum ##2=##4 \def\cb@pdfx{##5sp}% @@ -1796,8 +1829,13 @@ % \begin{macro}{\cb@pdfparsexy} % The |\cb@pdfparsexy| macro extracts the pagecount from an entry read in % from the \file{.cb2} file. +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdfparsexy##1.##2p##3/##4/##5pt{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdfparsexy##1.##2p##3;##4;##5pt{% \def\cb@pdfpg{##2}}% % \end{macrocode} % \end{macro} @@ -1842,7 +1880,7 @@ % In order to get things in the right spot we need a little scaling % factor. We define it here. % \begin{macrocode} -\def\cb@pdf@scale{0.996264009963} + \def\cb@pdf@scale{0.996264009963} % \end{macrocode} % \end{macro} % @@ -1934,7 +1972,6 @@ \let\cb@resetpoints\relax % \end{macrocode} % -% \begin{changebar} % \changes{v3.6e}{2023/08/13}{lua\TeX{} support added} % The code for lua\TeX{}, like for pdf\TeX\ and Xe\TeX, % is more elaborate as the calculations have to @@ -2012,11 +2049,22 @@ % When the point is found it is removed from |\cb@pdfpoints|. \#9 % contains the cumulative head of the list to construct the new list % with the entry removed. \#3--\#8 are for pattern matching. -% \changes{v3.7b}{2023/12/30}{use ¨;¨ instead of ¨,¨ as delimiter} +% \changes{v3.7b}{2023/12/30}{use ";" instead of "," as delimiter} +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdffind##1##2##3.##4p##5/##6/##7pt##8\relax##9{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdffind##1##2##3.##4p##5;##6;##7pt##8\relax##9{% \def\cb@next{% - \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5;##6;##7pt}}% +% \end{macrocode} +% \begin{changebar} +% \begin{macrocode} + \cb@pdffind{##1}{##2}##8\relax{##9##3.##4p##5/##6/##7pt}}% +% \end{macrocode} +% \end{changebar} +% \begin{macrocode} \ifnum ##1=##3 \ifnum ##2=##4 \def\cb@pdfx{##5sp}% @@ -2067,8 +2115,13 @@ % \begin{macro}{\cb@pdfparsexy} % The |\cb@pdfparsexy| macro extracts the pagecount from an entry read in % from the \file{.cb2} file. +% \changes{v3.7e}{2024/07/17}{Use "/" instead of ";" as delimiter} +% \begin{changebar} +% \begin{macrocode} + \def\cb@pdfparsexy##1.##2p##3/##4/##5pt{% +% \end{macrocode} +% \end{changebar} % \begin{macrocode} - \def\cb@pdfparsexy##1.##2p##3;##4;##5pt{% \def\cb@pdfpg{##2}}% % \end{macrocode} % \end{macro} @@ -2113,7 +2166,7 @@ % In order to get things in the right spot we need a little scaling % factor. We define it here. % \begin{macrocode} -\def\cb@pdf@scale{0.996264009963} + \def\cb@pdf@scale{0.996264009963} % \end{macrocode} % \end{macro} % @@ -2203,7 +2256,6 @@ \def\cb@maxpoint{9999999} \let\cb@resetpoints\relax % \end{macrocode} -%\end{changebar} % % When code for other drivers should be added it can be inserted % here. When someone makes a mistake and somehow selects an @@ -2296,7 +2348,7 @@ \newcommand*{\nochangebars}{% \def\cb@start[##1]{\ignorespaces}% \def\cb@delete[##1]{}% - \def\cb@end{\ignorespacesafterend} + \def\cb@end{\ignorespacesafterend}% } % \end{macrocode} % \end{macro} diff --git a/macros/latex/contrib/changebar/changebar.pdf b/macros/latex/contrib/changebar/changebar.pdf Binary files differindex b313fe1c53..9025ebb624 100644 --- a/macros/latex/contrib/changebar/changebar.pdf +++ b/macros/latex/contrib/changebar/changebar.pdf diff --git a/macros/latex/contrib/iwonamath/Makefile b/macros/latex/contrib/iwonamath/Makefile index 5b8322bf33..fcac414a15 100644 --- a/macros/latex/contrib/iwonamath/Makefile +++ b/macros/latex/contrib/iwonamath/Makefile @@ -48,6 +48,7 @@ all: ${PDF} $(PACKAGE).sty $(FD) pdflatex $< - bibtex $* pdflatex $< + pdflatex $< while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ do pdflatex $<; done @@ -64,7 +65,8 @@ clean: *.ilg *.ind *.out *.lof \ *.lot *.bbl *.blg *.gls \ *.dvi *.ps *.thm *.tgz *.zip *.rpi \ - *.hd sample-blx.bib + *.hd sample-blx.bib \ + omsiwonamathcmsy.fd *.sty distclean: clean @@ -75,7 +77,7 @@ distclean: clean # archive: all clean COPYFILE_DISABLE=1 \ - tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' \ + tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude LICENSE \ --exclude '*.tgz' --exclude '*.zip' --exclude .git $(PACKAGE) mv ../$(PACKAGE).tgz . diff --git a/macros/latex/contrib/iwonamath/README b/macros/latex/contrib/iwonamath/README index 72fe9e3508..8bf59e86c3 100644 --- a/macros/latex/contrib/iwonamath/README +++ b/macros/latex/contrib/iwonamath/README @@ -2,4 +2,9 @@ This package provides an interface to Iwona math fonts by Janusz Marian Nowacki. It allows to use Iwona as math complement for sans serif fonts without native math. The package allows font scaling, the choice of light and condensed versions and the creation of multiple -math versions.
\ No newline at end of file +math versions. + +Author: Boris Veytsman, borisv@lk.net, boris@varphi.com +License: LPPL 1.3c, https://www.latex-project.org/lppl/lppl-1-3c/ + +Version 1.1: Improved delimitershack as suggested by Enrico Gregorio.
\ No newline at end of file diff --git a/macros/latex/contrib/iwonamath/iwonamath.dtx b/macros/latex/contrib/iwonamath/iwonamath.dtx index 020c8d6ad0..38aebd666a 100644 --- a/macros/latex/contrib/iwonamath/iwonamath.dtx +++ b/macros/latex/contrib/iwonamath/iwonamath.dtx @@ -141,7 +141,7 @@ %<oms>{oms_FAMILY_.fd} %<omx>{omx_FAMILY_.fd} %<cmsy>{omsiwonamathcmsy.fd} -%<package|fd>{2023-08-31} {1.0} +%<package|fd>{2024-07-19} {1.1} %<package|fd>{Scaled Iwona math fonts} %<*package> % \end{macrocode} @@ -233,7 +233,8 @@ % % We add delimiters from |cmsy|, as discussed in % \citep[\S~12.5.5]{TLC3}). We predefine the symbols for the standard -% versions just in case. +% versions just in case. The last line is suggested by Enrico +% Gregorio. % \begin{macrocode} \bool_if:NTF \l_@@_delimitershack_bool { @@ -241,6 +242,7 @@ \SetSymbolFont{symbols2} {bold}{OMS}{cmsy}{b}{n} \DeclareMathDelimiter{\lVert}{\mathopen} {symbols2}{"6B}{largesymbols}{"0D} \DeclareMathDelimiter{\rVert}{\mathclose}{symbols2}{"6B}{largesymbols}{"0D} + \DeclareMathDelimiter{\|}{\mathclose}{symbols2}{"6B}{largesymbols}{"0D} } {} % \end{macrocode} diff --git a/macros/latex/contrib/iwonamath/iwonamath.pdf b/macros/latex/contrib/iwonamath/iwonamath.pdf Binary files differindex fc0b5e6e2c..e80a3e33d0 100644 --- a/macros/latex/contrib/iwonamath/iwonamath.pdf +++ b/macros/latex/contrib/iwonamath/iwonamath.pdf diff --git a/macros/latex/contrib/iwonamath/omliwonamath.fd b/macros/latex/contrib/iwonamath/omliwonamath.fd index eca19657e2..869b63021f 100644 --- a/macros/latex/contrib/iwonamath/omliwonamath.fd +++ b/macros/latex/contrib/iwonamath/omliwonamath.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omliwonamath.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omliwonamathc.fd b/macros/latex/contrib/iwonamath/omliwonamathc.fd index 452341075f..567abb4d8c 100644 --- a/macros/latex/contrib/iwonamath/omliwonamathc.fd +++ b/macros/latex/contrib/iwonamath/omliwonamathc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omliwonamathc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omliwonamathl.fd b/macros/latex/contrib/iwonamath/omliwonamathl.fd index a0dba2a829..c52bb24dcf 100644 --- a/macros/latex/contrib/iwonamath/omliwonamathl.fd +++ b/macros/latex/contrib/iwonamath/omliwonamathl.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omliwonamathl.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omliwonamathlc.fd b/macros/latex/contrib/iwonamath/omliwonamathlc.fd index 90d147d1ee..ebfaea2b69 100644 --- a/macros/latex/contrib/iwonamath/omliwonamathlc.fd +++ b/macros/latex/contrib/iwonamath/omliwonamathlc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omliwonamathlc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omsiwonamath.fd b/macros/latex/contrib/iwonamath/omsiwonamath.fd index 958053cd49..7a0c889c7d 100644 --- a/macros/latex/contrib/iwonamath/omsiwonamath.fd +++ b/macros/latex/contrib/iwonamath/omsiwonamath.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omsiwonamath.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omsiwonamathc.fd b/macros/latex/contrib/iwonamath/omsiwonamathc.fd index 02b892ffc5..22c1755011 100644 --- a/macros/latex/contrib/iwonamath/omsiwonamathc.fd +++ b/macros/latex/contrib/iwonamath/omsiwonamathc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omsiwonamathc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omsiwonamathl.fd b/macros/latex/contrib/iwonamath/omsiwonamathl.fd index d291ba7eb0..3e0815ef80 100644 --- a/macros/latex/contrib/iwonamath/omsiwonamathl.fd +++ b/macros/latex/contrib/iwonamath/omsiwonamathl.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omsiwonamathl.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omsiwonamathlc.fd b/macros/latex/contrib/iwonamath/omsiwonamathlc.fd index 55a040e93e..8cdb0f6503 100644 --- a/macros/latex/contrib/iwonamath/omsiwonamathlc.fd +++ b/macros/latex/contrib/iwonamath/omsiwonamathlc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omsiwonamathlc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omxiwonamath.fd b/macros/latex/contrib/iwonamath/omxiwonamath.fd index 662121a6be..8b33fd85b9 100644 --- a/macros/latex/contrib/iwonamath/omxiwonamath.fd +++ b/macros/latex/contrib/iwonamath/omxiwonamath.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omxiwonamath.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omxiwonamathc.fd b/macros/latex/contrib/iwonamath/omxiwonamathc.fd index fce676f1e8..9738a6961d 100644 --- a/macros/latex/contrib/iwonamath/omxiwonamathc.fd +++ b/macros/latex/contrib/iwonamath/omxiwonamathc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omxiwonamathc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omxiwonamathl.fd b/macros/latex/contrib/iwonamath/omxiwonamathl.fd index 895f359e35..759ecad381 100644 --- a/macros/latex/contrib/iwonamath/omxiwonamathl.fd +++ b/macros/latex/contrib/iwonamath/omxiwonamathl.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omxiwonamathl.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/omxiwonamathlc.fd b/macros/latex/contrib/iwonamath/omxiwonamathlc.fd index 85f60415e3..fbe5cdc48c 100644 --- a/macros/latex/contrib/iwonamath/omxiwonamathlc.fd +++ b/macros/latex/contrib/iwonamath/omxiwonamathlc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {omxiwonamathlc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamath.fd b/macros/latex/contrib/iwonamath/ot1iwonamath.fd index 20be53c3af..789656bfa7 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamath.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamath.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamath.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathc.fd b/macros/latex/contrib/iwonamath/ot1iwonamathc.fd index a0b92a2b37..182d34be2f 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathc.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathcm.fd b/macros/latex/contrib/iwonamath/ot1iwonamathcm.fd index a5e69e07ad..4f49f9befb 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathcm.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathcm.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathcm.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathl.fd b/macros/latex/contrib/iwonamath/ot1iwonamathl.fd index 82060b21d1..504e9c87ad 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathl.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathl.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathl.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathlc.fd b/macros/latex/contrib/iwonamath/ot1iwonamathlc.fd index c5b2f0024b..5ad18477c7 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathlc.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathlc.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathlc.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathlcm.fd b/macros/latex/contrib/iwonamath/ot1iwonamathlcm.fd index 130c63822e..c1b3f9bb44 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathlcm.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathlcm.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathlcm.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathlm.fd b/macros/latex/contrib/iwonamath/ot1iwonamathlm.fd index ab72419cd8..f15d880adc 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathlm.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathlm.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathlm.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/ot1iwonamathm.fd b/macros/latex/contrib/iwonamath/ot1iwonamathm.fd index 7a103a029b..9f82d65734 100644 --- a/macros/latex/contrib/iwonamath/ot1iwonamathm.fd +++ b/macros/latex/contrib/iwonamath/ot1iwonamathm.fd @@ -22,7 +22,7 @@ %% in the same archive or directory.) \ProvidesExplFile {ot1iwonamathm.fd} -{2023-08-31} {1.0} +{2024-07-19} {1.1} {Scaled Iwona math fonts} \tl_if_exist:NTF \l__iwonamath_scale_tl {} diff --git a/macros/latex/contrib/iwonamath/sample.pdf b/macros/latex/contrib/iwonamath/sample.pdf Binary files differindex c64d5e078d..342ba53f87 100644 --- a/macros/latex/contrib/iwonamath/sample.pdf +++ b/macros/latex/contrib/iwonamath/sample.pdf diff --git a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf Binary files differindex fffb7fbf43..e7f9b4a01a 100644 --- a/macros/latex/contrib/mitthesis/MIT-Thesis.pdf +++ b/macros/latex/contrib/mitthesis/MIT-Thesis.pdf 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 4311237b48..fc7e8a88f1 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/MIT-Thesis.tex @@ -3,7 +3,7 @@ % This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class. % -% Version: 1.13, 2024/07/03 +% Version: 1.14, 2024/07/19 % % Author: John H. Lienhard, copyright 2024. Reuse under the MIT license: https://ctan.org/license/mit @@ -182,13 +182,13 @@ % If there is more than one supervisor, use the \Supervisor command for each. \Supervisor{Edward C. Pickering}{Professor of Physics} -%\Supervisor{Edward C. Pickering}{Professor of Physics, and \\ \> Professor of Something Else} +% \Supervisor{Edward C. Pickering}{Professor of Physics, and \\ \> Professor of Something Else} % \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 - \Acceptor{Primus Castor}{Professor of Wetlands Engineering}{Undergraduate Officer, Department of Physics} + \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} %% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank, {}. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/chapter1.tex index 481e96a4c4..1f2acd20a6 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.05, 2023/11/03 +% Version: 1.06, 2024/07/09 % 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: \(J/\psi\)]{A section discussing the first issue: \ifpdftex\(\bm{J}/\bm{\psi}\)\else{\(\symbfup{J/\psi}\)}\fi} +\section[A section discussing the first issue: \(J/\psi\)]{A section discussing the first issue: \ifpdftex\(\bm{J}/\bm{\psi}\)\else{\(\symbfit{J/\psi}\)}\fi} We begin with some ideas from the literature \cite{Fong2015,sharpe1}. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-defaultfonts.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-defaultfonts.tex index bc7ba62c91..8795eb547e 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-defaultfonts.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-defaultfonts.tex @@ -1,16 +1,16 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-defaultfonts.tex}[2024/06/28 v1.04 Load Computer/Latin Modern text and math fonts] +\ProvidesFile{mitthesis-defaultfonts.tex}[2023/09/12 v1.03 Load Computer/Latin Modern text and math fonts] %% Default fonts % \ifpdftex - \ClassNoteNoLine{\ClassName}{Loading Computer Modern text and math fonts (default for pdftex)} + \typeout{^^JLoading Computer Modern text and math fonts (default for pdftex).^^J} \RequirePackage[T1]{fontenc} \RequirePackage{bm} \else - \ClassNoteNoLine{\ClassName}{Loading Latin Modern text and math fonts (default for unicode engines)} + \typeout{^^JLoading Latin Modern text and math fonts (default for unicode engines).^^J} % \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-fira-newtxsf.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-fira-newtxsf.tex index ebba9ab190..01fa981d78 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-fira-newtxsf.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-fira-newtxsf.tex @@ -1,19 +1,19 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-fira-newtxsf.tex}[2024/06/28 v1.05 Load Fira Sans text font with newtx sans serif math font and Inconsolata typewriter font] +\ProvidesFile{mitthesis-fira-newtxsf.tex}[2023/09/12 v1.04 Load Fira Sans text font with newtx sans serif math font and Inconsolata typewriter font] %% Fira Sans text font with newtx sans serif math font and Inconsolata typewriter font % \ifpdftex - \ClassNoteNoLine{\ClassName}{Loading Fira sans text font with newtx sans serif math font and Inconsolata typewriter} + \typeout{^^JLoading Fira sans text font with newtx sans serif math font and Inconsolata typewriter^^J} \RequirePackage[sfdefault,scaled=0.90]{FiraSans} % sans serif text package %,scaled=.85 \RequirePackage[T1]{fontenc} \RequirePackage[varqu,varl,scaled=1.05]{zi4} % inconsolata font for typewriter \RequirePackage[scaled=1.05]{newtxsf} % sans serif math \RequirePackage{bm} \else - \ClassWarning{\ClassName}{The fira-newtxsf font set requires pdflatex. Defaulting to LMR fonts} + \ClassWarning{mitnewthesis}{The fira-newtxsf font set requires pdflatex. Defaulting to LMR fonts} \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math. % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-heros-stix2.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-heros-stix2.tex index 1535771f11..26ee2ab07b 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-heros-stix2.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-heros-stix2.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-heros-stix2.tex}[2024/06/28 v1.03 Load TeX Gyre Heros (sans serif) text font with STIX Two Math font and Inconsolata monospaced font] +\ProvidesFile{mitthesis-heros-stix2.tex}[2023/09/12 v1.02 Load TeX Gyre Heros (sans serif) text font with STIX Two Math font and Inconsolata monospaced font] %% TeX Gyre Heros (sans serif) text font with STIX Two Math font and Inconsolata monospaced font % @@ -12,11 +12,11 @@ % Install these as system fonts on your computer % \ifpdftex - \ClassWarning{\ClassName}{The heros-stix2 fontset requires a unicode engine. Defaulting to CMR fonts} + \ClassWarning{mitnewthesis}{The heros-stix2 fontset requires a unicode engine. Defaulting to CMR fonts.} \RequirePackage[T1]{fontenc} \RequirePackage{bm} \else - \ClassNoteNoLine{\ClassName}{TeX Gyre Heros (sans serif) text font with STIX2 math font and Inconsolata monospaced font} + \typeout{^^JTeX Gyre Heros (sans serif) text font with STIX2 math font and Inconsolata monospaced font.^^J} % \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-libertine.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-libertine.tex index 41b2f561df..57cf26f915 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-libertine.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-libertine.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-libertine.tex}[2024/06/28 v1.03 Load Libertine and related fonts] +\ProvidesFile{mitthesis-libertine.tex}[2023/09/12 v1.02 Load Libertine and related fonts] %% Linux Libertine (serif) text font with newtxmath[libertine] (pdftex) or Libertinus (unicode) math font % @@ -10,7 +10,7 @@ % install these as system fonts on your computer % \ifpdftex - \ClassNoteNoLine{\ClassName}{Loading newtx-libertine text and math fonts with Insolata typewriter font} + \typeout{^^JLoading newtx-libertine text and math fonts with Insolata typewriter font^^J} \RequirePackage[lining,semibold]{libertine} \RequirePackage[T1]{fontenc} \RequirePackage[varqu,varl]{inconsolata}% typewriter @@ -18,7 +18,7 @@ \RequirePackage[libertine,vvarbb]{newtxmath} \RequirePackage{bm}% load after all math to give access to bold math \else - \ClassNoteNoLine{\ClassName}{Loading Linux Libertine (serif) text font with Libertinus math font} + \typeout{^^JLoading Linux Libertine (serif) text font with Libertinus math font^^J} % \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-lucida.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-lucida.tex index e18c72fd92..6466c36929 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-lucida.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-lucida.tex @@ -1,11 +1,11 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-lucida.tex}[2024/06/28 v1.03 Load Lucida fonts] +\ProvidesFile{mitthesis-lucida.tex}[2023/09/12 v1.02 Load Lucida fonts] %% Lucida Bright and Lucida Bright Math fonts (available from the TeX Users Group) -\ClassNoteNoLine{\ClassName}{Lucida Bright and Lucida Bright Math fonts} +\typeout{^^JLucida Bright and Lucida Bright Math fonts^^J} \ifpdftex \RequirePackage[LY1]{fontenc} diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx-sans-text.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx-sans-text.tex index b76428f383..03d62286e2 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx-sans-text.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx-sans-text.tex @@ -1,12 +1,11 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-newtx-sans-text.tex}[2024/06/68 v1.04 Load newtx sans-serif text and regular math fonts] +\ProvidesFile{mitthesis-newtx-sans-text.tex}[2023/10/03 v1.03 Load newtx sans-serif text and regular math fonts] %% newtx package with sans-serif text (Helvetica-like text with Times-like math) % \ifpdftex - \ClassNoteNoLine{\ClassName}{Loading newtx sans-serif text and newtx serif math fonts} \RequirePackage[T1]{fontenc} \RequirePackage[subscriptcorrection,varvw,helvratio=0.91,defaultsups]{newtx}% upint for upright integrals \AtEndPreamble{% added to accommodate v1.731 of newtx, 2023/11/03 @@ -18,7 +17,7 @@ % \DeclareFontFamily{\encodingdefault}{\ttdefault}{\hyphenchar\font=`\-} % \RequirePackage{bm}% bold math \else - \ClassWarning{\ClassName}{The newtx font set requires pdflatex. Defaulting to LMR fonts} + \ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts} \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math. % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx.tex index b1541bbd05..cc43427055 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-newtx.tex @@ -1,17 +1,17 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-newtx.tex}[2024/06/28 v1.04 Load newtx text and math fonts] +\ProvidesFile{mitthesis-newtx.tex}[2023/09/12 v1.03 Load newtx text and math fonts] \ifpdftex - \ClassNoteNoLine{\ClassName}{Loading newtx fonts with inconsolata typewriter} + \typeout{^^JLoading newtx fonts with inconsolata typewriter^^J} \RequirePackage[T1]{fontenc} \RequirePackage[subscriptcorrection,varvw,helvratio=0.91]{newtx}% stix2, upint \RequirePackage[varl,varqu,hyphenate,mono]{inconsolata}% sans typewriter font; mono = fixed word spacing, hyphenate = allow hyphenation \RequirePackage{bm} \let\textsuperscript\textsu% newtx changes the default superiors font; this is needed to get commas aligned in sequential footnotes \else - \ClassWarning{\ClassName}{The newtx font set requires pdflatex. Defaulting to LMR fonts} + \ClassWarning{mitnewthesis}{The newtx font set requires pdflatex. Defaulting to LMR fonts} \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math. % Unicode-math loads the fontspec package, but the default fonts are not selected by fontspec in this case. diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-stix2.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-stix2.tex index c178ff233f..de3983fe4e 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-stix2.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-stix2.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-stix2.tex}[2024/06/28 v1.04 Load STIX Two text and math fonts] +\ProvidesFile{mitthesis-stix2.tex}[2023/09/12 v1.03 Load STIX Two text and math fonts] %% STIX Two text and math fonts with Heros sans serif font and Inconsolata monospaced font % @@ -12,11 +12,11 @@ % Install these as system fonts on your computer % \ifpdftex - \ClassWarning{\ClassName}{The stix2 fontset requires a unicode engine. Defaulting to CMR fonts.} + \ClassWarning{mitnewthesis}{The stix2 fontset requires a unicode engine. Defaulting to CMR fonts.} \RequirePackage[T1]{fontenc} \RequirePackage{bm} \else - \ClassNoteNoLine{\ClassName}{Loading STIX Two text and math fonts with Heros sans serif font and Inconsolata monospaced font} + \typeout{^^JLoading STIX Two text and math fonts with Heros sans serif font and Inconsolata monospaced font.^^J} % \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes-stix2.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes-stix2.tex index ed2abc1655..1e65724cc0 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes-stix2.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes-stix2.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-termes-stix2.tex}[2024/10/28 v1.04 Load TeX Gyre Termes text font with STIX2 math font, Heros sans serif font, and Inconsolata monospaced font] +\ProvidesFile{mitthesis-termes-stix2.tex}[2023/09/12 v1.03 Load TeX Gyre Termes text font with STIX2 math font, Heros sans serif font, and Inconsolata monospaced font] %% TeX Gyre Termes text font and Heros sans serif font with STIX2 math font and Inconsolata monospaced font % @@ -12,11 +12,11 @@ % Install these as system fonts on your computer % \ifpdftex - \ClassWarning{\ClassName}{The termes-stix2 fontset requires a unicode engine. Defaulting to CMR fonts.} + \ClassWarning{mitnewthesis}{The termes-stix2 fontset requires a unicode engine. Defaulting to CMR fonts.} \RequirePackage[T1]{fontenc} \RequirePackage{bm} \else - \ClassNoteNoLine{\ClassName}{Loading TeX Gyre Termes text font with STIX2 math font, Heros sans serif font, and Inconsolata monospaced font} + \typeout{^^JLoading TeX Gyre Termes text font with STIX2 math font, Heros sans serif font, and Inconsolata monospaced font.^^J} % \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes.tex index fd1e15bab8..64fffb9264 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/fontsets/mitthesis-termes.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mitthesis-termes.tex}[2024/06/28 v1.04 Load TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font] +\ProvidesFile{mitthesis-termes.tex}[2023/09/12 v1.03 Load TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font] %% TeX Gyre Termes (Times-like) text font with Termes math font and Heros sans serif font and Cursor monospaced font % @@ -9,11 +9,11 @@ % install these as system fonts on your computer % \ifpdftex - \ClassWarning{\ClassName}{The termes fontset requires a unicode engine. Defaulting to CMR fonts.} + \ClassWarning{mitnewthesis}{The termes fontset requires a unicode engine. Defaulting to CMR fonts.} \RequirePackage[T1]{fontenc} \RequirePackage{bm} \else - \ClassNoteNoLine{\ClassName}{Loading TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font} + \typeout{^^JLoading TeX Gyre Termes text and math fonts, Heros sans serif font, and Cursor monospaced font^^J} \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} % suppress tiresome warnings about lack of integration between mathtools and unicode-math % unicode-math loads the fontspec package diff --git a/macros/latex/contrib/mitthesis/MIT-thesis-template/mydesign.tex b/macros/latex/contrib/mitthesis/MIT-thesis-template/mydesign.tex index ef71521074..1d9184e973 100644 --- a/macros/latex/contrib/mitthesis/MIT-thesis-template/mydesign.tex +++ b/macros/latex/contrib/mitthesis/MIT-thesis-template/mydesign.tex @@ -1,7 +1,7 @@ % From mitthesis package % Documentation: https://ctan.org/pkg/mitthesis -\ProvidesFile{mydesign.tex}[20234/06/28 v1.04 Typographic design options for thesis] +\ProvidesFile{mydesign.tex}[2024/06/28 v1.04 Typographic design options for thesis] %%%%%%%%%% Color support %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/macros/latex/contrib/mitthesis/README.md b/macros/latex/contrib/mitthesis/README.md index c703518304..9d2918ca36 100644 --- a/macros/latex/contrib/mitthesis/README.md +++ b/macros/latex/contrib/mitthesis/README.md @@ -1,11 +1,11 @@ #mitthesis --- A LaTeX template for an MIT thesis# - v1.13 dated 2024/07/03 + v1.14 dated 2024/07/19 ####Overview#### 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): + the requirements of the Massachusetts Institute of Technology Libraries (as posted in 2024): [https://libraries.mit.edu/distinctive-collections/thesis-specs/](https://libraries.mit.edu/distinctive-collections/thesis-specs/) @@ -53,6 +53,12 @@ --- ####Change log#### + v1.14 (19 July 2024) + - add backward compatibility code for \\text_titlecase_all:n + - adjust supervisor and acceptor titles used on sample cover pages + - format J/psi as \\symbfit in sample chapter 1 and regenerate font samples + - edit documentation + v1.13 (03 July 2024) - same as v1.12, except now includes the correct documentation diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/No_cc_license.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/No_cc_license.pdf Binary files differindex 304d89113b..159f037a4d 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/No_cc_license.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/No_cc_license.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree.pdf Binary files differindex 737603f89c..8b4d3e0942 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree_two_departments.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree_two_departments.pdf Binary files differindex c10db9e046..e7e2f13e88 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree_two_departments.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_one_degree_two_departments.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees.pdf Binary files differindex 7ab9882820..1adb097a70 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees_from_one_department.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees_from_one_department.pdf Binary files differindex 8950c7ed3c..0617a275f8 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees_from_one_department.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/One_author_two_degrees_from_one_department.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree.pdf Binary files differindex 61a2b63115..7e4300d5b6 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_one_degree.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_two_degrees.pdf b/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_two_degrees.pdf Binary files differindex c9ccbd8a9a..299acda338 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_two_degrees.pdf +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/Two_authors_two_degrees.pdf diff --git a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree_two_departments.tex b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree_two_departments.tex index cf4fce672e..6c1f5c3982 100644 --- a/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/Two_authors_one_degree_two_departments.tex +++ b/macros/latex/contrib/mitthesis/examples/cover_page_samples/latex_sources/One_author_one_degree_two_departments.tex @@ -3,7 +3,7 @@ % !BIB program = biber % Author: John H. Lienhard (c) 2024. Reuse under the MIT license: https://ctan.org/license/mit -% Version 1.01, 2024/06/25 +% Version 1.02, 2024/07/08 % Documentation: https://ctan.org/pkg/mitthesis @@ -75,7 +75,7 @@ % 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][MBA, Ferengi School of Management, 2022] +\Author{Silas W. Holman}{Department of Nuclear Science and Engineering}%[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] % For one degree issued by two departments, leave the degree argument blank for the second degree {}. @@ -83,23 +83,17 @@ \Degree{}{Center for Computational Science and Engineering} % If there is more than one supervisor, use the \Supervisor command for each. -\Supervisor{Edward C. Pickering}{Professor of Physics} -\Supervisor{Secunda Castor}{Professor of Research} +\Supervisor{Edward C. Pickering}{Professor of Nuclear Science and 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 and Graduate Officer, Department of Physics}{} -\Acceptor{Tertius Castor}{Professor and Graduate Officer, Department of Mechanical Engineering}{} +\Acceptor{Primus Castor}{Professor and Graduate Officer}{Department of Nuclear Science and Engineering} +\Acceptor{Tertius Castor}{Professor and Graduate Officer}{Center for Computational Science and Engineering} %\Acceptor{Quarta Castor}{Professor of Lodge Building}{Undergraduate Officer, Department of Mechanical Engineering} -% In this example, several steps have been taken to make the content fit on the title page! The \Acceptors have been confined to two -% lines in the above commands, the signature block font size is reduced, the skips are tightened, the author names use normal font size, -% and Luisa's previous degrees are not shown. -\SignatureBlockSize{\small} %\SignatureBlockSize{\footnotesize} -\Tighten -\AuthorNameSize{\normalsize} % Usage: \DegreeDate{Month}{year} % Valid degree months are September, February, or June. 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 6334a228ae..f8ebb1b965 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 @@ -85,8 +85,7 @@ % If there is more than one supervisor, use the \Supervisor command for each. \Supervisor{Edward C. Pickering}{Professor of Physics} -\Supervisor{Secunda Castor}{Professor of Research} -%\Supervisor{Quintus Castor}{Professor of Log Dams} +\Supervisor{Secunda Castor}{Professor of Mechanical Engineering} % Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) % If more than one department, use more than once 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 e5e2618b69..a757806b01 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 @@ -2,7 +2,7 @@ % !BIB TS-program = biber % !BIB program = biber -% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit +% Author: John H. Lienhard (c) 2024. Reuse under the MIT license: https://ctan.org/license/mit % Documentation: https://ctan.org/pkg/mitthesis @@ -75,7 +75,7 @@ % 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][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{Luisa Hernández}{Department of Physics}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020][MBA, Ferengi School of Management, 2022] % Use once for each degree fulfilled by thesis % For two degrees from one department, leave the department argument blank for the second degree {}. @@ -85,20 +85,11 @@ % If there is more than one supervisor, use the \Supervisor command for each. \Supervisor{Edward C. Pickering}{Professor of Physics} -%\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}{Graduate Officer, Department of Physics} \Acceptor{Quintus 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} - -% 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{\footnotesize} % Usage: \DegreeDate{Month}{year} % Valid degree months are September, February, or June. 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 fd9fc21485..57a957b6ba 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 @@ -2,8 +2,8 @@ % !BIB TS-program = biber % !BIB program = biber -% Author: John H. Lienhard (c) 2023. Reuse under the MIT license: https://ctan.org/license/mit -% Version 1.01, 2023/10/27 +% Author: John H. Lienhard (c) 2024. Reuse under the MIT license: https://ctan.org/license/mit +% Version 1.02, 2024/07/08 % Documentation: https://ctan.org/pkg/mitthesis @@ -82,19 +82,16 @@ % For two degrees from one department, leave the department argument blank for the second degree {}. \Degree{Master of Science in Physics}{Department of Physics} \Degree{Master of Science in Mechanical Engineering}{Department of Mechanical Engineering} -%\Degree{Master of Science in Physics}{} % If there is more than one supervisor, use the \Supervisor command for each. \Supervisor{Edward C. Pickering}{Professor of Physics} -\Supervisor{Secunda Castor}{Professor of Research} -%\Supervisor{Quintus Castor}{Professor of Log Dams} +\Supervisor{Secunda Castor}{Professor of of Mechanical Engineering} % Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...) % If more than one department, use more than once % If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank {}. \Acceptor{Primus Castor}{Professor and Graduate Officer, Department of Physics}{} \Acceptor{Tertius Castor}{Professor and Graduate Officer, Department of Mechanical Engineering}{} -%\Acceptor{Quarta Castor}{Professor of Lodge Building}{Undergraduate Officer, Department of Mechanical Engineering} % In this example, several steps have been taken to make the content fit on the title page! The \Acceptors have been confined to two % lines in the above commands, the signature block font size is reduced, the skips are tightened, the author names use normal font size, diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf Binary files differindex c32bcc359c..97243bde84 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Defaultfonts.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf Binary files differindex f78b32a6d9..cc3e40ce75 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Fira_Newtxsf.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf Binary files differindex 0262aabdef..c09afd43ee 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Heros-Stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf Binary files differindex 44d54df946..418bf7e8d3 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Libertine.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf Binary files differindex d667a4bed4..43081a36f0 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Lucida.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf Binary files differindex 9f22058aa0..d21ca4d057 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx-sans-text.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf Binary files differindex fabf8cd29a..45952c0c52 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Newtx.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf Binary files differindex 7c38f1d828..0792ee30f9 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf Binary files differindex c7993b99aa..80b8e07d10 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes-stix2.pdf diff --git a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf Binary files differindex 4affab8613..90dfd3ab31 100644 --- a/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf +++ b/macros/latex/contrib/mitthesis/examples/font_samples/Termes.pdf diff --git a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf Binary files differindex 94724d1eec..ab61cf59e5 100644 --- a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf +++ b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.pdf diff --git a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex index 6f8954813b..4e5e739585 100644 --- a/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex +++ b/macros/latex/contrib/mitthesis/mitthesis-doc/mitthesis-doc.tex @@ -1,7 +1,7 @@ % !TEX TS-program = lualatex % !TEX encoding = UTF-8 Unicode -% Version date: 1 July 2024 +% Version date: 19 July 2024 \DocumentMetadata { @@ -24,6 +24,8 @@ \usepackage[x11names,svgnames,dvipsnames,table]{xcolor} \usepackage{luacolor} % load AFTER xcolor +\usepackage{mathtools} + \usepackage[en-US]{datetime2} %% change default date format \makeatletter \newcommand{\daymonthyeardate}{% @@ -191,7 +193,7 @@ \phantomsection\pdfbookmark[1]{\abstractname}{summary} \begin{abstract} -This \LaTeX\ class formats theses according to the requirements of the MIT Libraries. The template is suitable for MIT theses of all types and at all levels. The title and abstract pages are automatically laid out from information provided by the user. The template includes options to use a variety of typefaces, and it is compatible with either pdfTeX or unicode engines such as luaLaTeX. When using LaTeX formats dated November 2022 or later, the resulting pdf file meets the PDF/A-2b archivability standard. A standard \href{https://www.tug.org/texlive/}{\TeX\ Live} installation includes all other packages required by the template. This document provides instructions for installation and use of the template. +This \LaTeX\ class formats theses according to the requirements of the MIT Libraries. The template is suitable for MIT theses of all types and at all levels. The title and abstract pages are automatically laid out from information provided by the user. The template includes options to use a variety of typefaces, and it is compatible with either pdfTeX or unicode engines such as LuaLaTeX. When using LaTeX formats dated November 2022 or later, the resulting pdf file meets the PDF/A-2b archivability standard. A standard \href{https://www.tug.org/texlive/}{\TeX\ Live} installation includes all other packages required by the template. This document provides instructions for installation and use of the template. \end{abstract} \tableofcontents @@ -220,7 +222,7 @@ If the most current version of \texttt{mitthesis.cls} is installed in your syste The new MIT thesis template consists of: \texttt{mitthesis.cls}; a root file \texttt{MIT-Thesis.tex}; a file to load the abstract, \texttt{abstract.tex}; a file for design options, \texttt{mydesign.tex}; and an optional file to change the fonts (see the subdirectory, \texttt{fontset}). You should change the name of the root file to something more descriptive of your own work (e.g., \texttt{JohnsThesis.tex}, \texttt{MagnumOpusScientiae.tex},\ldots). In addition, files must be loaded for acknowledgments, an optional biosketch, chapters, optional appendices, and bibliography. \subsection{\LaTeX\ engine} -The template works with either \pdfTeX\ or unicode engines such as \LuaLaTeX. With the latter, fonts that you install in your operating system can be configured for use in your thesis. \LuaLaTeX\ also enables the direct use of lua code in your \texttt{.tex} file. With lua code, you can automate plotting, table generation, and other numerical computations. +The template works with either \pdfTeX\ or unicode engines such as \LuaLaTeX. With the latter, fonts that you install in your operating system can be configured for use in your thesis. \LuaLaTeX\ also enables the direct use of Lua code in your \texttt{.tex} file. With Lua code, you can automate plotting, table generation, and other numerical computations. \subsection{PDF/A compliance} PDF/A-2b compliance will be automatic if the \verb|\DocumentMetadata{pdfstandard = a-2b}| 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, @@ -242,7 +244,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 the thesis. -If two departments jointly issue a single degree, leave the degree argument blank for the \textit{second} degree: +If two departments jointly issue a single degree, leave the degree name blank for the \textit{second} degree: \verb|\Degree{}{2nd department name}|. If the thesis satisfies two degrees from one department, leave the department argument blank for the \textit{second} degree: \verb|\Degree{2nd degree name}{}|. @@ -312,7 +314,7 @@ twoside & gives facing-page behavior for two-sided printing; omitting it will e \subsection{Font loading} By default, \texttt{mitthesis.cls} will load the traditional \LaTeX\ typeface, Computer Modern (for \pdfTeX) or Latin Modern (for unicode engines). By using the key value \texttt{fontset=$\cdots$} in the \verb|\documentclass| command, you can select a different set of fonts. -Ten font sets 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. To access the predefined font sets, you \textit{must} have the directory \texttt{fontsets} as a subdirectory of your working directory, including its files as named. +Ten font sets 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. To access the predefined font sets, you \textit{must} have the directory \texttt{fontsets} as a subdirectory of your working directory, including its files as named. For unicode engines, you must have the relevant fonts installed as system fonts on your computer. Among the predefined font sets, Termes and NewTX are serifed typefaces similar to the digital typeface Times New Roman. STIX Two is more similar to the original metal-type Times typeface. Linux Libertine is a serif typeface inspired by 19\textsuperscript{th} century book type. Lucida is a serifed typeface designed for high legibility at small size or on low resolution devices. Lucida is excellent for mathematics and includes a complete bold-face math font, but it is not free. Heros and NewTX-sans are sans-serif text typefaces similar to Helvetica. NewTXsf is a sans-serif math font which draws upon glyphs from the STIX fonts. Fira is a humanist sans-serif text typeface designed in association with the Firefox browser. Finally, Computer Modern (and its extension Latin Modern)---the traditional \LaTeX\ typeface---is a Didone typeface, with high contrast between thick and thin elements. % STIX Two, Termes, and LMR do not include a separate bold math font. @@ -351,7 +353,7 @@ 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. +With \texttt{mydesign.tex}, you can set options for packages that manage color, e.g.\ \texttt{\hrefurl{https://ctan.org/pkg/xcolor}{xcolor}}, 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 change the margins with \verb|\newgeometry{..}| from the \texttt{\hrefurl{https://ctan.org/pkg/geometry}{geometry}} package. 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. @@ -367,15 +369,15 @@ have one nomenclature list for whole thesis or one for each chapter (the default For example, the following code \begin{center} -\begin{minipage}{0.8\textwidth} +\begin{minipage}{0.85\textwidth} \begin{verbatim} \begin{nomenclature}[2em][Nomenclature for Chapter 1][section] \EntryHeading{Roman letters} \entry{$\mathcal{C}$}{material curve} -\entry{$\mathbf{u}$}{velocity [m s$^{-1}$]} +\entry{$\mathbf{u}$}{velocity [m s$\cramped{^{-1}}$]} \EntryHeading{Greek letters} -\entry{$\Gamma$}{circulation [m$^2$ s$^{-1}$]} -\entry{$\rho$}{mass density [kg m$^{-3}$]} +\entry{$\Gamma$}{circulation [m$\cramped{^2}$ s$\cramped{^{-1}}$]} +\entry{$\rho$}{mass density [kg m$\cramped{^{-3}}$]} \end{nomenclature} \end{verbatim} \end{minipage} @@ -386,13 +388,14 @@ produces the nomenclature list below \begin{nomenclature}[2em][Nomenclature for Chapter 1][section] \EntryHeading{Roman letters} \entry{$\mathcal{C}$}{material curve} -\entry{$\mathbf{u}$}{velocity [m s$^{-1}$]} +\entry{$\mathbf{u}$}{velocity [m s$\cramped{^{-1}}$]} \EntryHeading{Greek letters} -\entry{$\Gamma$}{circulation [m$^2$ s$^{-1}$]} -\entry{$\rho$}{mass density [kg m$^{-3}$]} +\entry{$\Gamma$}{circulation [m$\cramped{^2}$ s$\cramped{^{-1}}$]} +\entry{$\rho$}{mass density [kg m$\cramped{^{-3}}$]} \end{nomenclature} \end{minipage} \end{center} +%% \cramped is from the mathtools package, and moves the superscript a bit lower \section{PACKAGES FOR MATH, CHEMISTRY, CODE, TABLES, AND MORE} The \texttt{mitthesis} class loads the \texttt{amsmath} package and its extension \texttt{mathttools}. These packages provide many useful macros for typesetting equations and symbols, such as: environments for aligning and splitting equations or groups of equations; tools for matrices; a wide variety of operators and symbols; tools to define new math operators and paired delimiters; and much, much more. If you are including equations, look at the documentation for these packages: \url{https://ctan.org/pkg/amsmath} and \url{https://ctan.org/pkg/mathtools}.\looseness=1 @@ -458,13 +461,13 @@ unicode-math & --- & load in a fontset file if using a unicode engine\\ Listing committee members (with or without signatures) is not required under MIT's thesis specifications. Only the thesis supervisor should appear on the title page, not a list of committee members. However, some departments may require a separate committee or signature page. That page can be inserted by the author between the title and abstract pages. Check with your department about this page and any associated formatting requirements. \subsection{Dealing with multiple titles in the signature block}\label{sec:6.3} -When a thesis supervisor has multiple titles (and both will not fit on one line), you can obtain a line break with proper horizontal spacing by doing +When a thesis supervisor has multiple titles (which will not fit on one line), you can obtain a line break with proper horizontal spacing by doing \vskip 5pt \quad\verb|\Supervisor{name}{first title and \\ \> second title}| \vskip 5pt \noindent\textbf{\TeX hackers note:} The signature block is typeset as a \LaTeX\ \texttt{tabbing} environment. -\subsection{Overflowing title page: managing space} If your title page overflows the vertical space (from too many authors, degrees, previous degrees, etc.), you can using some or all of the following techniques. The commands must be given before \verb|\maketitle|. +\subsection{Overflowing title page: managing space} If your title page overflows the vertical space (from too many authors, degrees, previous degrees, etc.), you can use some or all of the following techniques. The commands must be given before \verb|\maketitle|. \begin{enumerate} \item Reduce the 12 pt and 18 pt skips between the various blocks of text to 6 pt with this command: \vskip 5pt diff --git a/macros/latex/contrib/mitthesis/mitthesis.cls b/macros/latex/contrib/mitthesis/mitthesis.cls index 9990a07a88..0a3a44310c 100644 --- a/macros/latex/contrib/mitthesis/mitthesis.cls +++ b/macros/latex/contrib/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}, } diff --git a/macros/latex/contrib/photobook/photobook.cls b/macros/latex/contrib/photobook/photobook.cls index 9e93d91b00..ae2ecac6b6 100644 --- a/macros/latex/contrib/photobook/photobook.cls +++ b/macros/latex/contrib/photobook/photobook.cls @@ -38,6 +38,7 @@ % % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % +% % XXX ASAP: imagecell: photobook@imagecell@left and photobook@imagecell@top % should explicitly account for clearence@left and clearence@top resp. % XXX ASAP: imagecell: clearance should have the same semantics as cliptocell @@ -88,12 +89,25 @@ % cell/cell* depend on absolute mode being set globally % % +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% +% Work around an issue with calc's \ratio{..}{..} breaking into an +% "Arythmetic overflow" when working with large images. +% (see Issues section for more info) +% +% NOTE: if the error persists just make this smaller but note that the +% smaller this gets the greater the error can be for very small +% images +% +\def\CalcOverflowFactor{0.1}% + + %---------------------------------------------------------------------- %%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the %%% code and the generated docs... -\edef\photobook@FILEVERSION{v0.1.30} -\edef\photobook@FILEDATE{2024-07-18} +\edef\photobook@FILEVERSION{v0.1.31} +\edef\photobook@FILEDATE{2024-07-19} %% \documentclass{ltxdoc} @@ -921,7 +935,7 @@ %% \DescribeMacro{\imageblockoffsettop=<ratio>} % -%% The ration by which the image is raised in |\ImagePage{..}| and +%% The ratio by which the image is raised in |\ImagePage{..}| and %% derived templates. %% \edef\imageblockoffsettop{\photobook@imageblockoffsettop} @@ -2519,8 +2533,9 @@ % NOTE: here we calculate image/cell eccentricity to decide % to fit to width or heigh of cell... % NOTE: did I say that I "love" how LaTeX does basic math?? + % NOTE: \ratio{..}{..} here can break, see Issues for more info... \setlength\photobook@imagecell@imgratio{% - 1pt * \ratio{\wd\photobook@imagebox}{\ht\photobook@imagebox}}% + 1pt * \ratio{\CalcOverflowFactor\wd\photobook@imagebox}{\CalcOverflowFactor\ht\photobook@imagebox}}% \setlength\photobook@imagecell@cellratio{% 1pt * \ratio{\cellwidth}{\cellheight}}% \ifdim \photobook@imagecell@imgratio < \photobook@imagecell@cellratio% @@ -2528,7 +2543,7 @@ \includegraphics[% keepaspectratio, width=\photobook@imagecell@scale\dimexpr - + \cellwidth + \cellwidth - \photobook@imagecell@clearance@left - \photobook@imagecell@clearance@right \relax]{#3}}% \else% @@ -2536,7 +2551,7 @@ \includegraphics[% keepaspectratio, height=\photobook@imagecell@scale\dimexpr - + \cellheight + \cellheight - \photobook@imagecell@clearance@top - \photobook@imagecell@clearance@bottom \relax]{#3}}% \fi\fi\fi% @@ -4852,8 +4867,9 @@ % align center -> check if image fits vertically... \ifphotobook@ImagePageFit@centered\else% \sbox{\photobook@imagebox}{\includegraphics{#3}}% + % NOTE: \ratio{..}{..} here can break, see Issues for more info... \setlength\photobook@ImagePageFit@imgratio{% - 1pt * \ratio{\wd\photobook@imagebox}{\ht\photobook@imagebox}}% + 1pt * \ratio{\CalcOverflowFactor\wd\photobook@imagebox}{\CalcOverflowFactor\ht\photobook@imagebox}}% % NOTE: subtracting \bindingoffset from \cellwidth here makes sure that % we avoid offsetting images close enough in ratio to the page and % messing up bleeds... @@ -5696,6 +5712,26 @@ %---------------------------------------------------------------------- +%%%% Issues +% +%% \subsection*{Large images can cause "Arythmetic overflow"} +% +%% \DescribeMacro{\CalcOverflowFactor=0.1} +% +%% If the issue occurs set |\CalcOverflowFactor| to a smaller value. +%% But note, a value too small can lead to errors in the affected macros, +%% a good value is between 0.1 and 0.01. +%% +%% Also note that it is recommended to pre-size images the print outside +%% of \LaTeX. +%% +%% Affected macros: |\imagecell[fill]{..}{..}|, |\ImagePageFit|. +%% +% The issue occurs in the calc's |\ratio{..}{..}| macro when calculating +% image proportions. +% +% +%---------------------------------------------------------------------- % Index... % % XXX this prints trash at this point... diff --git a/macros/latex/contrib/photobook/photobook.pdf b/macros/latex/contrib/photobook/photobook.pdf Binary files differindex 3e31d7fedc..119574f619 100644 --- a/macros/latex/contrib/photobook/photobook.pdf +++ b/macros/latex/contrib/photobook/photobook.pdf |