| 1 |
\ProvidesPackage{tikzlings-list}[2025/12/11 version v2.5 Helper package for the tikzlings] |
| 2 |
|
| 3 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4 |
% |
| 5 |
% List of all TikZlings |
| 6 |
% |
| 7 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 8 |
|
| 9 |
\ExplSyntaxOn |
| 10 |
|
| 11 |
\clist_const:Nn \c__tikzlings_list_clist |
| 12 |
{ |
| 13 |
anteater / anteaters, |
| 14 |
ape / apes, |
| 15 |
bat / bats, |
| 16 |
bear / bears, |
| 17 |
bee / bees, |
| 18 |
bug / bugs, |
| 19 |
cat / cats, |
| 20 |
chicken / chickens, |
| 21 |
coati / coatis, |
| 22 |
dog / dogs, |
| 23 |
elephant / elephants, |
| 24 |
hippo / hippos, |
| 25 |
koala / koalas, |
| 26 |
marmot / marmots, |
| 27 |
meerkat / meerkats, |
| 28 |
mouse / mice, |
| 29 |
moles / moles, % avoid conflict with siunitx's \mole |
| 30 |
owl / owls, |
| 31 |
panda / pandas, |
| 32 |
penguin / penguins, |
| 33 |
pig / pigs, |
| 34 |
rhino / rhinos, |
| 35 |
sheep / sheep, |
| 36 |
sloth / sloths, |
| 37 |
snowman / snowmen, |
| 38 |
squirrel / squirrels, |
| 39 |
turkey / turkeys, |
| 40 |
wolf / wolves |
| 41 |
} |
| 42 |
|
| 43 |
\clist_new:N \g__tikzlings_names_clist |
| 44 |
\clist_new:N \g__tikzlings_packages_clist |
| 45 |
|
| 46 |
% Store the two “columns” of \c__tikzlings_list_clist in these variables |
| 47 |
\clist_map_inline:Nn \c__tikzlings_list_clist |
| 48 |
{ |
| 49 |
\seq_set_split:Nnn \l_tmpa_seq { / } {#1} |
| 50 |
\clist_gput_right:Nx \g__tikzlings_names_clist |
| 51 |
{ \seq_item:Nn \l_tmpa_seq { 1 } } |
| 52 |
\clist_gput_right:Nx \g__tikzlings_packages_clist |
| 53 |
{ \seq_item:Nn \l_tmpa_seq { 2 } } |
| 54 |
} |
| 55 |
|
| 56 |
% Define aliases that can be used without \ExplSyntaxOn |
| 57 |
\cs_new_eq:NN \tikzlings@clist \c__tikzlings_list_clist |
| 58 |
\cs_new_eq:NN \tikzlings@names@clist \g__tikzlings_names_clist |
| 59 |
\cs_new_eq:NN \tikzlings@packages@clist \g__tikzlings_packages_clist |
| 60 |
|
| 61 |
\ExplSyntaxOff |