diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-10 21:24:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-10 21:24:58 +0000 |
commit | c99fbd6f5717513c4b6b7e37ad3a3d676e08b49c (patch) | |
tree | 24f4c5f8bb91c9a93b4937909ee8cad3199aec44 /Master/texmf-dist/tex/latex/projlib/projlib-logo.sty | |
parent | 356136ce175be2673f9fec40d48937ae6d494605 (diff) |
projlib (10mar22)
git-svn-id: svn://tug.org/texlive/trunk@62600 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib/projlib-logo.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/projlib-logo.sty | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty new file mode 100644 index 00000000000..d9ffb5c1ed2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty @@ -0,0 +1,100 @@ +\NeedsTeXFormat{LaTeX2e}[2020-10-01] +\RequirePackage{l3keys2e} +\ProvidesExplPackage + {projlib-logo} + {2022/02/24} {} + {The ProjLib logo} + +\keys_define:nn { projlib-logo } + { + , draft .bool_set:N = \l__projlib_logo_fast_bool + , draft .initial:n = { false } + , fast .bool_set:N = \l__projlib_logo_fast_bool + , unknown .code:n = {} + } +\ProcessKeysOptions { projlib-logo } + +\bool_if:NT \l__projlib_logo_fast_bool + { + \DeclareRobustCommand * \ProjLib + { + \group_begin: + \normalfont ProjLib + \group_end: + } + \endinput + } + +\cs_if_exist:cTF { fontspec } + { + \newfontface \__projlib_logo_font: { LinBiolinum_R.otf } + } + { + \RequirePackage [T1] { fontenc } + \cs_gset:Nn \__projlib_logo_font: + { \fontfamily { LinuxBiolinumT-TLF } \selectfont } + } + +\tl_new:N \g__projlib_logo_sigma_j_tl +\tl_gset:Nn \g__projlib_logo_sigma_j_tl + { + \vbox:n + { + \offinterlineskip + \hbox_overlap_center:n + { + \skip_horizontal:n { 0.75ex } + \hbox_set:Nn \l_tmpa_box { \usefont{U}{zeur}{b}{n} \symbol{"06} } + \box_rotate:Nn \l_tmpa_box { -10 } + \box_scale:Nnn \l_tmpa_box {.4} {.4} + \box_use:N \l_tmpa_box + } + \skip_vertical:n { 0.15ex } + \hbox:n { \j } + } + } + +% \RequirePackage { xcolor } +% \cs_new_protected:Nn \projlib_logo_generic:n +% { +% \group_begin: +% \normalfont +% \__projlib_logo_font: +% \textcolor { blue!55!cyan } { P } +% \textcolor { blue!45!cyan } { r } +% \textcolor { blue!30!cyan } { o } +% \textcolor { green!70!black!70 } { #1 } +% \textcolor { red!20!yellow } { L } +% \textcolor { red!40!yellow } { i } +% \textcolor { red!55!yellow } { b } +% \group_end: +% } +\cs_new_protected:Nn \projlib_logo_generic:n + { + \group_begin: + \normalfont + \__projlib_logo_font: + \color_group_begin: + \color_select:n { blue!60!cyan } { P } + \color_select:n { blue!45!cyan } { r } + \color_select:n { blue!30!cyan } { o } + \color_select:n { green!70!black!70 } { #1 } + \color_select:n { red!20!yellow } { L } + \color_select:n { red!40!yellow } { i } + \color_select:n { red!60!yellow } { b } + \color_group_end: + \group_end: + } + +\DeclareRobustCommand * \ProjLib + { + \projlib_logo_generic:n { \g__projlib_logo_sigma_j_tl } + } +\DeclareRobustCommand * \ProjLibText + { + \projlib_logo_generic:n { j } + } + +\endinput +%% +%% End of file `projlib-logo.sty'. |