summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/libertine/libertinekey.sty
blob: 3b082d926098dea3b43707ea917471f39c59da82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
% LaTeX-Package for libertine key
%
% $Id: libertinekey.sty 58 2010-08-31 08:30:31Z michael $
%
% Michael Niedermair m.g.n@gmx.de
%
% (License GPL)
%
\ProvidesPackage{libertinekey}[2010/08/30 - 4.8.7: Font libertine Key - (License GPL) Michael Niedermair]
%
\RequirePackage{libertine}
%
\ifxetex
  \newfontfamily\biolinumkey[Mapping=tex-text]{Linux Biolinum Kb O}
  \DeclareRobustCommand*\biolinumKeyGlyph[1]{{%
    \biolinumkey%
    \@tempcnta=\XeTeXglyphindex "#1"\relax%
    \ifnum\@tempcnta>0%
      \XeTeXglyph\@tempcnta%
    \fi
  }}
\else
  \def\biolinumkey{\fontfamily{fxk}\selectfont}
  \DeclareRobustCommand*\biolinumKeyGlyph[1]{{\@nameuse{fxk@#1}}}
  %
   \ifluatex
      \input{fxkuni.inc}
   \else
      \input{fxk.inc}
   \fi
  %
\fi
%
\DeclareRobustCommand*\LKey[1]{\biolinumKeyGlyph{#1}}
\DeclareRobustCommand*\LKeyTux{\biolinumKeyGlyph{T_u_x}}
\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}}
\@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*\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
%
\endinput