diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty b/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty index b4f071b9bce..f038974a904 100644 --- a/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty +++ b/Master/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty @@ -25,7 +25,7 @@ %% and the derived file tikzsymbols.sty. \@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} \@ifpackageloaded{expl3}{}{\RequirePackage{expl3}} -\@ifpackagelater{expl3}{2016/03/28} +\@ifpackagelater{expl3}{2016/11/21} {} {% \PackageError { tikzsymbols }{ Support~package~expl3~too~old } @@ -38,8 +38,8 @@ } \ProvidesExplPackage {tikzsymbols} - {2016/04/04} - {4.0} + {2016/12/26} + {4.01} {Some symbols created using tikz and LaTeX3.} \@ifpackageloaded { tikz } {} { \RequirePackage { tikz } } \@ifpackageloaded { xcolor } {} { \RequirePackage { xcolor } } @@ -829,6 +829,34 @@ } } } +\__tikzsymbols_Declare_Document_Commands:nnnn { Nudelholz } { rollingpin } { O{1} } + { + \__tikzsymbols_if_savebox_undefined_define_fi_and_use_it_afterwards:nT { Nudelholz_#1 } + { + \__tikzsymbols_set_scale_abs_tl:n {#1} + \bool_if:NTF \g__tikzsymbols_if_opt_draft_bool + { + \__tikzsymbols_create_draftbox:nn + { 4.508ex * \l__tikzsymbols_scale_abs_tl }%% + { 0.9ex * \l__tikzsymbols_scale_abs_tl } + }{ + \begin{tikzpicture} + [ + x=0.8ex, y=0.8ex, scale=#1, line ~ width=0.1ex * \l__tikzsymbols_scale_abs_tl , + ] + \draw[rounded ~ corners=0.10ex*\l__tikzsymbols_scale_abs_tl] (0,0) rectangle (3,1); + \draw[rounded ~ corners=0.15ex*\l__tikzsymbols_scale_abs_tl] + (3,0.75) -- (3.25,0.6) -- (3.75,0.7) -- (4.25,0.6) + (3,0.25) -- ( 3.25,0.4 ) -- (3.75,0.3) -- (4.25,0.4); + \draw (4.25,0.5) ellipse [x ~ radius=0.01, y ~ radius=0.1]; + \draw[rounded ~ corners=0.15ex*#1] (-0,0.75) -- (-0.25,0.6) -- (-0.75,0.7) + -- (-1.25,0.6) + (-0,0.25) -- ( -0.25,0.4 ) -- (-0.75,0.3) -- (-1.25,0.4); + \draw (-1.25,0.5) ellipse [x ~ radius=0.01, y ~ radius=0.1]; + \end{tikzpicture} + } + } + } \clist_set_eq:NN \g_tikzsymbols_list_of_cooking_commands_clist \l__tikzsymbols_tmpa_clist \clist_clear:N \l__tikzsymbols_tmpa_clist \__tikzsymbols_Declare_Document_Command:nnn { Sadey } { O{1} O{none} } |