% xelatex- and lualatex-Package for libertine-otf-fonts

% Current maintainer: Patrick Gundlach, patrick@gundla.ch
% Most code is from:
% Michael Niedermair m.g.n@gmx.de
% Help from:
% Herbert Voss hvoss@tug.org
%
% (License LPPL)
%
\def\libertineVersion{5.13}%
\def\libertinePackageDate{2012/04/01}
\def\libertinePackageVersion{7}
%
\ProvidesPackage{libertineotf}[%
   \libertinePackageDate\space \libertineVersion-\libertinePackageVersion:
   Libertine OTF (PGU)]
%
\RequirePackage{keyval,ifxetex,ifluatex,lettrine}
%
\def\fxl@paramlibertine{Ligatures=TeX}
\def\fxl@parambiolinum{Ligatures=TeX}
\def\fxl@parammono{Scale=0.95}
%
\define@key{fxl}{libertine}[]{\def\fxl@paramlibertine{#1}}
\define@key{fxl}{biolinum}[]{\def\fxl@parambiolinum{#1}}
\define@key{fxl}{mono}[]{\def\fxl@parammono{#1}}

\def\ProcessOptionsWithKV#1{%
  \let\@tempc\relax
  \let\fxl@tempa\@empty
  \@for\CurrentOption:=\@classoptionslist\do{%
    \@ifundefined{KV@#1@\CurrentOption}%
    {}%
    {%
      \edef\fxl@tempa{\fxl@tempa,\CurrentOption,}%
      \@expandtwoargs\@removeelement\CurrentOption
        \@unusedoptionlist\@unusedoptionlist
    }%
  }%
  \edef\fxl@tempa{%
    \noexpand\setkeys{#1}{%
      \fxl@tempa\@ptionlist{\@currname.\@currext}%
    }%
  }%
  \fxl@tempa
  \let\CurrentOption\@empty
}
\ProcessOptionsWithKV{fxl}
\AtEndOfPackage{%
  \let\@unprocessedoptions\relax
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% check xelatex
\ifxetex
   % okay
  \XeTeXtracingfonts=1\relax
\else
   \ifluatex
      % okay
   \else
      \PackageError{libertineotf}{runs only with xelatex and lualatex!}{}
   \fi
\fi

\RequirePackage{fontspec}

\setmainfont[Extension=.otf,
      BoldFont=LinLibertine_RB,
      ItalicFont=LinLibertine_RI,
      BoldItalicFont=LinLibertine_RBI,
      SlantedFont=LinLibertine_aRL,
      BoldSlantedFont=LinLibertine_aBL,
      SmallCapsFont=LinLibertine_R,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@paramlibertine
      ]{LinLibertine_R}
\setsansfont[Extension=.otf,
      BoldFont=LinBiolinum_RB,
      ItalicFont=LinBiolinum_RI,
      BoldItalicFont=LinBiolinum_RB,% fake
      SlantedFont=LinBiolinum_aRL,
      BoldSlantedFont=LinBiolinum_aBL,
      SmallCapsFont=LinBiolinum_R,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@parambiolinum
      ]{LinBiolinum_R}
\setmonofont[Extension=.otf,
      BoldFont=LinMono_M,% fake
      ItalicFont=LinMono_M,% fake
      BoldItalicFont=LinMono_M,% fake
      SlantedFont=LinMono_aML,
      BoldSlantedFont=LinMono_aML,%fake
      \fxl@parammono
      ]{LinMono_M}

\newfontfamily\libertine[Extension=.otf,
      BoldFont=LinLibertine_RB,
      ItalicFont=LinLibertine_RI,
      BoldItalicFont=LinLibertine_RBI,
      SlantedFont=LinLibertine_aRL,
      BoldSlantedFont=LinLibertine_aBL,
      SmallCapsFont=LinLibertine_R,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@paramlibertine
      ]{LinLibertine_R}

\newfontfamily\libertineSB[Extension=.otf,
      BoldFont=LinLibertine_RZ,
      ItalicFont=LinLibertine_RI,
      BoldItalicFont=LinLibertine_RZI,
      SlantedFont=LinLibertine_aRL,
      BoldSlantedFont=LinLibertine_aZL,
      SmallCapsFont=LinLibertine_R,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@paramlibertine
      ]{LinLibertine_R}

\newfontfamily\libertineInitial[Extension=.otf]{LinLibertine_I}

\newfontfamily\libertineDisplay[Extension=.otf,
      BoldFont=LinLibertine_DR,%fake
      ItalicFont=LinLibertine_DR,%fake
      BoldItalicFont=LinLibertine_DR,%fake
      SlantedFont=LinLibertine_aDRL,
      BoldSlantedFont=LinLibertine_aDRL,%fake
%      SmallCapsFont=LinLibertine_DR,
%      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@paramlibertine
      ]{LinLibertine_DR}

\newfontfamily\biolinum[Extension=.otf,
      BoldFont=LinBiolinum_RB,
      ItalicFont=LinBiolinum_RI,
      BoldItalicFont=LinBiolinum_RB,% fake
      SlantedFont=LinBiolinum_aRL,
      BoldSlantedFont=LinBiolinum_aBL,
      SmallCapsFont=LinBiolinum_R,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@parambiolinum
      ]{LinBiolinum_R}

\newfontfamily\biolinumOutline[Extension=.otf,
      BoldFont=LinBiolinum_aUB,
      ItalicFont=LinBiolinum_aUI,
      BoldItalicFont=LinBiolinum_aUB,% fake
      SlantedFont=LinBiolinum_aUL,
      BoldSlantedFont=LinBiolinum_aULB,
      SmallCapsFont=LinBiolinum_aU,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@parambiolinum
      ]{LinBiolinum_aU}

\newfontfamily\biolinumShadow[Extension=.otf,
      BoldFont=LinBiolinum_aWB,
      ItalicFont=LinBiolinum_aWI,
      BoldItalicFont=LinBiolinum_aWB,% fake
      SlantedFont=LinBiolinum_aWL,
      BoldSlantedFont=LinBiolinum_aWLB,
      SmallCapsFont=LinBiolinum_aW,
      SmallCapsFeatures={Letters=SmallCaps},
      \fxl@parambiolinum
      ]{LinBiolinum_aW}

\newfontfamily\biolinumkey[Extension=.otf]{LinBiolinum_K}

\newfontfamily\libmono[Extension=.otf,
      BoldFont=LinMono_M,% fake
      ItalicFont=LinMono_M,% fake
      BoldItalicFont=LinMono_M,% fake
      SlantedFont=LinMono_aML,
      BoldSlantedFont=LinMono_aML,%fake
      \fxl@parammono
      ]{LinMono_M}

\def\lib@fxl{fxl}
\def\lib@fxb{fxb}
\def\lib@fxk{fxk}
\def\lib@fxi{fxi}

\newcommand*\DeclareTextGlyphY[3]{%
    % \DeclareTextGlyphY{fxl}{s_t}{64262}
    % #1=basefont #2=glyphname, #3=position
    \def\lib@temp{#1}%
    \ifx\lib@temp\lib@fxl \@namedef{#1@#2}{{\libertine\char#3\relax}}\else%
      \ifx\lib@temp\lib@fxb \@namedef{#1@#2}{{\biolinum\char#3\relax}}\else%
        \ifx\lib@temp\lib@fxk \@namedef{#1@#2}{{\biolinumkey\char#3\relax}}\else%
          \ifx\lib@temp\lib@fxi \@namedef{#1@#2}{{\libertineInitial\char#3\relax}}%
    \fi\fi\fi\fi}
%
\input{fxluni.inc}
\input{fxbuni.inc}
\input{fxkuni.inc}
\input{fxiuni.inc}
%
\ProvideTextCommand{\glqq}{\encodingdefault}{\textormath{\quotedblbase}{\mbox{\quotedblbase}}}
\ProvideTextCommand{\grqq}{\encodingdefault}{\textormath{\textquotedblleft}{\mbox{\textquotedblleft}}}
%
\DeclareRobustCommand*\libertineGlyph[1]{\@nameuse{fxl@#1}}
\DeclareRobustCommand*\biolinumGlyph[1]{\@nameuse{fxb@#1}}
\DeclareRobustCommand*\biolinumKeyGlyph[1]{{\@nameuse{fxk@#1}}}
\DeclareRobustCommand*\libertineInitialGlyph[1]{{\@nameuse{fxi@#1}}}
%
%
\DeclareTextCommandDefault{\texteuro}{{\libertineGlyph{Euro}}}
% Standardziffern
\providecommand\Lnnum[1]{{\addfontfeatures{RawFeature=+lnum;+tnum;-pnum;-onum}#1}}
% Proportionale Standardziffern
\providecommand\Lpnum[1]{{\addfontfeatures{RawFeature=+lnum;+pnum;-tnum;-onum}#1}}
% Versalziffern
\providecommand\Lcnum[1]{{\addfontfeatures{RawFeature=+case}#1}}
% Minuskelziffern
\providecommand\Lonum[1]{{\addfontfeatures{RawFeature=+onum;+pnum;-lnum;-tnum}#1}}
% Tabellarische Minuskelziffern
\providecommand\Ltonum[1]{{\addfontfeatures{RawFeature=+onum;+tnum;-lnum;-pnum}#1}}
%
% Standardziffern
\providecommand\Lxnnum{\addfontfeatures{RawFeature=+lnum;+tnum;-pnum;-onum}}
% Proportionale Standardziffern
\providecommand\Lxpnum{\addfontfeatures{RawFeature=+lnum;+pnum;-tnum;-onum}}
% Versalziffern
\providecommand\Lxcnum{\addfontfeatures{RawFeature=+case}}
% Minuskelziffern
\providecommand\Lxonum{\addfontfeatures{RawFeature=+onum;+pnum;-lnum;-tnum}}
% Tabellarische Minuskelziffern
\providecommand\Lxtonum{\addfontfeatures{RawFeature=+onum;+tnum;-lnum;-pnum}}
%
%
% Kapitaelchen
\providecommand\Lsmcp[1]{{\addfontfeatures{RawFeature=+smcp}#1}}
\providecommand\Lcsc[1]{{\addfontfeatures{RawFeature=+c2sc}#1}}
%
% vertikale Verschiebung
\providecommand\Lsups[1]{{\addfontfeatures{RawFeature=+sups}#1}}
\providecommand\Lsinf[1]{{\addfontfeatures{RawFeature=+sinf}#1}}
%
% table
\newenvironment{Ltable}[1][RawFeature=+pnum;+tnum]{\begin{table}\addfontfeatures{#1}}{\end{table}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%             KEY
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\DeclareRobustCommand*\LKey[1]{\biolinumKeyGlyph{#1}}
\DeclareRobustCommand*\LKeyTux{\biolinumKeyGlyph{T_u_x}}
\DeclareRobustCommand*\LKeyWin{\biolinumKeyGlyph{uniE168}}
\DeclareRobustCommand*\LKeyMenu{\biolinumKeyGlyph{uniE104}}
\DeclareRobustCommand*\LKeyStrg{\biolinumKeyGlyph{S_t_r_g}}
\DeclareRobustCommand*\LKeyAlt{\biolinumKeyGlyph{A_l_t}}
\DeclareRobustCommand*\LKeyAltGr{\biolinumKeyGlyph{A_l_t_G_r}}
\DeclareRobustCommand*\LKeyShift{\biolinumKeyGlyph{S_h_i_f_t}}
\DeclareRobustCommand*\LKeyTab{\biolinumKeyGlyph{T_a_b}}
\DeclareRobustCommand*\LKeyEnter{\biolinumKeyGlyph{E_n_t_e_r}}
\DeclareRobustCommand*\LKeyCapsLock{\biolinumKeyGlyph{C_a_p_s_l_o_c_k}}
\DeclareRobustCommand*\LKeyPos{\biolinumKeyGlyph{P_o_s_1}}
\DeclareRobustCommand*\LKeyEntf{\biolinumKeyGlyph{E_n_t_f}}
\DeclareRobustCommand*\LKeyEinf{\biolinumKeyGlyph{E_i_n_f}}
\DeclareRobustCommand*\LKeyLeer{\biolinumKeyGlyph{L_e_e_r}}
\DeclareRobustCommand*\LKeyEsc{\biolinumKeyGlyph{E_s_c}}
\DeclareRobustCommand*\LKeyEnde{\biolinumKeyGlyph{E_n_d_e}}
\DeclareRobustCommand*\LKeyCommand{\biolinumKeyGlyph{uni2318}}
\DeclareRobustCommand*\LKeyOptionKey{\biolinumKeyGlyph{uni2325}}
%
\DeclareRobustCommand*\LKeyBack{\biolinumKeyGlyph{B_a_c_k}}
\DeclareRobustCommand*\LKeyUp{\biolinumKeyGlyph{arrowup}}
\DeclareRobustCommand*\LKeyDown{\biolinumKeyGlyph{arrowdown}}
\DeclareRobustCommand*\LKeyLeft{\biolinumKeyGlyph{arrowleft}}
\DeclareRobustCommand*\LKeyRight{\biolinumKeyGlyph{arrowright}}
\DeclareRobustCommand*\LKeyPgUp{\biolinumKeyGlyph{uniE198}}
\DeclareRobustCommand*\LKeyPgDown{\biolinumKeyGlyph{uniE199}}
\DeclareRobustCommand*\LKeyAt{\biolinumKeyGlyph{at}}
\DeclareRobustCommand*\LKeyFn{\biolinumKeyGlyph{uniE188}}
\DeclareRobustCommand*\LKeyHome{\biolinumKeyGlyph{H_o_m_e}}
\DeclareRobustCommand*\LKeyDel{\biolinumKeyGlyph{D_e_l}}
\DeclareRobustCommand*\LKeyIns{\biolinumKeyGlyph{I_n_s}}
\DeclareRobustCommand*\LKeyEnd{\biolinumKeyGlyph{E_n_d}}
\DeclareRobustCommand*\LKeyGNU{\biolinumKeyGlyph{G_N_U}}
\DeclareRobustCommand*\LKeyPageUp{\biolinumKeyGlyph{uniE19A}}
\DeclareRobustCommand*\LKeyPageDown{\biolinumKeyGlyph{uniE19B}}
%
\@namedef{libertine@key@F@1}{\biolinumKeyGlyph{F_1}}
\@namedef{libertine@key@F@2}{\biolinumKeyGlyph{F_2}}
\@namedef{libertine@key@F@3}{\biolinumKeyGlyph{F_3}}
\@namedef{libertine@key@F@4}{\biolinumKeyGlyph{F_4}}
\@namedef{libertine@key@F@5}{\biolinumKeyGlyph{F_5}}
\@namedef{libertine@key@F@6}{\biolinumKeyGlyph{F_6}}
\@namedef{libertine@key@F@7}{\biolinumKeyGlyph{F_7}}
\@namedef{libertine@key@F@8}{\biolinumKeyGlyph{F_8}}
\@namedef{libertine@key@F@9}{\biolinumKeyGlyph{F_9}}
\@namedef{libertine@key@F@10}{\biolinumKeyGlyph{F_1_0}}
\@namedef{libertine@key@F@11}{\biolinumKeyGlyph{F_1_1}}
\@namedef{libertine@key@F@12}{\biolinumKeyGlyph{F_1_2}}
\@namedef{libertine@key@F@13}{\biolinumKeyGlyph{F_1_3}}
\@namedef{libertine@key@F@14}{\biolinumKeyGlyph{F_1_4}}
\@namedef{libertine@key@F@15}{\biolinumKeyGlyph{F_1_5}}
\@namedef{libertine@key@F@16}{\biolinumKeyGlyph{F_1_6}}
\DeclareRobustCommand*\LKeyF[1]{\@nameuse{libertine@key@F@#1}}
\DeclareRobustCommand*\LKeyAltF[1]{\LKeyAlt+\@nameuse{libertine@key@F@#1}}
\DeclareRobustCommand*\LKeyStrgAltF[1]{\LKeyStrg+\LKeyAlt+\@nameuse{libertine@key@F@#1}}
\DeclareRobustCommand*\LKeyStrgX[1]{\LKeyStrg+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftX[1]{\LKeyShift+\LKey{#1}}
\DeclareRobustCommand*\LKeyAltX[1]{\LKeyAlt+\LKey{#1}}
\DeclareRobustCommand*\LKeyAltGrX[1]{\LKeyAltGr+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftStrgX[1]{\LKeyShift+\LKeyStrg+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftAltX[1]{\LKeyShift+\LKeyAlt+\LKey{#1}}
\DeclareRobustCommand*\LKeyShiftAltGrX[1]{\LKeyShift+\LKeyAltGr+\LKey{#1}}
\DeclareRobustCommand*\LKeyStrgAltX[1]{\LKeyStrg+\LKeyAlt+\LKey{#1}}
\DeclareRobustCommand*\LKeyStrgAltEnt{\LKeyStrg+\LKeyAlt+\LKeyEntf}
\let\LKeyReset\LKeyStrgAltEnt
%
\@namedef{libertine@key@Pad@0}{\biolinumKeyGlyph{uniE1A0}}
\@namedef{libertine@key@Pad@1}{\biolinumKeyGlyph{uniE1A1}}
\@namedef{libertine@key@Pad@2}{\biolinumKeyGlyph{uniE1A2}}
\@namedef{libertine@key@Pad@3}{\biolinumKeyGlyph{uniE1A3}}
\@namedef{libertine@key@Pad@4}{\biolinumKeyGlyph{uniE1A4}}
\@namedef{libertine@key@Pad@5}{\biolinumKeyGlyph{uniE1A5}}
\@namedef{libertine@key@Pad@6}{\biolinumKeyGlyph{uniE1A6}}
\@namedef{libertine@key@Pad@7}{\biolinumKeyGlyph{uniE1A7}}
\@namedef{libertine@key@Pad@8}{\biolinumKeyGlyph{uniE1A8}}
\@namedef{libertine@key@Pad@9}{\biolinumKeyGlyph{uniE1A9}}
\@namedef{libertine@key@Pad@10}{\biolinumKeyGlyph{uniE1AA}}
\@namedef{libertine@key@Pad@11}{\biolinumKeyGlyph{uniE1AB}}
\@namedef{libertine@key@Pad@12}{\biolinumKeyGlyph{uniE1AC}}
\@namedef{libertine@key@Pad@13}{\biolinumKeyGlyph{uniE1AD}}
\@namedef{libertine@key@Pad@14}{\biolinumKeyGlyph{uniE1AE}}
\DeclareRobustCommand*\LKeyPad[1]{\@nameuse{libertine@key@Pad@#1}}
%
% Maus
%
\DeclareRobustCommand*\LMouseEmpty{\biolinumKeyGlyph{uniE130}}
\DeclareRobustCommand*\LMouseN{\biolinumKeyGlyph{uniE131}}
\DeclareRobustCommand*\LMouseL{\biolinumKeyGlyph{uniE132}}
\DeclareRobustCommand*\LMouseM{\biolinumKeyGlyph{uniE133}}
\DeclareRobustCommand*\LMouseR{\biolinumKeyGlyph{uniE134}}
\DeclareRobustCommand*\LMouseLR{\biolinumKeyGlyph{uniE135}}
\DeclareRobustCommand*\LMouseIIEmpty{\biolinumKeyGlyph{uniE138}}
\DeclareRobustCommand*\LMouseIIN{\biolinumKeyGlyph{uniE139}}
\DeclareRobustCommand*\LMouseIIL{\biolinumKeyGlyph{uniE13A}}
\DeclareRobustCommand*\LMouseIIR{\biolinumKeyGlyph{uniE13C}}
\DeclareRobustCommand*\LMouseIILR{\biolinumKeyGlyph{uniE13D}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%             LIST
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newcommand*\DeclareListNumberGlyph[3]{%
    \@namedef{libertine@#1@#2}{\biolinumGlyph{#3}}}
\newcommand*\useListNumberGlyph[2][circle]{{\@nameuse{libertine@#1@#2}}}
%
% circle
\DeclareListNumberGlyph{circle}{1}{uni2460}
\DeclareListNumberGlyph{circle}{2}{uni2461}
\DeclareListNumberGlyph{circle}{3}{uni2462}
\DeclareListNumberGlyph{circle}{4}{uni2463}
\DeclareListNumberGlyph{circle}{5}{uni2464}
\DeclareListNumberGlyph{circle}{6}{uni2465}
\DeclareListNumberGlyph{circle}{7}{uni2466}
\DeclareListNumberGlyph{circle}{8}{uni2467}
\DeclareListNumberGlyph{circle}{9}{uni2468}
\DeclareListNumberGlyph{circle}{10}{uni2469}
\DeclareListNumberGlyph{circle}{11}{uni246A}
\DeclareListNumberGlyph{circle}{12}{uni246B}
\DeclareListNumberGlyph{circle}{13}{uni246C}
\DeclareListNumberGlyph{circle}{14}{uni246D}
\DeclareListNumberGlyph{circle}{15}{uni246E}
\DeclareListNumberGlyph{circle}{16}{uni246F}
\DeclareListNumberGlyph{circle}{17}{uni2470}
\DeclareListNumberGlyph{circle}{18}{uni2471}
\DeclareListNumberGlyph{circle}{19}{uni2472}
\DeclareListNumberGlyph{circle}{20}{uni2473}
%
% bracket
\DeclareListNumberGlyph{bracket}{1}{uni2474}
\DeclareListNumberGlyph{bracket}{2}{uni2475}
\DeclareListNumberGlyph{bracket}{3}{uni2476}
\DeclareListNumberGlyph{bracket}{4}{uni2477}
\DeclareListNumberGlyph{bracket}{5}{uni2478}
\DeclareListNumberGlyph{bracket}{6}{uni2479}
\DeclareListNumberGlyph{bracket}{7}{uni247A}
\DeclareListNumberGlyph{bracket}{8}{uni247B}
\DeclareListNumberGlyph{bracket}{9}{uni247C}
\DeclareListNumberGlyph{bracket}{10}{uni247D}
\DeclareListNumberGlyph{bracket}{11}{uni247E}
\DeclareListNumberGlyph{bracket}{12}{uni247F}
\DeclareListNumberGlyph{bracket}{13}{uni2480}
\DeclareListNumberGlyph{bracket}{14}{uni2481}
\DeclareListNumberGlyph{bracket}{15}{uni2482}
\DeclareListNumberGlyph{bracket}{16}{uni2483}
\DeclareListNumberGlyph{bracket}{17}{uni2484}
\DeclareListNumberGlyph{bracket}{18}{uni2485}
\DeclareListNumberGlyph{bracket}{19}{uni2486}
\DeclareListNumberGlyph{bracket}{20}{uni2487}
%
% Alpha
\DeclareListNumberGlyph{Alpha}{1}{uni24B6}
\DeclareListNumberGlyph{Alpha}{2}{uni24B7}
\DeclareListNumberGlyph{Alpha}{3}{uni24B8}
\DeclareListNumberGlyph{Alpha}{4}{uni24B9}
\DeclareListNumberGlyph{Alpha}{5}{uni24BA}
\DeclareListNumberGlyph{Alpha}{6}{uni24BB}
\DeclareListNumberGlyph{Alpha}{7}{uni24BC}
\DeclareListNumberGlyph{Alpha}{8}{uni24BD}
\DeclareListNumberGlyph{Alpha}{9}{uni24BE}
\DeclareListNumberGlyph{Alpha}{10}{uni24BF}
\DeclareListNumberGlyph{Alpha}{11}{uni24C0}
\DeclareListNumberGlyph{Alpha}{12}{uni24C1}
\DeclareListNumberGlyph{Alpha}{13}{uni24C2}
\DeclareListNumberGlyph{Alpha}{14}{uni24C3}
\DeclareListNumberGlyph{Alpha}{15}{uni24C4}
\DeclareListNumberGlyph{Alpha}{16}{uni24C5}
\DeclareListNumberGlyph{Alpha}{17}{uni24C6}
\DeclareListNumberGlyph{Alpha}{18}{uni24C7}
\DeclareListNumberGlyph{Alpha}{19}{uni24C8}
\DeclareListNumberGlyph{Alpha}{20}{uni24C9}
\DeclareListNumberGlyph{Alpha}{21}{uni24CA}
\DeclareListNumberGlyph{Alpha}{22}{uni24CB}
\DeclareListNumberGlyph{Alpha}{23}{uni24CC}
\DeclareListNumberGlyph{Alpha}{24}{uni24CD}
\DeclareListNumberGlyph{Alpha}{25}{uni24CE}
\DeclareListNumberGlyph{Alpha}{26}{uni24CF}
%
% alpha
\DeclareListNumberGlyph{alpha}{1}{uni24D0}
\DeclareListNumberGlyph{alpha}{2}{uni24D1}
\DeclareListNumberGlyph{alpha}{3}{uni24D2}
\DeclareListNumberGlyph{alpha}{4}{uni24D3}
\DeclareListNumberGlyph{alpha}{5}{uni24D4}
\DeclareListNumberGlyph{alpha}{6}{uni24D5}
\DeclareListNumberGlyph{alpha}{7}{uni24D6}
\DeclareListNumberGlyph{alpha}{8}{uni24D7}
\DeclareListNumberGlyph{alpha}{9}{uni24D8}
\DeclareListNumberGlyph{alpha}{10}{uni24D9}
\DeclareListNumberGlyph{alpha}{11}{uni24DA}
\DeclareListNumberGlyph{alpha}{12}{uni24DB}
\DeclareListNumberGlyph{alpha}{13}{uni24DC}
\DeclareListNumberGlyph{alpha}{14}{uni24DD}
\DeclareListNumberGlyph{alpha}{15}{uni24DE}
\DeclareListNumberGlyph{alpha}{16}{uni24DF}
\DeclareListNumberGlyph{alpha}{17}{uni24E0}
\DeclareListNumberGlyph{alpha}{18}{uni24E1}
\DeclareListNumberGlyph{alpha}{19}{uni24E2}
\DeclareListNumberGlyph{alpha}{20}{uni24E3}
\DeclareListNumberGlyph{alpha}{21}{uni24E4}
\DeclareListNumberGlyph{alpha}{22}{uni24E5}
\DeclareListNumberGlyph{alpha}{23}{uni24E6}
\DeclareListNumberGlyph{alpha}{24}{uni24E7}
\DeclareListNumberGlyph{alpha}{25}{uni24E8}
\DeclareListNumberGlyph{alpha}{26}{uni24E9}
%
% doublecircle
\DeclareListNumberGlyph{doublecircle}{1}{uni24F5}
\DeclareListNumberGlyph{doublecircle}{2}{uni24F6}
\DeclareListNumberGlyph{doublecircle}{3}{uni24F7}
\DeclareListNumberGlyph{doublecircle}{4}{uni24F8}
\DeclareListNumberGlyph{doublecircle}{5}{uni24F9}
\DeclareListNumberGlyph{doublecircle}{6}{uni24FA}
\DeclareListNumberGlyph{doublecircle}{7}{uni24FB}
\DeclareListNumberGlyph{doublecircle}{8}{uni24FC}
\DeclareListNumberGlyph{doublecircle}{9}{uni24FD}
\DeclareListNumberGlyph{doublecircle}{10}{uni24FE}
%
% darkcircle
\DeclareListNumberGlyph{darkcircle}{1}{uni2776}
\DeclareListNumberGlyph{darkcircle}{2}{uni2777}
\DeclareListNumberGlyph{darkcircle}{3}{uni2778}
\DeclareListNumberGlyph{darkcircle}{4}{uni2779}
\DeclareListNumberGlyph{darkcircle}{5}{uni277A}
\DeclareListNumberGlyph{darkcircle}{6}{uni277B}
\DeclareListNumberGlyph{darkcircle}{7}{uni277C}
\DeclareListNumberGlyph{darkcircle}{8}{uni277D}
\DeclareListNumberGlyph{darkcircle}{9}{uni277E}
\DeclareListNumberGlyph{darkcircle}{10}{uni277F}
\DeclareListNumberGlyph{darkcircle}{11}{uni24EB}
\DeclareListNumberGlyph{darkcircle}{12}{uni24EC}
\DeclareListNumberGlyph{darkcircle}{13}{uni24ED}
\DeclareListNumberGlyph{darkcircle}{14}{uni24EE}
\DeclareListNumberGlyph{darkcircle}{15}{uni24EF}
\DeclareListNumberGlyph{darkcircle}{16}{uni24F0}
\DeclareListNumberGlyph{darkcircle}{17}{uni24F1}
\DeclareListNumberGlyph{darkcircle}{18}{uni24F2}
\DeclareListNumberGlyph{darkcircle}{19}{uni24F3}
\DeclareListNumberGlyph{darkcircle}{20}{uni24F4}
%
% Roman
\DeclareListNumberGlyph{Roman}{1}{uni2160}
\DeclareListNumberGlyph{Roman}{2}{uni2161}
\DeclareListNumberGlyph{Roman}{3}{uni2162}
\DeclareListNumberGlyph{Roman}{4}{uni2163}
\DeclareListNumberGlyph{Roman}{5}{uni2164}
\DeclareListNumberGlyph{Roman}{6}{uni2165}
\DeclareListNumberGlyph{Roman}{7}{uni2166}
\DeclareListNumberGlyph{Roman}{8}{uni2167}
\DeclareListNumberGlyph{Roman}{9}{uni2168}
\DeclareListNumberGlyph{Roman}{10}{uni2169}
\DeclareListNumberGlyph{Roman}{11}{uni216A}
\DeclareListNumberGlyph{Roman}{12}{uni216B}
%
% roman
\DeclareListNumberGlyph{roman}{1}{uni2170}
\DeclareListNumberGlyph{roman}{2}{uni2171}
\DeclareListNumberGlyph{roman}{3}{uni2172}
\DeclareListNumberGlyph{roman}{4}{uni2173}
\DeclareListNumberGlyph{roman}{5}{uni2174}
\DeclareListNumberGlyph{roman}{6}{uni2175}
\DeclareListNumberGlyph{roman}{7}{uni2176}
\DeclareListNumberGlyph{roman}{8}{uni2177}
\DeclareListNumberGlyph{roman}{9}{uni2178}
\DeclareListNumberGlyph{roman}{10}{uni2179}
\DeclareListNumberGlyph{roman}{11}{uni217A}
\DeclareListNumberGlyph{roman}{12}{uni217B}
%
\newcommand\libertineenumerate[1][circle]{%
  \ifnum \@enumdepth >\thr@@\@toodeep\else
    \advance\@enumdepth\@ne
    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
      \expandafter
      \list
        {\useListNumberGlyph[#1]{\arabic{\@enumctr}}}
        {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
  \fi}
\let\endlibertineenumerate =\endlist
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\@namedef{libertine@initial@S@0}{\libertineInitialGlyph{zero}}
\@namedef{libertine@initial@S@1}{\libertineInitialGlyph{one}}
\@namedef{libertine@initial@S@2}{\libertineInitialGlyph{two}}
\@namedef{libertine@initial@S@3}{\libertineInitialGlyph{three}}
\@namedef{libertine@initial@S@4}{\libertineInitialGlyph{four}}
\@namedef{libertine@initial@S@5}{\libertineInitialGlyph{five}}
\@namedef{libertine@initial@S@6}{\libertineInitialGlyph{six}}
\@namedef{libertine@initial@S@7}{\libertineInitialGlyph{seven}}
\@namedef{libertine@initial@S@8}{\libertineInitialGlyph{eight}}
\@namedef{libertine@initial@S@9}{\libertineInitialGlyph{nine}}
\@namedef{libertine@initial@S@A}{\libertineInitialGlyph{A}}
\@namedef{libertine@initial@S@B}{\libertineInitialGlyph{B}}
\@namedef{libertine@initial@S@C}{\libertineInitialGlyph{C}}
\@namedef{libertine@initial@S@D}{\libertineInitialGlyph{D}}
\@namedef{libertine@initial@S@E}{\libertineInitialGlyph{E}}
\@namedef{libertine@initial@S@F}{\libertineInitialGlyph{F}}
\@namedef{libertine@initial@S@G}{\libertineInitialGlyph{G}}
\@namedef{libertine@initial@S@H}{\libertineInitialGlyph{H}}
\@namedef{libertine@initial@S@I}{\libertineInitialGlyph{I}}
\@namedef{libertine@initial@S@J}{\libertineInitialGlyph{J}}
\@namedef{libertine@initial@S@K}{\libertineInitialGlyph{K}}
\@namedef{libertine@initial@S@L}{\libertineInitialGlyph{L}}
\@namedef{libertine@initial@S@M}{\libertineInitialGlyph{M}}
\@namedef{libertine@initial@S@N}{\libertineInitialGlyph{N}}
\@namedef{libertine@initial@S@O}{\libertineInitialGlyph{O}}
\@namedef{libertine@initial@S@P}{\libertineInitialGlyph{P}}
\@namedef{libertine@initial@S@Q}{\libertineInitialGlyph{Q}}
\@namedef{libertine@initial@S@R}{\libertineInitialGlyph{R}}
\@namedef{libertine@initial@S@S}{\libertineInitialGlyph{S}}
\@namedef{libertine@initial@S@T}{\libertineInitialGlyph{T}}
\@namedef{libertine@initial@S@U}{\libertineInitialGlyph{U}}
\@namedef{libertine@initial@S@V}{\libertineInitialGlyph{V}}
\@namedef{libertine@initial@S@W}{\libertineInitialGlyph{W}}
\@namedef{libertine@initial@S@X}{\libertineInitialGlyph{X}}
\@namedef{libertine@initial@S@Y}{\libertineInitialGlyph{Y}}
\@namedef{libertine@initial@S@Z}{\libertineInitialGlyph{Z}}
%
\@namedef{libertine@initial@M@A}{\libertineInitialGlyph{uni24B6}}
\@namedef{libertine@initial@M@B}{\libertineInitialGlyph{uni24B7}}
\@namedef{libertine@initial@M@C}{\libertineInitialGlyph{uni24B8}}
\@namedef{libertine@initial@M@D}{\libertineInitialGlyph{uni24B9}}
\@namedef{libertine@initial@M@E}{\libertineInitialGlyph{uni24BA}}
\@namedef{libertine@initial@M@F}{\libertineInitialGlyph{uni24BB}}
\@namedef{libertine@initial@M@G}{\libertineInitialGlyph{uni24BC}}
\@namedef{libertine@initial@M@H}{\libertineInitialGlyph{uni24BD}}
\@namedef{libertine@initial@M@I}{\libertineInitialGlyph{uni24BE}}
\@namedef{libertine@initial@M@J}{\libertineInitialGlyph{uni24BF}}
\@namedef{libertine@initial@M@K}{\libertineInitialGlyph{uni24C0}}
\@namedef{libertine@initial@M@L}{\libertineInitialGlyph{uni24C1}}
\@namedef{libertine@initial@M@M}{\libertineInitialGlyph{uni24C2}}
\@namedef{libertine@initial@M@N}{\libertineInitialGlyph{uni24C3}}
\@namedef{libertine@initial@M@O}{\libertineInitialGlyph{uni24C4}}
\@namedef{libertine@initial@M@P}{\libertineInitialGlyph{uni24C5}}
\@namedef{libertine@initial@M@Q}{\libertineInitialGlyph{uni24C6}}
\@namedef{libertine@initial@M@R}{\libertineInitialGlyph{uni24C7}}
\@namedef{libertine@initial@M@S}{\libertineInitialGlyph{uni24C8}}
\@namedef{libertine@initial@M@T}{\libertineInitialGlyph{uni24C9}}
\@namedef{libertine@initial@M@U}{\libertineInitialGlyph{uni24CA}}
\@namedef{libertine@initial@M@V}{\libertineInitialGlyph{uni24CB}}
\@namedef{libertine@initial@M@W}{\libertineInitialGlyph{uni24CC}}
\@namedef{libertine@initial@M@X}{\libertineInitialGlyph{uni24CD}}
\@namedef{libertine@initial@M@Y}{\libertineInitialGlyph{uni24CE}}
\@namedef{libertine@initial@M@Z}{\libertineInitialGlyph{uni24CF}}
%
\DeclareRobustCommand*\LInitialS[1]{\@nameuse{libertine@initial@S@#1}}
\DeclareRobustCommand*\LInitialM[1]{\@nameuse{libertine@initial@M@#1}}
\DeclareRobustCommand*\LInitialD[1]{\libertineDisplay#1}
\DeclareRobustCommand*\BInitialO[1]{\biolinumOutline#1}
\DeclareRobustCommand*\BInitialS[1]{\biolinumShadow#1}
%
\newcommand*\LlettrineS[2][3]{\lettrine[lines=#1,nindent=0pt]{\LInitialS{#2}}{}}
\newcommand*\LlettrineM[2][3]{\lettrine[lines=#1,nindent=0pt]{\LInitialM{#2}}{}}
\newcommand*\LlettrineDline{3}
\newcommand*\LlettrineD[1]{\lettrine[lines=\LlettrineDline,nindent=0pt]{\LInitialD{#1}}{}}
\newcommand*\BlettrineOline{3}
\newcommand*\BlettrineO[1]{\lettrine[lines=\BlettrineOline,nindent=0pt]{\BInitialO{#1}}{}}
\newcommand*\BlettrineSline{3}
\newcommand*\BlettrineS[1]{\lettrine[lines=\BlettrineSline,nindent=0pt]{\BInitialS{#1}}{}}
%
\endinput
