summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgf-PeriodicTableManual_blocksfamilies.tex
blob: 50b1303ca74a408d7f4e17daf3e4820cfece71ad (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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
\vfill%
\subsubsection{\texorpdfstring{\ding{224} Blocks and Families}{Blocks and Families}}\vspace{6pt}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% show blocks=false
\label{option_show blocks}%
\pgfPTMoption{4}{show blocks}{false}%
{When set to \red{true} the blocks \green{s}, \green{p}, \green{d} and \green{f} are drawn overlaying the Periodic Table and their labels are shown. \textit{Note that blocks are only shown when the \red{Z list} contains, at least, all elements of blocks s, p and d}.}%
%\vfill%
%\newpage%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},show blocks=true,show title=false]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},show blocks=true,show title=false]}}%
\newpage%\\ [10pt]
\pgfPTMmacrobox{pgfPT}[show blocks,show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show blocks,show title=false]}}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list=spd,show blocks,show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list=spd,show blocks,show title=false]}}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list=spd,show blocks,show title=false,IUPAC=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list=spd,show blocks,show title=false,IUPAC=false]}}%
\\ [0pt]\pgfPTendoption%
% blocks font
\newpage\enlargethispage{\baselineskip}\ \\ [-32pt]%
\label{option_blocks font}%
\pgfPTMoption{4}{blocks font}{\string\small\string\bfseries}%
{Sets the font used in the block labels.}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list=spd,show blocks,show title=false,blocks font=\string\small\string\bfseries\string\fontfamily{ptm}\string\selectfont]%
\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list=spd,show blocks,show title=false,blocks font=\small\bfseries\fontfamily{ptm}\selectfont]}}%
\\ [0pt]\pgfPTendoption%
% s block color
\label{option_s block color}%
\pgfPTMoption{4}{s block color}{\pgfPTMcolorDemo{blocos}{RGB: 255,231,132}}%
{Sets the block s color.}\vspace{-2pt}%
% s block font color
\label{option_s block_font color}%
\pgfPTMoption{4}{s block font color}{\{\}}%
{Sets the s block label font color. If no color is provided, the \red{s block color} will be used as the font color.}\vspace{-2pt}%
% s block line width
\label{option_s block line width}%
\pgfPTMoption{4}{s block line width}{0.8pt}%
{Sets the width of the line surrounding the s block.}\vspace{-2pt}%
% p block color
\label{option_p block color}%
\pgfPTMoption{4}{p block color}{\pgfPTMcolorDemo{blocop}{RGB: 170,255,172}}%
{Sets the block p color.}\vspace{-2pt}%
% p block font color
\label{option_p block_font color}%
\pgfPTMoption{4}{p block font color}{\{\}}%
{Sets the p block label font color. If no color is provided, the \red{p block color} will be used as the font color.}\vspace{-2pt}%
% p block line width
\label{option_p block line width}%
\pgfPTMoption{4}{p block line width}{0.8pt}%
{Sets the width of the line surrounding the p block.}\vspace{-2pt}%
% d block color
\label{option_d block color}%
\pgfPTMoption{4}{d block color}{\pgfPTMcolorDemo{blocod}{RGB: 255,187,187}}%
{Sets the block d color.}\vspace{-2pt}%
% d block font color
\label{option_d block_font color}%
\pgfPTMoption{4}{d block font color}{\{\}}%
{Sets the d block label font color. If no color is provided, the \red{d block color} will be used as the font color.}\vspace{-2pt}%
% d block line width
\label{option_d block line width}%
\pgfPTMoption{4}{d block line width}{0.8pt}%
{Sets the width of the line surrounding the d block.}\vspace{-2pt}%
% f block color
\label{option_f block color}%
\pgfPTMoption{4}{f block color}{\pgfPTMcolorDemo{blocof}{RGB: 177,203,228}}%
{Sets the block f color.}\vspace{-2pt}%
% f block font color
\label{option_f block_font color}%
\pgfPTMoption{4}{f block font color}{\{\}}%
{Sets the f block label font color. If no color is provided, the \red{f block color} will be used as the font color.}\vspace{-2pt}%
\newpage\ \\ [-32pt]%
% f block line width
\label{option_f block line width}%
\pgfPTMoption{4}{f block line width}{0.8pt}%
{Sets the width of the line surrounding the f block.}%
%\vfill%
% blocks font color (style)
\label{style_blocks font color}%
\pgfPTMstyle{4}{blocks font color}{black}%
{Style to set a common color for the labels of s, p, d and f blocks. The key \red{show blocks} is set to \red{true}.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[blocks font color,show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks font color,show title=false]}}%
\\ [-5pt]\pgfPTendstyle%
% blocks={sc=??,pc=??,dc=??,fc=??,lw=??,slw=??,plw=??,dlw=??,flw=??,f=??} (pseudo style)
% blocks line width (style)
\label{style_blocks line width}%
\pgfPTMstyle{4}{blocks line width}{0.8pt}%
{Style to set a common width of the lines surrounding the s, p, d and f blocks. The key \red{show blocks} is set to \red{true}.}%
%\vfill%
%\newpage%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[blocks line width=1.5pt]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks line width=1.5pt]}}%
\\ [-5pt]\pgfPTendstyle%
\newpage\ \\ [-32pt]%
\label{style_blocks}%
\pgfPTMstyle{4}{blocks}{\{sc=blocos,pc=blocop,dc=blocod,fc=blocof,lw=.8pt,font=\string\small\string\bfseries\}}%
{\textit{Pseudo style} to set the keys: block \textbf{s c}olor, block \textbf{p c}olor, block \textbf{d c}olor, block \textbf{f c}olor, the common \textbf{l}ine \textbf{w}idths of the blocks, the \textbf{s} block \textbf{l}ine \textbf{w}idth, the \textbf{p} block \textbf{l}ine \textbf{w}idth, the \textbf{d} block \textbf{l}ine \textbf{w}idth, the \textbf{f} block \textbf{l}ine \textbf{w}idth, blocks \textbf{f}ont, \textbf{s} block \textbf{f}ont \textbf{c}olor, \textbf{p} block \textbf{f}ont \textbf{c}olor, \textbf{d} block \textbf{f}ont \textbf{c}olor and/or \textbf{f} block \textbf{f}ont \textbf{c}olor. None of the \textit{keys} -- sc, pc, dc, fc, lw, slw, plw, dlw, flw, sfc, pfc, dfc and ffc -- are mandatory.
The key \red{show blocks} is set to \red{true}.
\\ [5pt]\tikz{\node[text width=\linewidth-.6666em,fill=cyan!5!white,draw=cyan,rounded corners=2pt] {\textbf{\blue{NOTE}}:\\ The colors provided to the color keys of the blocks -- \red{sc}, \red{pc}, \red{dc} and \red{fc} -- could be any defined color via the command \texttt{\normalsize\textbackslash definecolor} or by \textit{mixing} colors, using, for instance, the syntax \texttt{\normalsize color1!value!color2} or \texttt{\normalsize color1!value}, as explained in the \href{https://ctan.org/pkg/xcolor}{xcolor} package documentation.};}
\\ [5pt]\makebox[\linewidth][c]{\use{\tikz{\node[text width=11.4cm] {blocks=\{sc=<color>,pc=<color>,dc=<color>,fc=<color>,lw=<lenght>,\\ %
\textcolor{cyan!10!white}{blocks=\{}slw=<lenght>,plw=<lenght>,dlw=<lenght>,flw=<lenght>,f=<font commands>,\\ %
\textcolor{cyan!10!white}{blocks=\{}sfc=<color>,pfc=<color>,dfc=<color>,ffc=<color>\}};}}}%
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[blocks={sc=red!70!white,pc=green!70!white,dc=yellow!70!white,lw=2pt}, show title=false,Z list=spd]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks={sc=red!70!white,pc=green!70!white,dc=yellow!70!white,lw=2pt},show title=false,Z list=spd]}}%
%\\ [10pt]\pgfPTMmacrobox{pgfPT}[blocks={sc=red,pc=green!70!white,dc=yellow!70!white,slw=2pt}]%
%\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks={sc=red,pc=green!70!white,dc=yellow!70!white,slw=2pt}]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[blocks={sc=red!70!white,pc=green!70!white,dc=yellow!70!white, dfc=yellow!70!black,lw=2pt},show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks={sc=red!70!white,pc=green!70!white,dc=yellow!70!white, dfc=yellow!70!black,lw=2pt},show title=false]}}%
%\\ [10pt]\pgfPTMmacrobox{pgfPT}[blocks={sc=red,pc=green!70!white,dc=yellow!70!white,slw=2pt}]%
%\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[blocks={sc=red,pc=green!70!white,dc=yellow!70!white,slw=2pt}]}}%
\\ [0pt]\pgfPTendstyle%
%\vfill%
\newpage%\ \\ [-32pt]%
% show families=false
\label{option_show families}%
\pgfPTMoption{4}{show families}{false}%
{When set to \red{true} the main families -- \green{r}epresentative elements, \green{t}ransition metals and \green{i}nternal transition metals -- are drawn overlaying the Periodic Table and their labels are shown. \textit{Note that families are only shown when the \red{Z list} contains, at least, all elements of blocks s, p and d}.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,111},show families]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,111},show families]}}%
%\vfill%
%\newpage%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[show families]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show families]}}%
%\\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list=spd,show families]%
%\\ [10pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list=spd,show families]}}%
\newpage%\\ [10pt]
\pgfPTMmacrobox{pgfPT}[show families,show title=false,IUPAC=false]%Z list=spd,
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show families,show title=false,IUPAC=false]}}%Z list=spd,
\\ [0pt]\pgfPTendoption%
%\vfill%
% families font
\label{option_families font}%
\pgfPTMoption{4}{families font}{\string\small\string\bfseries}%
{Sets the font used in the family labels.}%
%\vfill%
%\newpage%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[show families,show title=false,families font=\string\normalsize]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show families,show title=false,families font=\normalsize]}}%
\\ [0pt]\pgfPTendoption%
%\vfill%
% r family color
\label{option_r family color}%
\pgfPTMoption{4}{r family color}{\pgfPTMcolorDemo{blocor}{RGB: 170,255,172}}%
{Sets the representative elements \textit{block} color.}%
% r family font color
\label{option_r fanily_font color}%
\pgfPTMoption{4}{r family font color}{\{\}}%
{Sets the representative elements \textit{block} label font color. If no color is provided, the \red{r family color} will be used as the font color.}%
\newpage\ \\ [-32pt]%
% r family line width
\label{option_r family line width}%
\pgfPTMoption{4}{r family line width}{0.8pt}%
{Sets the width of the line surrounding the representative elements \textit{block}.}%
% tm family color
\label{option_tm family color}%
\pgfPTMoption{4}{tm family color}{\pgfPTMcolorDemo{blocot}{RGB: 255,187,187}}%
{Sets the transition metals \textit{block} color.}%
% tm family font color
\label{option_tm fanily_font color}%
\pgfPTMoption{4}{tm family font color}{\{\}}%
{Sets the transition metals \textit{block} label font color. If no color is provided, the \red{tm family color} will be used as the font color.}%
% tm family line width
\label{option_tm family line width}%
\pgfPTMoption{4}{tm family line width}{0.8pt}%
{Sets the width of the line surrounding the transition metals \textit{block}.}%
% itm family color
\label{option_itm family color}%
\pgfPTMoption{4}{itm family color}{\pgfPTMcolorDemo{blocoi}{RGB: 177,203,228}}%
{Sets the internal transition metals \textit{block} color.}%
% itm fanily font color
\label{option_itm family_font color}%
\pgfPTMoption{4}{itm family font color}{\{\}}%
{Sets the internal transition metals \textit{block} label font color. If no color is provided, the \red{itm family color} will be used as the font color.}%
% itm family line width
\label{option_itm family line width}%
\pgfPTMoption{4}{itm family line width}{0.8pt}%
{Sets the width of the line surrounding the internal transition metals \textit{block}.}%
%\vfill%
%\newpage\ \\ [-32pt]%
% families font color (style)
\label{style_families_font_color}%
\pgfPTMstyle{4}{families font color}{black}%
{Style to set a common color for the labels of representative elements, transition metals and internal transition metals \textit{blocks}. The key \red{show blocks} is set to \red{true}.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[show title=false,families font color=blue!50!black]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show title=false,families font color=blue!50!black]}}%
\\ [0pt]\pgfPTendstyle%
% families line width (style)
\label{style_families line width}%
\pgfPTMstyle{4}{families line width}{0.8pt}%
{Style to set a common width of the lines surrounding the representative elements, transition metals and internal transition metals \textit{blocks}.
The key \red{show families} is set to \red{true}.
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[show title=false,show families,families line width=1.5pt]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[show title=false,show families,families line width=1.5pt]}}%
\\ [0pt]\pgfPTendstyle%
%\newpage\ \\ [-32pt]%
% families={rc=??,tc=??,ic=??,lw=??,rlw=??,tlw=??,ilw=??,f=??,rfc=??,tfc=??,ifc=??} (pseudo style)
\label{style_families}%
\pgfPTMstyle{4}{families}{\{rc=blocor,tc=blocot,ic=blocoi,lw=.8pt,f=\string\small\string\bfseries\}}%
{\textit{Pseudo style} to set the keys: \textbf{r} family \textbf{c}olor, \textbf{t}m family \textbf{c}olor, \textbf{i}tm family \textbf{c}olor, the common \textbf{l}ine \textbf{w}idths of the families, the \textbf{r} family \textbf{l}ine \textbf{w}idth, the \textbf{t}m family \textbf{l}ine \textbf{w}idth, the \textbf{i}tm family \textbf{l}ine \textbf{w}idth, the families \textbf{f}ont, \textbf{r} family \textbf{f}ont \textbf{c}olor, \textbf{t}m family \textbf{f}ont \textbf{c}olor and/or \textbf{i}tm family \textbf{f}ont \textbf{c}olor. None of the \textit{keys} -- rc, tc, ic, lw, rlw, tlw, ilw, f,rfc, tfc and ifc -- are mandatory.
The key \red{show families} is set to \red{true}.
\\ [5pt]\tikz{\node[text width=\linewidth-.6666em,fill=cyan!5!white,draw=cyan,rounded corners=2pt] {\textbf{\blue{NOTE}}:\\ The colors provided to the color keys of the families could be any defined color via the command \texttt{\normalsize\textbackslash definecolor} or by \textit{mixing} colors, using, for instance, the syntax \texttt{\normalsize color1!value!color2}, as explained in the \href{https://ctan.org/pkg/xcolor}{xcolor} package documentation.};}
\\ [5pt]\makebox[\linewidth][c]{\use{\tikz{\node[text width=10.2cm] {families=\{rc=<color>,tc=<color>,ic=<color>,lw=<lenght>,rlw=<lenght>,\\ %
\textcolor{cyan!10!white}{families=\{}tlw=<lenght>,ilw=<lenght>,f=<font commands>,rfc=<color>,\\ %
\textcolor{cyan!10!white}{families=\{}tfc=<color>,ifc=<color>\}};}}}%
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[families={rc=red!70!white,ic=yellow!70!white,lw=2pt},show title=false]%
\\ [5pt]\vbox to 0pt{\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[families={rc=red!70!white,ic=yellow!70!white,lw=2pt},show title=false]}}}%
\newpage%\\ [10pt]
\pgfPTMmacrobox{pgfPT}[families={rc=blue,ic=yellow!70!white,rlw=2pt},show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[families={rc=blue,ic=yellow!70!white,rlw=2pt},show title=false]}}%
%\newpage%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[families={rc=blue,ic=yellow!70!white,rlw=2pt,ifc=yellow!70!black},show title=false]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[families={rc=blue,ic=yellow!70!white,rlw=2pt,ifc=yellow!70!black},show title=false]}}%
\\ [0pt]\pgfPTendstyle%
\endinput