Debian Codegraph @

texmf-dist/doc/latex/simplesystemtex/sources/logo.code.tex

raw
1 %<*package>
2
3 \NewDocumentCommand \SimpleSystemTeX {d[]} {
4 \IfValueTF {#1} {
5 \str_case:nn {#1} {
6 {rm} {
7 \,$\mathrm{S^{imple}\sb{ystem}}$\textrm{\TeX}\,
8 }
9 {bf} {
10 \,$\mathbf{S^{imple}\sb{ystem}}$\textbf{\TeX}\,
11 }
12 }
13 } {
14 \,$\mathrm{S^{imple}\sb{ystem}}$\textrm{\TeX}\,
15 }
16 }
17
18 \ExplSyntaxOff
19
20 \def \plotsetting {
21 \draw[
22 black,
23 ultra thick,
24 domain = 0:360,
25 smooth,
26 samples = 100
27 ]
28 }
29 \NewDocumentCommand \SimpleSystem {} {
30 \begin{tikzpicture} [scale=0.3]
31 \plotsetting
32 plot (\x: {3.14159 - 0.36788 * cos (5 * \x)});
33 \plotsetting
34 plot (\x: {3.14159 + 0.36788 * cos (5 * \x)});
35 \end{tikzpicture}
36 }
37 \NewDocumentCommand \SimpleSystemCover {m d[]} {
38 \begin{center}%
39 \vspace*{\fill}%
40 \SimpleSystem%
41 \par #1%
42 \IfValueT {#2} {\par #2}%
43 \vspace*{\fill}%
44 \end{center}%
45 }
46
47 \ExplSyntaxOn
48
49 %</package>