Debian Codegraph @

texmf-dist/doc/latex/pgf-periodictable/manualfiles/pgf-PeriodicTableManual_exerciselayout.tex

raw
1 \vfill%
2 \subsubsection{\texorpdfstring{\ding{224} \itshape Exercise layout}{Exercise layout}}%
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 The \red{keys} \hypertarget{exMODE}{described in this} section enable the \textit{exercise layout} of the Periodic Table, \ie, in this mode the \textit{structure} of the Periodic Table is drawn, but there are only a few contents available in the cells.
5 % only cells=false
6 \pgfPTMoption{4}{only cells}{false}%
7 {When set to \red{true} the Periodic Table is drawn with only the cells without any contents.
8 \\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
9 \\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show period\\ numbers=false, show group numbers=false, show legend=false, show MNM line=false}};}
10 }%
11 \vfill\newpage%\\ [5pt]
12 \pgfPTMmacrobox{pgfPT}[only cells]%
13 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells]}}%
14 \\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,54},only cells]%
15 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,54},only cells]}}%
16 \\ [5pt]\pgfPTendoption%
17 % only cells plus Z=false
18 \vfill%
19 \pgfPTMoption{4}{only cells plus Z}{false}%
20 {When set to \red{true} the Periodic Table is drawn with only the cells without any contents, except the atomic number (Z).
21 \\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
22 \\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show period\\ numbers=false, show group numbers=false, show legend=false, show MNM line=false}};}
23 }%
24 \vfill\newpage%\\ [5pt]
25 \pgfPTMmacrobox{pgfPT}[only cells plus Z]%
26 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells plus Z]}}%
27 \\ [10pt]\pgfPTMmacrobox{pgfPT}[only cells plus Z,IUPAC=false]%
28 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells plus Z,IUPAC=false]}}%
29 \\ [5pt]\pgfPTendoption%
30 \vfill%
31 % only cells with periods and group numbers=false
32 \pgfPTMoption{4}{only cells with periods and group numbers}{false}%
33 {When set to \red{true} the Periodic Table is drawn with only the cells without any contents. The period and group numbers are shown.
34 \\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
35 \\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show legend=false, show MNM line=false}};}
36 }%
37 \vfill%
38 \newpage%\\ [5pt]
39 \pgfPTMmacrobox{pgfPT}[Z list={1,...,36},only cells with periods and group numbers]%
40 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},only cells with periods and group numbers]}}%
41 \\ [5pt]\pgfPTendoption%
42 \vfill%
43 % only cells with periods and group numbers plus Z=false
44 \pgfPTMoption{4}{only cells with periods and group numbers plus Z}{false}%
45 {When set to \red{true} the Periodic Table is drawn with only the cells without any contents, except the atomic number (Z). The period and group numbers are shown.
46 \\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
47 \\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show legend=false, show MNM line=false}};}
48 }%
49 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},only cells with periods and group numbers plus Z]%
50 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},only cells with periods and group numbers plus Z]}}%
51 \\ [5pt]\pgfPTendoption%
52 \vfill%
53 % Z exercise list
54 \pgfPTMoption{4}{Z exercise list}{\{\}}%
55 {Sets the list of atomic numbers to display as letters instead of their chemicals symbols.
56 \\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTES}}:
57 \begin{itembar}
58 \item When values are provided to the \red{Z exercise list} and none of the above \textit{exercise layout} is set, the \textit{exercise layout} \red{only cells} is used.
59 \item The line dots -- \myldots\ -- notation is not available in the \textit{Z exercise list}, mainly to avoid \textit{errors} on the desired list. For example \red{\{1,...,4,8,...,16\}} is expanded by the \texttt{\normalsize\textbackslash foreach} statement of \txttikz{} to \red{\{\foreach \n in {1,...,4,8,...,16}{\n\ifnum\n<15,\fi}\}} instead of \red{\{1,2,3,4,8,9,10,11,12,13,14,15,16\}}. For achieving that purpose it must be typed \red{\{1,...,4,8,9,...,16\}}. Since the goal of \textit{Z exercise list} is typing only a list of specific elements, it will often be easier to type element by element.
60 \end{itembar}
61 };}
62 }%
63 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36}]%
64 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
65 Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}]}}%
66 \newpage%\\ [10pt]
67 \pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87},
68 cell size=3em,Z list={1,...,36},only cells with periods and group numbers]%
69 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},only cells with periods and group numbers,%,exercise mode
70 Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}]}}%
71 \\ [5pt]\pgfPTendoption%
72 % exercise list in capitals
73 \pgfPTMoption{4}{exercise list in capitals}{true}%
74 {When set to \red{true} the \textit{letters} are typed in capitals, otherwise they are typed as lowercase letters.
75 }%
76 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exercise list in capitals=false]%
77 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exercise list in capitals=false]}}%
78 \\ [5pt]\pgfPTendoption%
79 % exercise list color
80 \pgfPTMoption{4}{exercise list color}{black}%
81 {Sets the color of the displayed \textit{letters} in the \textit{exercise layout}.
82 }%
83 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},
84 exercise list color=blue!50!black]%
85 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
86 Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87},exercise list color=blue!50!black]}}%
87 \\ [5pt]\pgfPTendoption%
88 % exercise list font
89 \pgfPTMoption{4}{exercise list font}{\string\bfseries\string\large}%
90 {Sets the font of the displayed \textit{letters} in the \textit{exercise layout}.
91 }%
92 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},
93 exercise list font=\string\fontfamily{fmm}\string\selectfont]%
94 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
95 Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87},exercise list font=\fontfamily{fmm}\selectfont]}}%
96 \\ [5pt]\pgfPTendoption%
97 % STYLES:
98 % cells+Z
99 \newpage\ \\ [-25pt]%
100 \pgfPTMstyletxt{4}{cells+Z}{no value}%
101 {Style to set the key \red{only cells plus Z} to true.
102 }%
103 \\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+Z]%
104 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+Z]}}%
105 \\ [5pt]\pgfPTendstyle%
106 \vfill%
107 % cells+p+g
108 \pgfPTMstyletxt{4}{cells+p+g}{no value}%
109 {Style to set the key \red{only cells with periods and group numbers} to true.
110 }%
111 \\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+p+g]%
112 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+p+g]}}%
113 \\ [5pt]\pgfPTendstyle%
114 % cells+p+g+Z
115 \newpage\ \\ [-25pt]%
116 \pgfPTMstyletxt{4}{cells+p+g+Z}{no value}%
117 {Style to set the key \red{only cells with periods and group numbers plus Z} to true.
118 }%
119 \\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+p+g+Z]%
120 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+p+g+Z]}}%
121 \\ [5pt]\pgfPTendstyle%
122 % exCap
123 \pgfPTMstyletxt{4}{exnocaps}{no value}%
124 {Style to set the key \red{exercise list in capitals} to false.
125 }%
126 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exnocaps]%
127 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exnocaps]}}%
128 \\ [5pt]\pgfPTendstyle%
129 % exColor
130 \pgfPTMstyle{4}{exColor}{black}%
131 {Style to set the key \red{exercise list color}.
132 }%
133 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exColor=red!50!black]%
134 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exColor=red!50!black]}}%
135 \\ [5pt]\pgfPTendstyle%
136 % exFont
137 \newpage\ \\ [-25pt]%
138 \pgfPTMstyle{4}{exFont}{\string\bfseries\string\large}%
139 {Style to set the key \red{exercise list font}.
140 }%
141 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exFont=\string\Large]%
142 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},exFont=\Large]}}%
143 \\ [0pt]\pgfPTendstyle%
144 % ex={caps=??,c=??,f=??}
145 % ex/.default={caps=true,c=black,f=\bfseries\large}
146 \pgfPTMstyle{4}{ex}{\{caps=true,c=black,f=\string\bfseries\string\large\}}%
147 {\textit{Pseudo style} to set the keys: exercise list in \textbf{cap}ital\textbf{s}, exercise list \textbf{c}olor and/or exercise list \textbf{f}ont. %
148 None of the \textit{keys} -- caps, c and f -- are mandatory.
149 \\ [3pt]\makebox[\linewidth][c]{\use{ex=\{caps=<true|false>,c=<color>,f=<font commands>\}}}%
150 }%
151 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},%
152 ex={c=blue,f=\string\Large\string\bfseries}]%
153 \\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}, cell size=3em,Z list={1,...,36},%
154 ex={c=blue, f=\Large\bfseries}]}}%
155 \\ [0pt]\pgfPTendstyle%
156 \endinput