diff options
author | Karl Berry <karl@freefriends.org> | 2019-02-08 22:55:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-02-08 22:55:22 +0000 |
commit | 3031cbd848546746dd3545c69b200dd0756c87ff (patch) | |
tree | b80de84a6e4204faafe86212ec77711a592044ff /Master/texmf-dist/tex | |
parent | 5ec5f19d019852c1f26cfc8fe2822ade4a59c0ee (diff) |
tikzsymbols (8feb19)
git-svn-id: svn://tug.org/texlive/trunk@49975 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty b/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty index fbd5b2d4705..5cb16aa01ef 100644 --- a/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty +++ b/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty @@ -6,7 +6,7 @@ %% %% tikzsymbols.dtx (with options: `package') %% -%% Copyright (C) 2013--2018 by Ben Vitecek (current Maintainer) +%% Copyright (C) 2013--2019 by Ben Vitecek (current Maintainer) %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c @@ -36,8 +36,8 @@ } \ProvidesExplPackage {tikzsymbols} - {2018/05/16} - {4.10a} + {2019/02/08} + {4.10c} {Some symbols created using tikz and LaTeX3.} \@ifpackageloaded { tikz } {} { \RequirePackage { tikz } } \@ifpackageloaded { xcolor } {} { \RequirePackage { xcolor } } @@ -57,7 +57,7 @@ \tl_new:N \l__tikzsymbols_scale_abs_tl \tl_const:Nn \c__tikzsymbols_leaf_tl { leaf } \tl_const:Nn \c__tikzsymbols_black_tl { black } -\tl_gset:Nn \l__tikzsymbols_tikzsymbols_after_symbol_tl { \xspace } +\tl_set:Nn \l__tikzsymbols_tikzsymbols_after_symbol_tl { \xspace } \tl_new:N \l__tikzsymbols_save_global_scale_for_later_because_no_better_idea_tl \tl_new:N \l__tikzsymbols_symbol_name_tl \tl_new:N \l__tikzsymbols_symbol_options_clist @@ -409,7 +409,7 @@ } \cs_new:Npn \__tikzsymbols_Declare_Document_Commands:nnnn #1#2#3#4 { - \clist_put_right:Nn + \clist_gput_right:Nn \g_tikzsymbols_list_of_printing_cooking_with_argument_commands_clist { \cs{#1} & \cs{#2} & \oarg{scale} & \tikzsymbolsuse{#1} \\ @@ -1147,17 +1147,17 @@ /__tikzsymbols , x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l__tikzsymbols_scale_abs_tl ,scale=#1 ] - \fp_compare:nNnT {#5} < { \c_zero } + \fp_compare:nNnT {#5} < { 0 } { \__tikzsymbols_cChangey:nnn {#5} {#2} {#3} (0,0) circle [radius=0.33]; } - \fp_compare:nNnT {#5} > { \c_zero } + \fp_compare:nNnT {#5} > { 0 } { \__tikzsymbols_cChangey:nnn {#5} {#4} {#3} (0,0) circle [radius=0.33]; } - \fp_compare:nNnT {#5} = { \c_zero } + \fp_compare:nNnT {#5} = { 0 } { \filldraw [fill=#3] (0,0) circle [radius=0.33]; } @@ -1201,17 +1201,17 @@ /__tikzsymbols , x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l__tikzsymbols_scale_abs_tl ,scale=#1 ] - \fp_compare:nNnT {#5} < { \c_zero } + \fp_compare:nNnT {#5} < { 0 } { \__tikzsymbols_dcChangey:nnn {#5} {#2} {#3} (0,0) circle [radius=0.33]; } - \fp_compare:nNnT {#5} > { \c_zero } + \fp_compare:nNnT {#5} > { 0 } { \__tikzsymbols_dcChangey:nnn {#5} {#4} {#3} (0,0) circle [radius=0.33]; } - \fp_compare:nNnT {#5} = { \c_zero } + \fp_compare:nNnT {#5} = { 0 } { \shade[ball ~ color=#3] (0,0) circle [radius=0.33]; } @@ -1336,9 +1336,8 @@ \filldraw[fill=#2,line ~ width=0.12ex* \l__tikzsymbols_scale_abs_tl ] (0,0) circle [radius=0.33]; \draw (-0.09,0.06) .. controls (-0.11,0.16) and (-0.17,0.16) .. +(-0.1,0); \draw (0.09,0.06) .. controls (0.11,0.16) and (0.17,0.16) .. +(0.1,0); - \filldraw[fill=#3,rounded ~ corners=0.1ex* \l__tikzsymbols_scale_abs_tl , yshift=-0.5] + \filldraw[fill=#3,rounded ~ corners=0.1ex* \l__tikzsymbols_scale_abs_tl , yshift=-0.06ex] (-0.22,-0.0) .. controls (-0.13,-0.23) and (0.13,-0.23) .. (0.22,-0.0) -- cycle; - \end{tikzpicture}% } } @@ -1364,7 +1363,7 @@ \shade [ ball ~ color=#3, rounded ~ corners=0.1ex* \l__tikzsymbols_scale_abs_tl , - yshift=-0.3 + yshift=-0.028ex ] (-0.25,-0.0) .. controls (-0.13,-0.26) and (0.13,-0.26) .. (0.25,-0.0) -- cycle; \end{tikzpicture}% @@ -2551,8 +2550,8 @@ \bool_if:NTF \l__tikzsymbols_if_opt_draft_bool { \__tikzsymbols_create_draftbox:nn - { 0.639976ex * \l__tikzsymbols_scale_abs_tl } - { (1.255ex+2.2pt) * \l__tikzsymbols_scale_abs_tl } + { 0.63998ex * \l__tikzsymbols_scale_abs_tl } + { 1.754993ex * \l__tikzsymbols_scale_abs_tl } }{ \begin{tikzpicture} [ @@ -2562,9 +2561,9 @@ \draw[rounded ~ corners=0.04ex* \l__tikzsymbols_scale_abs_tl ] (0,0) -- (0.2,0) -- +(0,1) -- (0,1) -- cycle; \draw[line ~ width=0.05ex* \l__tikzsymbols_scale_abs_tl ] (0.1,1) -- (0.1,1.2); - \foreach \x in { -0.4 , 0.2 } - \draw[xshift=0.95, yshift=2.2, line ~ width=0.04ex* \l__tikzsymbols_scale_abs_tl ] - (-0.1,0.6) .. controls (\x,0.8) and (-0.1,1) .. (-0.1,1.2); + \foreach \x in { -0.2 , 0.4 } + \draw[line ~ width=0.04ex* \l__tikzsymbols_scale_abs_tl ] + (0.1,1.1) .. controls (\x,1.3) and (0.1,1.5) .. (0.1,1.7); \end{tikzpicture}% } } @@ -2577,8 +2576,8 @@ \bool_if:NTF \l__tikzsymbols_if_opt_draft_bool { \__tikzsymbols_create_draftbox:nn - { 1.58612ex * \l__tikzsymbols_scale_abs_tl } - { 1.652901ex * \l__tikzsymbols_scale_abs_tl } + { 1.576ex * \l__tikzsymbols_scale_abs_tl } + { 1.640942ex * \l__tikzsymbols_scale_abs_tl } }{ \begin{tikzpicture} [ @@ -2588,27 +2587,27 @@ ] \fill (-0.05,0) -- (0.05,0) -- (0.05,0.95) -- (-0.05,0.95) -- cycle; \fill (-0.74,0.7) -- (0.19,0.7) -- (0.19,0.8) -- (-0.74,0.8) -- cycle; - \fill[rotate=-20, xshift=-1.3, yshift=-0.1] + \fill[rotate=-20, xshift=-0.275ex, yshift=-0.02ex] (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle; - \fill[rotate=-70, xshift=-3.3, yshift=-2.3] + \fill[rotate=-70, xshift=-0.7ex, yshift=-0.49ex] (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle; - \fill[rotate=135, xshift=2.5, yshift=-3.8] + \fill[rotate=135, xshift=0.53ex, yshift=-0.805ex] (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle; \draw [ - rotate=-45, xshift=-2.6, yshift=1.5, + rotate=-45, xshift=-0.56ex, yshift=0.32ex, line ~ width=0.04ex* \l__tikzsymbols_scale_abs_tl , x=0.5ex, y=0.5ex ] (-0.1,0.29) .. controls (-0.7,0.6) and (0,1.2) .. (0.05,1.7); \draw [ - rotate=-45, xshift=-2.1,yshift=1.5, + rotate=-45, xshift=-0.455ex,yshift=0.32ex, line ~ width=0.04ex* \l__tikzsymbols_scale_abs_tl , x=0.5ex, y=0.5ex ] (-0.1,0.29) .. controls (0.7,0.6) and (-0.1,1.2) .. (-0.15,1.7); - \draw[rotate=-45, xshift=-2.5] (-0.1,0.29) .. controls + \draw[rotate=-45, xshift=-0.53ex] (-0.1,0.29) .. controls (-0.7,0.6) and (0,1.2) .. (0,1.5); - \draw[rotate=-45, xshift=-2] (-0.1,0.29) .. controls + \draw[rotate=-45, xshift=-0.424ex] (-0.1,0.29) .. controls (0.7,0.6) and (-0.1,1.2) .. (-0.1,1.5); \end{tikzpicture}% } |