summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgf-PeriodicTableManual_exerciselayout.tex
blob: 95546ebd063b253ec97122ffc9c8a3180319c82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
\vfill%
\subsubsection{\texorpdfstring{\ding{224} \itshape Exercise layout}{Exercise layout}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The \red{keys} 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.
% only cells=false
\pgfPTMoption{4}{only cells}{false}%
{When set to \red{true} the Periodic Table is drawn with only the cells without any contents.
\\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
\\ 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}};}
}%
\vfill\newpage%\\ [5pt]
\pgfPTMmacrobox{pgfPT}[only cells]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,54},only cells]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,54},only cells]}}%
\\ [5pt]\pgfPTendoption%
% only cells plus Z=false
\vfill%
\pgfPTMoption{4}{only cells plus Z}{false}%
{When set to \red{true} the Periodic Table is drawn with only the cells without any contents, except the atomic number (Z).
\\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
\\ 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}};}
}%
\vfill\newpage%\\ [5pt]
\pgfPTMmacrobox{pgfPT}[only cells plus Z]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells plus Z]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[only cells plus Z,IUPAC=false]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[only cells plus Z,IUPAC=false]}}%
\\ [5pt]\pgfPTendoption%
\vfill%
% only cells with periods and group numbers=false
\pgfPTMoption{4}{only cells with periods and group numbers\ \ \ }{false}%
{When set to \red{true} the Periodic Table is drawn with only the cells without any contents. The period and group numbers are shown.
\\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
\\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show legend=false, show MNM line=false}};}
}%
\vfill%
\newpage%\\ [5pt]
\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},only cells with periods and group numbers]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},only cells with periods and group numbers]}}%
\\ [5pt]\pgfPTendoption%
\vfill%
% only cells with periods and group numbers plus Z=false
\pgfPTMoption{4}{only cells with periods and group numbers plus Z}{false}%
{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.
\\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTE}}:
\\ The following \red{keys} are also set: \red{back color scheme=solid, show title=false, show legend=false, show MNM line=false}};}
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},only cells with periods and group numbers plus Z]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},only cells with periods and group numbers plus Z]}}%
\\ [5pt]\pgfPTendoption%
\vfill%
% Z exercise list
\pgfPTMoption{4}{Z exercise list}{\{\}}%
{Sets the list of atomic numbers to display as letters instead of their chemicals symbols.
\\ [10pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\orange{NOTES}}:
\begin{itembar}
\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.
\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.
\end{itembar}
};}
}%
\\ [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}]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}]}}%
\newpage%\\ [10pt]
\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},only cells with periods and group numbers]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},only cells with periods and group numbers,%,exercise mode
Z exercise list={1,2,3,4,9,12,17,18,19,20,25,27,32,34,35,49,54,74,86,87}]}}%
\\ [5pt]\pgfPTendoption%
% exercise list in capitals
\pgfPTMoption{4}{exercise list in capitals}{true}%
{When set to \red{true} the \textit{letters} are typed in capitals, otherwise they are typed as lowercase letters.
}%
\\ [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]%
\\ [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]}}%
\\ [5pt]\pgfPTendoption%
% exercise list color
\pgfPTMoption{4}{exercise list color}{black}%
{Sets the color of the displayed \textit{letters} in the \textit{exercise layout}.
}%
\\ [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 color=blue!50!black]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
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]}}%
\\ [5pt]\pgfPTendoption%
% exercise list font
\pgfPTMoption{4}{exercise list font}{\string\bfseries\string\large}%
{Sets the font of the displayed \textit{letters} in the \textit{exercise layout}.
}%
\\ [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 font=\string\fontfamily{fmm}\string\selectfont]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cell size=3em,Z list={1,...,36},%,exercise mode
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]}}%
\\ [5pt]\pgfPTendoption%
% STYLES:
% cells+Z
\newpage\ \\ [-25pt]%
\pgfPTMstyletxt{4}{cells+Z}{no value}%
{Style to set the key \red{only cells plus Z} to true.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+Z]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+Z]}}%
\\ [5pt]\pgfPTendstyle%
\vfill%
% cells+p+g
\pgfPTMstyletxt{4}{cells+p+g}{no value}%
{Style to set the key \red{only cells with periods and group numbers} to true.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+p+g]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+p+g]}}%
\\ [5pt]\pgfPTendstyle%
% cells+p+g+Z
\newpage\ \\ [-25pt]%
\pgfPTMstyletxt{4}{cells+p+g+Z}{no value}%
{Style to set the key \red{only cells with periods and group numbers plus Z} to true.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[cells+p+g+Z]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[cells+p+g+Z]}}%
\\ [5pt]\pgfPTendstyle%
% exCap
\pgfPTMstyletxt{4}{exnocaps}{no value}%
{Style to set the key \red{exercise list in capitals} to false.
}%
\\ [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]%
\\ [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]}}%
\\ [5pt]\pgfPTendstyle%
% exColor
\pgfPTMstyle{4}{exColor}{black}%
{Style to set the key \red{exercise list color}.
}%
\\ [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]%
\\ [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]}}%
\\ [5pt]\pgfPTendstyle%
% exFont
\newpage\ \\ [-25pt]%
\pgfPTMstyle{4}{exFont}{\string\bfseries\string\large}%
{Style to set the key \red{exercise list font}.
}%
\\ [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]%
\\ [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]}}%
\\ [0pt]\pgfPTendstyle%
% ex={caps=??,c=??,f=??}
%       ex/.default={caps=true,c=black,f=\bfseries\large}
\pgfPTMstyle{4}{ex}{\{caps=true,c=black,f=\string\bfseries\string\large\}}%
{\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. %
None of the \textit{keys} -- caps, c and f -- are mandatory.
\\ [3pt]\makebox[\linewidth][c]{\use{ex=\{caps=<true|false>,c=<color>,f=<font commands>\}}}%
}%
\\ [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},%
ex={c=blue,f=\string\Large\string\bfseries}]%
\\ [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},%
ex={c=blue, f=\Large\bfseries}]}}%
\\ [0pt]\pgfPTendstyle%
\endinput