summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/se2thesis/se2thesis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/se2thesis/se2thesis.dtx')
-rw-r--r--macros/latex/contrib/se2thesis/se2thesis.dtx60
1 files changed, 33 insertions, 27 deletions
diff --git a/macros/latex/contrib/se2thesis/se2thesis.dtx b/macros/latex/contrib/se2thesis/se2thesis.dtx
index 9efc2d8542..d48480fb21 100644
--- a/macros/latex/contrib/se2thesis/se2thesis.dtx
+++ b/macros/latex/contrib/se2thesis/se2thesis.dtx
@@ -301,13 +301,10 @@
%
% Before we start with a detailed documentation of the class, we explain one
% helper macro that can be used to check whether a package has been loaded.
-% \begin{function}
-% {
-% \slcd_package_if_loaded:nTF,
-% \slcd_package_if_loaded:nT,
-% \slcd_package_if_loaded:nF,
-% \slcd_package_if_loaded_p:n
-% }
+% \begin{function}[EXP, pTF, updated = 2022-09-27]{\slcd_package_if_loaded:}
+% \begin{syntax}
+% |\slcd_package_if_loaded:TF| \Arg{true code} \Arg{false code}
+% \end{syntax}
% Checks whether a package has been loaded and conditionally executes code.
% \end{function}
%
@@ -921,7 +918,7 @@
% The following option is defined by the \pkg{se2fonts} package
% to influence the selection of the fonts.
%
-% \begin{function}{fontmode}
+% \begin{function}[updated = 2022-09-27]{fontmode}
% \begin{syntax}
% |fontmode| = \meta{choice}
% \end{syntax}
@@ -933,6 +930,9 @@
% |auto| selects fonts automatically,
% preferring the |original| fonts if available.
% The default is |auto|.
+%
+% The fonts are automatically scaled based on their lower-case characters
+% using the mechanisms provided by \pkg{fontspec} when using \LuaTeX.
% \end{function}
%
% The following list provides examples for each of the fonts:
@@ -1052,7 +1052,7 @@
%
% Identify the class and give the overall version number.
% \begin{macrocode}
-\ProvidesExplClass {se2thesis} {2022-09-12} {1.1.0}
+\ProvidesExplClass {se2thesis} {2022-09-27} {1.1.1}
{A thesis class for the Chair of Software Engineering II}
% \end{macrocode}
%
@@ -2144,7 +2144,7 @@
% We provide the following English translations.
%
% \begin{macrocode}
-\ProvideDictionaryFor{English}{se2translations}[2022/09/12]
+\ProvideDictionaryFor{English}{se2translations}[2022/09/27]
\ProvideDictTranslation{abstract}{abstract}
\ProvideDictTranslation{Abstract}{Abstract}
\ProvideDictTranslation{acknowledgement}{acknowledgement}
@@ -2193,7 +2193,7 @@
% We provide the following German translations.
%
% \begin{macrocode}
-\ProvideDictionaryFor{German}{se2translations}[2022/09/12]
+\ProvideDictionaryFor{German}{se2translations}[2022/09/27]
\ProvideDictTranslation{abstract}{Zusammenfassung}
\ProvideDictTranslation{Abstract}{Zusammenfassung}
\ProvideDictTranslation{acknowledgement}{Danksagung}
@@ -2252,7 +2252,7 @@
%
% Identify the package and give the overall version information.
% \begin{macrocode}
-\ProvidesExplPackage {se2colors} {2022-09-12} {1.1.0}
+\ProvidesExplPackage {se2colors} {2022-09-27} {1.1.1}
{A colour support package for the se2thesis bundle}
% \end{macrocode}
%
@@ -2358,7 +2358,7 @@
%
% Identify the package and give the overall version information.
% \begin{macrocode}
-\ProvidesExplPackage {se2fonts} {2022-09-12} {1.1.0}
+\ProvidesExplPackage {se2fonts} {2022-09-27} {1.1.1}
{A font-selection support package for the se2thesis bundle}
% \end{macrocode}
%
@@ -2457,16 +2457,22 @@
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
% \end{macrocode}
+% To make sure the scaling of the fonts matches, we let \pkg{fontspec} do this
+% matching based on the lower-case characters.
+% \begin{macrocode}
+ \defaultfontfeatures{ Scale = MatchLowercase }
+ \defaultfontfeatures[\rmfamily]{ Scale = 1 }
+% \end{macrocode}
%
% The user wants to have the |original| fonts,
% which are Palatino, Optima, MesloLGS Nerd Font Mono, and Neo Euler.
% \begin{macrocode}
\tl_if_eq:NnT \l_@@_fontmode_tl {original}
{
- \setmainfont{Palatino}[Ligatures=TeX]
- \setsansfont{Optima}[Ligatures=TeX]
+ \setmainfont{Palatino}
+ \setsansfont{Optima}
\setmonofont{MesloLGS Nerd Font Mono}
- \setmathfont{Neo Euler}[Ligatures=TeX]
+ \setmathfont{Neo Euler}[math-style=upright]
}
% \end{macrocode}
%
@@ -2476,10 +2482,10 @@
% \begin{macrocode}
\tl_if_eq:NnT \l_@@_fontmode_tl {replacement}
{
- \setmainfont{TeX Gyre Pagella}[Ligatures=TeX]
- \setsansfont{TeX Gyre Heros}[Ligatures=TeX, Scale=0.9]
- \setmonofont{Fira Code}[Ligatures=TeX]
- \setmathfont{TeX Gyre Pagella Math}[Ligatures=TeX]
+ \setmainfont{TeX Gyre Pagella}
+ \setsansfont{TeX Gyre Heros}
+ \setmonofont{Fira Code}
+ \setmathfont{TeX Gyre Pagella Math}
\setmathfont{Latin Modern Math}[range={\mathcal,\mathbb}]
}
% \end{macrocode}
@@ -2494,18 +2500,18 @@
\tl_if_eq:NnT \l_@@_fontmode_tl {auto}
{
\IfFontExistsTF { Palatino }
- { \setmainfont{Palatino}[Ligatures=TeX] }
- { \setmainfont{TeX Gyre Pagella}[Ligatures=TeX] }
+ { \setmainfont{Palatino} }
+ { \setmainfont{TeX Gyre Pagella} }
\IfFontExistsTF { Optima }
- { \setsansfont{Optima}[Ligatures=TeX] }
- { \setsansfont{TeXGyre Heros}[Ligatures=TeX] }
+ { \setsansfont{Optima} }
+ { \setsansfont{TeXGyre Heros} }
\IfFontExistsTF{ MesloLGS Nerd Font Mono }
{ \setmonofont{MesloLGS Nerd Font Mono} }
- { \setmonofont{Fira Code}[Scale=0.85] }
+ { \setmonofont{Fira Code} }
\IfFontExistsTF { Neo Euler }
- { \setmathfont{Neo Euler}[Ligatures=TeX] }
+ { \setmathfont{Neo Euler}[math-style=upright] }
{
- \setmathfont{TeX Gyre Pagella Math}[Ligatures=TeX]
+ \setmathfont{TeX Gyre Pagella Math}
\setmathfont{Latin Modern Math}[range={\mathcal,\mathbb}]
}
}