%% %% This is file `se2fonts.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% se2thesis.dtx (with options: `init') %% se2fonts.dtx (with options: `package') %% Copyright (C) 2022--2023 by Stephan Lukasczyk %% %% It may be distributed and/or modified under the conditions of %% the LaTeX Project Public License (LPPL), either version 1.3c of %% this license or (at your option) any later version. The latest %% version of this license is in the file: %% %% https://www.latex-project.org/lppl.txt %% %% This work is "maintained" (as per LPPL maintenance status by %% Stephan Lukasczyk. %% %% This work consists of the files se2thesis.dtx, %% se2thesis.ins, %% se2colors.dtx, %% se2fonts.dtx, %% se2packages.dtx, %% se2thesis-master-thesis-example.tex %% and the derived files se2thesis.pdf, %% se2thesis.cls, %% se2translations-english.trsl, %% se2translations-german.trsl, %% se2colors.sty, %% se2fonts.sty, %% se2packages.sty, %% se2thesis-master-thesis-example.bib, and %% se2thesis-master-thesis-example.pdf \@ifundefined{ExplLoaderFileDate} { \RequirePackage{expl3} } {} \@ifl@t@r\ExplLoaderFileDate{2020-01-09} {} {% \PackageError{se2colors}{Support package expl3 too old} {% You need to update your installation of the bundles 'l3kernel' and 'l3packages'.\MessageBreak Loading~se2colors~will~abort!% }% \endinput }% \providecommand \IfFormatAtLeastTF { \@ifl@t@r \fmtversion } \ProvidesExplPackage {se2fonts} {2024-04-20} {3.4.0} {A font-selection support package for the se2thesis bundle} \tl_new:N \l__slcd_fonts_fontmode_tl \keys_define:nn { seiifonts } { fmode .choice:, fmode / original .code:n = { \tl_gset:Nn \l__slcd_fonts_fontmode_tl {original} }, fmode / replacement .code:n = { \tl_gset:Nn \l__slcd_fonts_fontmode_tl {replacement} }, fmode / auto .code:n = { \tl_gset:Nn \l__slcd_fonts_fontmode_tl {auto} }, original .meta:n = {fmode=original}, replacement .meta:n = {fmode=replacement}, auto .meta:n = {fmode=auto}, } \IfFormatAtLeastTF { 2022-06-01 } { \ProcessKeyOptions [ seiifonts ] } { \RequirePackage{ l3keys2e } \ProcessKeysOptions { seiifonts } } \msg_set:nnnn { seiifonts } { deprecated-option } { The~ option~ fmode~ to~ the~ se2fonts~ package~ is~ deprecated. } { Remove~ it~ from~ your~ code.} \tl_if_empty:NF \l__slcd_fonts_fontmode_tl { \msg_warning:nn { seiifonts } { deprecated-option } } \cs_new_eq:NN \pdftexengine \sys_if_engine_pdftex_p: \cs_new_eq:NN \xetexengine \sys_if_engine_xetex_p: \cs_new_eq:NN \luatexengine \sys_if_engine_luatex_p: \NewExpandableDocumentCommand \ifengineTF { mmm } { \bool_if:nTF { #1 } { #2 } { #3 } } \NewExpandableDocumentCommand \ifengineT { mm } { \bool_if:nT { #1 } { #2 } } \NewExpandableDocumentCommand \ifengineF { mm } { \bool_if:nF { #1 } { #2 } } \ifengineT { \xetexengine } { \msg_set: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 } } \ifengineTF { \luatexengine } { \RequirePackage{fontspec} \RequirePackage{unicode-math} \defaultfontfeatures{ Scale = MatchLowercase } \defaultfontfeatures[\rmfamily]{ Scale = 1 } \PassOptionsToPackage{mono=false}{libertinus-otf} \RequirePackage{libertinus-otf} \RequirePackage{inconsolata-nerd-font} } { \PassOptionsToPackage{T1}{fontenc} \PassOptionsToPackage{scaled=0.9,varl}{inconsolata} \PassOptionsToPackage{mono=false}{libertinus-type1} \RequirePackage{fontenc} \RequirePackage{inconsolata} \RequirePackage{libertinus-type1} }