summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/se2thesis/se2fonts.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/se2thesis/se2fonts.dtx')
-rw-r--r--macros/latex/contrib/se2thesis/se2fonts.dtx61
1 files changed, 13 insertions, 48 deletions
diff --git a/macros/latex/contrib/se2thesis/se2fonts.dtx b/macros/latex/contrib/se2thesis/se2fonts.dtx
index 9e86b3a24d..566c07d583 100644
--- a/macros/latex/contrib/se2thesis/se2fonts.dtx
+++ b/macros/latex/contrib/se2thesis/se2fonts.dtx
@@ -151,65 +151,28 @@
%
% Identify the package and give the overall version information.
% \begin{macrocode}
-\ProvidesExplPackage {se2fonts} {2024-04-20} {3.4.0}
+\ProvidesExplPackage {se2fonts} {2024-05-08} {4.0.0}
{A font-selection support package for the se2thesis bundle}
% \end{macrocode}
%
% \subsection{Load-time options}
%
-% \begin{macro}{\l_@@_fontmode_tl}
-% Holds the font-selection mode specified by the user as a package
-% load-time option.
-% \emph{Please note:} this option is deprecated!
-% \begin{macrocode}
-\tl_new:N \l_@@_fontmode_tl
-\keys_define:nn { seiifonts }
- {
- fmode .choice:,
- fmode / original .code:n = {
- \tl_gset:Nn \l_@@_fontmode_tl {original}
- },
- fmode / replacement .code:n = {
- \tl_gset:Nn \l_@@_fontmode_tl {replacement}
- },
- fmode / auto .code:n = {
- \tl_gset:Nn \l_@@_fontmode_tl {auto}
- },
- original .meta:n = {fmode=original},
- replacement .meta:n = {fmode=replacement},
- auto .meta:n = {fmode=auto},
- }
-% \end{macrocode}
-% \end{macro}
-%
-% \subsection{Option handling}
-%
-% \begin{macrocode}
-\IfFormatAtLeastTF { 2022-06-01 }
- { \ProcessKeyOptions [ seiifonts ] }
- {
- \RequirePackage{ l3keys2e }
- \ProcessKeysOptions { seiifonts }
- }
-% \end{macrocode}
+% The package does not have any load-time options; the formerly defined option
+% to set the font mode was removed with \pkg{se2thesis} version 4.0.0.
%
-% Define a warning message
-% \begin{macrocode}
-\msg_set:nnnn { seiifonts } { deprecated-option }
- { The~ option~ fmode~ to~ the~ se2fonts~ package~ is~ deprecated. }
- { Remove~ it~ from~ your~ code.}
-% \end{macrocode}
+% \subsection{Helper macros}
%
-% Raise the warning if the option was used
+% Define a warning message of users of \pdfLaTeX{} that not all features of the
+% fonts are available and that they should consider using \LuaTeX{} instead.
% \begin{macrocode}
-\tl_if_empty:NF \l_@@_fontmode_tl
+\msg_new:nnnn { seiifonts } { pdflatex-used }
+ { You~ are~ using~ pdfLaTeX~ with~ the~ se2fonts~ packages.}
{
- \msg_warning:nn { seiifonts } { deprecated-option }
+ While~ this~ works~ some~ font~ features~ are~ not~ available,~ consider~
+ using~ lualatex~ instead.
}
% \end{macrocode}
%
-% \subsection{Helper macros}
-%
% \begin{macro}{\pdftexengine, \xetexengine, \luatexengine}
% We define several alias macros to identify which engine the user is running.
% \begin{macrocode}
@@ -242,7 +205,7 @@
% \begin{macrocode}
\ifengineT { \xetexengine }
{
- \msg_set:nnnn { seiifonts } { xetex-not-supported }
+ \msg_new:nnnn { seiifonts } { xetex-not-supported }
{ XeTeX~ is~ not~ supported~ by~ the~ se2fonts~ package. }
{ Switch~ to~ pdfTeX~ or~ (preferably)~ LuaTeX. }
\msg_error:nn { seiifonts } { xetex-not-supported }
@@ -261,6 +224,7 @@
% If the user uses \LuaTeX{}, load \pkg{fontspec} and \pkg{unicode-math}.
% \begin{macrocode}
\RequirePackage{fontspec}
+ \PassOptionsToPackage{math-style=ISO,bold-style=ISO}{unicode-math}
\RequirePackage{unicode-math}
% \end{macrocode}
%
@@ -288,6 +252,7 @@
%
% The user does not use \LuaTeX{}, thus fallback to T1 fonts.
% \begin{macrocode}
+ \msg_warning:nn { seiifonts } { pdflatex-used }
\PassOptionsToPackage{T1}{fontenc}
\PassOptionsToPackage{scaled=0.9,varl}{inconsolata}
\PassOptionsToPackage{mono=false}{libertinus-type1}