%%
%% This is file `iwonamath.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% iwonamath.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from iwonamath.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file iwonamath.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesExplPackage {iwonamath}
{2024-07-19} {1.1}
{Scaled Iwona math fonts}
\keys_define:nn { iwonamath/options }
{
  scale .tl_set:N = \l__iwonamath_scale_tl,
  Scale .tl_set:N = \l__iwonamath_scale_tl,
  light .bool_set:N = \l__iwonamath_mainlight_bool,
  light .default:n = true,
  condensed .bool_set:N = \l__iwonamath_maincondensed_bool,
  condensed .default:n = true,
  delimitershack .bool_set:N = \l__iwonamath_delimitershack_bool,
  delimitershack .default:n = true,
  standardversions .bool_set:N = \l__iwonamath_standardversions_bool,
  standardversions .default:n = true,
}

\keys_set:nn {iwonamath/options }
{
  scale = 1,
  light = false,
  condensed = false,
  delimitershack = true,
  standardversions = true,
}
\IfFormatAtLeastTF { 2022-06-01 }
  { \ProcessKeyOptions [ iwonamath/options ] }
  {
    \RequirePackage { l3keys2e }
    \ProcessKeysOptions { iwonamath/options }
  }
\keys_define:nn { iwonamath/main }
{
  name .tl_set:N = \l__iwonamath_versionname_tl,
  light .bool_set:N = \l__iwonamath_light_bool,
  light .default:n = true,
  condensed .bool_set:N = \l__iwonamath_condensed_bool,
  condensed .default:n = true,
  bold .bool_set:N = \l__iwonamath_bold_bool,
  bold .default:n = true,
}
\bool_if:NTF \l__iwonamath_delimitershack_bool
{
  \DeclareSymbolFont{symbols2}{OMS}{iwonamathcmsy}{m}{n}
  \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}
}
{}
\DeclareDocumentCommand \DefineIwonaMathVersion { m }
{
  \tl_clear:N \l__iwonamath_versionname_tl
  \bool_set_eq:NN \l__iwonamath_light_bool \l__iwonamath_mainlight_bool
  \bool_set_eq:NN \l__iwonamath_condensed_bool \l__iwonamath_maincondensed_bool
  \bool_set_false:N \l__iwonamath_bold_bool
  \keys_set:nn { iwonamath/main }
  {
    #1
  }

  \tl_if_empty:NTF \l__iwonamath_versionname_tl
  {
    \bool_if:NTF \l__iwonamath_bold_bool
    {
      \tl_set:Nn \l__iwonamath_versionname_tl {bold}
    }
    {
      \tl_set:Nn \l__iwonamath_versionname_tl {normal}
    }
  }
  {}

  \tl_set:Nn \l_tmpa_tl {iwonamath}

  \bool_if:NTF \l__iwonamath_light_bool
  {
    \tl_set:Ne \l_tmpa_tl {\l_tmpa_tl l}
  }
  {}

  \bool_if:NTF \l__iwonamath_condensed_bool
  {
    \tl_set:Ne \l_tmpa_tl {\l_tmpa_tl c}
  }
  {}

  \DeclareMathVersion{\l__iwonamath_versionname_tl}
  \bool_if:NTF \l__iwonamath_bold_bool
  {
    \SetSymbolFont{operators}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl m} {b}{n}
    \SetSymbolFont{letters}  {\l__iwonamath_versionname_tl}{OML}{\l_tmpa_tl} {b}{it}
    \SetSymbolFont{symbols}  {\l__iwonamath_versionname_tl}{OMS}{\l_tmpa_tl}{b}{n}
    \SetSymbolFont{largesymbols}{\l__iwonamath_versionname_tl}{OMX}{\l_tmpa_tl}{b}{n}
    \SetMathAlphabet\mathsf{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{bx}{n}
    \SetMathAlphabet\mathit{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{bx}{it}
    \SetSymbolFont{symbols2}    {\l__iwonamath_versionname_tl}{OMS}{iwonamathcmsy}{b}{n}
  }
  {
    \SetSymbolFont{operators}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl m}{m}{n}
    \SetSymbolFont{letters}{\l__iwonamath_versionname_tl}{OML}{\l_tmpa_tl} {m}{it}
    \SetSymbolFont{symbols}{\l__iwonamath_versionname_tl}{OMS}{\l_tmpa_tl}{m}{n}
    \SetSymbolFont{largesymbols}{\l__iwonamath_versionname_tl}{OMX}{\l_tmpa_tl}{m}{n}
    \SetMathAlphabet{\mathbf}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{bx}{n}
    \SetMathAlphabet{\mathsf}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{m}{n}
    \SetMathAlphabet{\mathit}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{m}{it}
    \SetMathAlphabet{\mathtt}{\l__iwonamath_versionname_tl}{OT1}{\l_tmpa_tl}{m}{n}
    \SetSymbolFont{symbols2}    {\l__iwonamath_versionname_tl}{OMS}{iwonamathcmsy}{m}{n}
  }

  \bool_if:NTF \l__iwonamath_delimitershack_bool
  {

  }
  {}

}
\bool_if:NTF \l__iwonamath_standardversions_bool
{
  \DefineIwonaMathVersion{}
  \DefineIwonaMathVersion{bold}
}
{}
\endinput
%%
%% End of file `iwonamath.sty'.
