The original code was meant to be viewed. Can anyone tell me how?
Thanks!
-Dan
Code: Select all
% Adapted from https://texample.net/tikz/examples/periodic-table-of-chemical-elements.
% All Credit to Ivan Griffin.
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{shapes,calc}
\begin{document}
\newcommand{\Element}[6]{%
\begin{tikzpicture}[scale=2.2,x=1cm, y=1cm]
\path[fill=#1] (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
\draw (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
{\node at (0.12,-0.12) {#2};}
{\node at (0.75,-0.12) {#3};}
{\node at (0.5,-0.4) [scale=2.8] {#4};}
{\node at (0.5,-0.7) {#5};}
{\node at (0.5,-0.9) [scale=0.8] {#6};}
\end{tikzpicture}
}
\begin{tikzpicture}[font=\sffamily, node distance=2.2cm]
% Fill Color Styles
\tikzstyle{ElementFill} = [fill=yellow!40]
\tikzstyle{AlkaliMetalFill} = [fill=blue!55]
\tikzstyle{AlkalineEarthMetalFill} = [fill=blue!40]
\tikzstyle{MetalFill} = [fill=blue!25]
\tikzstyle{MetalloidFill} = [fill=orange!40]
\tikzstyle{NonmetalFill} = [fill=teal!40]
\tikzstyle{HalogenFill} = [fill=yellow!40]
\tikzstyle{NobleGasFill} = [fill=green!55]
\tikzstyle{LanthanideActinideFill} = [fill=red!40]
% Label Styles
\tikzstyle{PeriodLabel} = [font={\sffamily\LARGE}, node distance=2.0cm]
\tikzstyle{GroupLabel} = [font={\sffamily\LARGE}, minimum width=2.75cm, node distance=2.0cm]
% Group 1 - IA
\node at (0,0)(H) {\Element{yellow!20}{1}{1.0079}{H}{Hydrogen}{$1s^1$}};
\node [below of=H] (Li) {\Element{blue!55}{3}{6.941}{Li}{Lithium}{$(He)2s^1$}};
\node [below of=Li] (Na) {\Element{blue!55}{11}{22.990}{Na}{Sodium}{$(Ne)3s^1$}};
\node [below of=Na] (K) {\Element{blue!55}{19}{39.098}{K}{Potassium}{$(Ar)4s^1$}};
\node [below of=K] (Rb) {\Element{blue!55}{37}{85.468}{Rb}{Rubidium}{$(Kr)5s^1$}};
\node [below of=Rb] (Cs) {\Element{blue!55}{55}{132.91}{Cs}{Caesium}{$(Xe)6s^1$}};
\node [below of=Cs] (Fr) {\Element{blue!55}{87}{223}{Fr}{Francium}{$(Rn)7s^1$}};
% Group 2 - IIA
\node at (1*2.2,-1*2.2) (Be) {\Element{blue!40}{4}{9.0122}{Be}{Beryllium}{$(He)2s^2$}};
\node [below of=Be] (Mg) {\Element{blue!40}{12}{24.305}{Mg}{Magnesium}{$(Ne)3s^2$}};
\node [below of=Mg] (Ca) {\Element{blue!40}{20}{40.078}{Ca}{Calcium}{$(Ar)4s^2$}};
\node [below of=Ca] (Sr) {\Element{blue!40}{38}{87.62}{Sr}{Strontium}{$(Kr)5s^2$}};
\node [below of=Sr] (Ba) {\Element{blue!40}{56}{137.33}{Ba}{Barium}{$(Xe)6s^2$}};
\node [below of=Ba] (Ra) {\Element{blue!40}{88}{226}{Ra}{Radium}{$(Rn)7s^2$}};
% Group 3 - IIIB
\node at (2*2.2,-3*2.2) (Sc) {\Element{blue!25}{21}{44.956}{Sc}{Scandium}{$(Ar)3d^14s^2$}};
\node [below of=Sc] (Y) {\Element{blue!25}{39}{88.906}{Y}{Yttrium}{$(Kr)4d^15s^2$}};
\node [below of=Y] (LaLu) {
\begin{tikzpicture}[scale=2.2,x=1cm, y=1cm]
\path [fill=red!40] (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
\draw (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
{\node at (0.5,-0.12) {La - Lu};}
{\node at (0.5,-0.4) [scale=1.2] {Lanthanides};}
{\node at (0.5,-0.7) {57 - 71};}
\end{tikzpicture}
};
\node [below of=LaLu] (AcLr) {
\begin{tikzpicture}[scale=2.2,x=1cm, y=1cm]
\path [fill=red!40] (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
\draw (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
{\node at (0.5,-0.12) {Ac - Lr};}
{\node at (0.5,-0.4) [scale=1.2] {Actinides};}
{\node at (0.5,-0.7) {89 - 103};}
\end{tikzpicture}
};
% Group 4 - IVB
\node at (3*2.2,-3*2.2) (Ti) {\Element{blue!25}{22}{47.867}{Ti}{Titanium}{$(Ar)3d^24s^2$}};
\node [below of=Ti] (Zr) {\Element{blue!25}{40}{91.224}{Zr}{Zirconium}{$(Kr)4d^25s^2$}};
\node [below of=Zr] (Hf) {\Element{blue!25}{72}{178.49}{Hf}{Hafnium}{$(Xe)4f^{14}5d^26s^2$}};
\node [below of=Hf] (Rf) {\Element{blue!25}{104}{261}{Rf}{Rutherfordium}{$(Rn)5f^{14}6d^27s^2$}};
% Group 5 - VB
\node at (4*2.2,-3*2.2) (V) {\Element{blue!25}{23}{50.942}{V}{Vanadium}{$(Ar)3d^34s^2$}};
\node [below of=V] (Nb) {\Element{blue!25}{41}{92.906}{Nb}{Niobium}{$(Kr)4d^45s^1$}};
\node [below of=Nb] (Ta) {\Element{blue!25}{73}{180.95}{Ta}{Tantalum}{$(Xe)4f^{14}5d^36s^2$}};
\node [below of=Ta] (Db) {\Element{blue!25}{105}{262}{Db}{Dubnium}{$(Rn)5f^{14}6d^37s^2$}};
% Group 6 - VIB
\node at (5*2.2,-3*2.2) (Cr) {\Element{blue!25}{24}{51.996}{Cr}{Chromium}{$(Ar)3d^54s^1$}};
\node [below of=Cr] (Mo) {\Element{blue!25}{42}{95.94}{Mo}{Molybdenum}{$(Kr)4d^55s^1$}};
\node [below of=Mo] (W) {\Element{blue!25}{74}{183.84}{W}{Tungsten}{$(Xe)4f^{14}5d^46s^2$}};
\node [below of=W] (Sg) {\Element{blue!25}{106}{266}{Sg}{Seaborgium}{$(Rn)5f^{14}6d^47s^2$}};
% Group 7 - VIIB
\node at (6*2.2,-3*2.2) (Mn) {\Element{blue!25}{25}{54.938}{Mn}{Manganese}{$(Ar)3d^54s^2$}};
\node [below of=Mn] (Tc) {\Element{blue!25}{43}{96}{Tc}{Technetium}{$(Kr)4d^55s^2$}};
\node [below of=Tc] (Re) {\Element{blue!25}{75}{186.21}{Re}{Rhenium}{$(Xe)4f^{14}5d^56s^2$}};
\node [below of=Re] (Bh) {\Element{blue!25}{107}{264}{Bh}{Bohrium}{$(Rn)5f^{14}6d^57s^2$}};
% Group 8 - VIIIB
\node at (7*2.2,-3*2.2) (Fe) {\Element{blue!25}{26}{55.845}{Fe}{Iron}{$(Ar)3d^64s^2$}};
\node [below of=Fe] (Ru) {\Element{blue!25}{44}{101.07}{Ru}{Ruthenium}{$(Kr)4d^75s^1$}};
\node [below of=Ru] (Os) {\Element{blue!25}{76}{190.23}{Os}{Osmium}{$(Xe)4f^{14}5d^66s^2$}};
\node [below of=Os] (Hs) {\Element{blue!25}{108}{277}{Hs}{Hassium}{$(Rn)5f^{14}6d^67s^2$}};
% Group 9 - VIIIB
\node at (8*2.2,-3*2.2) (Co) {\Element{blue!25}{27}{58.933}{Co}{Cobalt}{$(Ar)3d^74s^2$}};
\node [below of=Co] (Rh) {\Element{blue!25}{45}{102.91}{Rh}{Rhodium}{$(Kr)4d^85s^1$}};
\node [below of=Rh] (Ir) {\Element{blue!25}{77}{192.22}{Ir}{Iridium}{$(Xe)4f^{14}5d^76s^2$}};
\node [below of=Ir] (Mt) {\Element{blue!25}{109}{268}{Mt}{Meitnerium}{$(Rn)5f^{14}6d^77s^2$}};
% Group 10 - VIIIB
\node at (9*2.2,-3*2.2) (Ni) {\Element{blue!25}{28}{58.693}{Ni}{Nickel}{$(Ar)3d^84s^2$}};
\node [below of=Ni] (Pd) {\Element{blue!25}{46}{106.42}{Pd}{Palladium}{$(Kr)4d^{10}$}};
\node [below of=Pd] (Pt) {\Element{blue!25}{78}{195.08}{Pt}{Platinum}{$(Xe)4f^{14}5d^96s^1$}};
\node [below of=Pt] (Ds) {\Element{blue!25}{110}{281}{Ds}{Darmstadtium}{$(Rn)5f^{14}6d^97s^1$}};
% Group 11 - IB
\node at (10*2.2,-3*2.2) (Cu) {\Element{blue!25}{29}{63.546}{Cu}{Copper}{$(Ar)3d^{10}4s^1$}};
\node [below of=Cu] (Ag) {\Element{blue!25}{47}{107.87}{Ag}{Silver}{$(Kr)4d^{10}5s^1$}};
\node [below of=Ag] (Au) {\Element{blue!25}{79}{196.97}{Au}{Gold}{$(Xe)4f^{14}5d^{10}6s^1$}};
\node [below of=Au] (Rg) {\Element{blue!25}{111}{280}{Rg}{Roentgenium}{$(Rn)5f^{14}6d^97s^2$}};
% Group 12 - IIB
\node at (11*2.2,-3*2.2) (Zn) {\Element{blue!25}{30}{65.39}{Zn}{Zinc}{$(Ar)3d^{10}4s^2$}};
\node [below of=Zn] (Cd) {\Element{blue!25}{48}{112.41}{Cd}{Cadmium}{$(Kr)4d^{10}5s^2$}};
\node [below of=Cd] (Hg) {\Element{blue!25}{80}{200.59}{Hg}{Mercury}{$(Xe)4f^{14}5d^{10}6s^2$}};
\node [below of=Hg] (Cn) {\Element{blue!25}{112}{285}{Cn}{Copernicium}{$(Rn)5f^{14}6d^{10}7s^2$}};
% Group 13 - IIIA
\node at (12*2.2,-1*2.2) (B) {\Element{orange!40}{5}{10.811}{B}{Boron}{$(He)2s^22p^1$}};
\node [below of=B] (Al) {\Element{blue!25}{13}{26.982}{Al}{Aluminium}{$(Ne)3s^23p^1$}};
\node [below of=Al] (Ga) {\Element{blue!25}{31}{69.723}{Ga}{Gallium}{$(Ar)3d^{10}4s^24p^1$}};
\node [below of=Ga] (In) {\Element{blue!25}{49}{114.82}{In}{Indium}{$(Kr)4d^{10}5s^25p^1$}};
\node [below of=In] (Tl) {\Element{blue!25}{81}{204.38}{Tl}{Thallium}{$(Xe)4f^{14}5d^{10}6s^26p^1$}};
\node [below of=Tl] (Nh) {\Element{blue!25}{113}{284}{Nh}{Nihonium}{$(Rn)5f^{14}6d^{10}7s^27p^1$}};
% Group 14 - IVA
\node at (13*2.2,-1*2.2) (C) {\Element{teal!40}{6}{12.011}{C}{Carbon}{$(He)2s^22p^2$}};
\node [below of=C] (Si) {\Element{orange!40}{14}{28.086}{Si}{Silicon}{$(Ne)3s^23p^2$}};
\node [below of=Si] (Ge) {\Element{orange!40}{32}{72.64}{Ge}{Germanium}{$(Ar)3d^{10}4s^24p^2$}};
\node [below of=Ge] (Sn) {\Element{blue!25}{50}{118.71}{Sn}{Tin}{$(Kr)4d^{10}5s^25p^2$}};
\node [below of=Sn] (Pb) {\Element{blue!25}{82}{207.2}{Pb}{Lead}{$(Xe)4f^{14}5d^{10}6s^26p^2$}};
\node [below of=Pb] (Fl) {\Element{blue!25}{114}{289}{Fl}{Flerovium}{$(Rn)5f^{14}6d^{10}7s^27p^2$}};
% Group 15 - VA
\node at (14*2.2,-1*2.2) (N) {\Element{teal!40}{7}{14.007}{N}{Nitrogen}{$(He)2s^22p^3$}};
\node [below of=N] (P) {\Element{teal!40}{15}{30.974}{P}{Phosphorus}{$(Ne)3s^23p^3$}};
\node [below of=P] (As) {\Element{orange!40}{33}{74.922}{As}{Arsenic}{$(Ar)3d^{10}4s^24p^3$}};
\node [below of=As] (Sb) {\Element{orange!40}{51}{121.76}{Sb}{Antimony}{$(Kr)4d^{10}5s^25p^3$}};
\node [below of=Sb] (Bi) {\Element{blue!25}{83}{208.98}{Bi}{Bismuth}{$(Xe)4f^{14}5d^{10}6s^26p^3$}};
\node [below of=Bi] (Mc) {\Element{blue!25}{115}{288}{Mc}{Moscovium}{$(Rn)5f^{14}6d^{10}7s^27p^3$}};
% Group 16 - VIA
\node at (15*2.2,-1*2.2) (O) {\Element{teal!40}{8}{15.999}{O}{Oxygen}{$(He)2s^22p^4$}};
\node [below of=O] (S) {\Element{teal!40}{16}{32.065}{S}{Sulphur}{$(Ne)3s^23p^4$}};
\node [below of=S] (Se) {\Element{teal!40}{34}{78.96}{Se}{Selenium}{$(Ar)3d^{10}4s^24p^4$}};
\node [below of=Se] (Te) {\Element{orange!40}{52}{127.6}{Te}{Tellurium}{$(Kr)4d^{10}5s^25p^4$}};
\node [below of=Te] (Po) {\Element{orange!40}{84}{209}{Po}{Polonium}{$(Xe)4f^{14}5d^{10}6s^26p^4$}};
\node [below of=Po] (Lv) {\Element{blue!25}{116}{293}{Lv}{Livermorium}{$(Rn)5f^{14}6d^{10}7s^27p^4$}};
% Group 17 - VIIA
\node at (16*2.2,-1*2.2) (F) {\Element{yellow!40}{9}{18.998}{F}{Fluorine}{$(He)2s^22p^5$}};
\node [below of=F] (Cl) {\Element{yellow!40}{17}{35.453}{Cl}{Chlorine}{$(Ne)3s^23p^5$}};
\node [below of=Cl] (Br) {\Element{yellow!40}{35}{79.904}{Br}{Bromine}{$(Ar)3d^{10}4s^24p^5$}};
\node [below of=Br] (I) {\Element{yellow!40}{53}{126.9}{I}{Iodine}{$(Kr)4d^{10}5s^25p^5$}};
\node [below of=I] (At) {\Element{yellow!40}{85}{210}{At}{Astatine}{$(Xe4f^{14})5d^{10}6s^26p^5$}};
\node [below of=At] (Ts) {\Element{yellow!20}{117}{292}{Ts}{Tennessine}{$(Rn)5f^{14}6d^{10}7s^27p^5$}};
% Group 18 - VIIIA
\node at (17*2.2,0) (Ne) {\Element{green!55}{10}{20.180}{Ne}{Neon}{$(He)2s^22p^6$}};
\node [above of=Ne] (He) {\Element{green!55}{2}{4.0025}{He}{Helium}{$(Ne)3s^23p^6$}};
\node [below of=Ne] (Ar) {\Element{green!55}{18}{39.948}{Ar}{Argon}{$(Ar)3d^{10}4s^24p^6$}};
\node [below of=Ar] (Kr) {\Element{green!55}{36}{83.8}{Kr}{Krypton}{$(Kr)4d^{10}5s^25p^6$}};
\node [below of=Kr] (Xe) {\Element{green!55}{54}{131.29}{Xe}{Xenon}{}};
\node [below of=Xe] (Rn) {\Element{green!55}{86}{222}{Rn}{Radon}{$(Xe4f^{14})5d^{10}6s^26p^6$}};
\node [below of=Rn] (Og) {\Element{teal!40}{118}{294}{Og}{Oganesson}{$(Rn)5f^{14}6d^{10}7s^27p^6$}};
% Period
\node[left of=H, PeriodLabel] (Period1) {1};
\node[left of=Li, PeriodLabel] (Period2) {2};
\node[left of=Na, PeriodLabel] (Period3) {3};
\node[left of=K, PeriodLabel] (Period4) {4};
\node[left of=Rb, PeriodLabel] (Period5) {5};
\node[left of=Cs, PeriodLabel] (Period6) {6};
\node[left of=Fr, PeriodLabel] (Period7) {7};
% Group
\node[above of=H, GroupLabel] (Group1) {1 \hfill IA};
\node[above of=Be, GroupLabel] (Group2) {2 \hfill IIA};
\node[above of=Sc, GroupLabel] (Group3) {3 \hfill IIIA};
\node[above of=Ti, GroupLabel] (Group4) {4 \hfill IVB};
\node[above of=V, GroupLabel] (Group5) {5 \hfill VB};
\node[above of=Cr, GroupLabel] (Group6) {6 \hfill VIB};
\node[above of=Mn, GroupLabel] (Group7) {7 \hfill VIIB};
\node[above of=Fe, GroupLabel] (Group8) {8 \hfill VIIIB};
\node[above of=Co, GroupLabel] (Group9) {9 \hfill VIIIB};
\node[above of=Ni, GroupLabel] (Group10) {10 \hfill VIIIB};
\node[above of=Cu, GroupLabel] (Group11) {11 \hfill IB};
\node[above of=Zn, GroupLabel] (Group12) {12 \hfill IIB};
\node[above of=B, GroupLabel] (Group13) {13 \hfill IIIA};
\node[above of=C, GroupLabel] (Group14) {14 \hfill IVA};
\node[above of=N, GroupLabel] (Group15) {15 \hfill VA};
\node[above of=O, GroupLabel] (Group16) {16 \hfill VIA};
\node[above of=F, GroupLabel] (Group17) {17 \hfill VIIA};
\node[above of=He, GroupLabel] (Group18) {18 \hfill VIIIA};
% Lanthanides
\node at (3.6,-16.3) (La) {\Element{red!40}{57}{138.91}{La}{Lanthanum}{$(Xe)5d^16s^2$}};
\node [right of=La] (Ce) {\Element{red!40}{58}{140.12}{Ce}{Cerium}{$(Xe)4f^15d^16s^2$}};
\node [right of=Ce] (Pr) {\Element{red!40}{59}{140.91}{Pr}{Praseodymium}{$(Xe)4f^36s^2$}};
\node [right of=Pr] (Nd) {\Element{red!40}{60}{144.24}{Nd}{Neodymium}{$(Xe)4f^46s^2$}};
\node [right of=Nd] (Pm) {\Element{red!40}{61}{145}{Pm}{Promethium}{$(Xe)4f^56s^2$}};
\node [right of=Pm] (Sm) {\Element{red!40}{62}{150.36}{Sm}{Samarium}{$(Xe)4f^66s^2$}};
\node [right of=Sm] (Eu) {\Element{red!40}{63}{151.96}{Eu}{Europium}{$(Xe)4f^76s^2$}};
\node [right of=Eu] (Gd) {\Element{red!40}{64}{157.25}{Gd}{Gadolinium}{$(Xe)4f^75d^16s^2$}};
\node [right of=Gd] (Tb) {\Element{red!40}{65}{158.93}{Tb}{Terbium}{$(Xe)4f^96s^2$}};
\node [right of=Tb] (Dy) {\Element{red!40}{66}{162.50}{Dy}{Dysprosium}{$(Xe)4f^{10}6s^2$}};
\node [right of=Dy] (Ho) {\Element{red!40}{67}{164.93}{Ho}{Holmium}{$(Xe)4f^{11}6s^2$}};
\node [right of=Ho] (Er) {\Element{red!40}{68}{167.26}{Er}{Erbium}{$(Xe)4f^{12}6s^2$}};
\node [right of=Er] (Tm) {\Element{red!40}{69}{168.93}{Tm}{Thulium}{$(Xe)4f^{13}6s^2$}};
\node [right of=Tm] (Yb) {\Element{red!40}{70}{173.04}{Yb}{Ytterbium}{$(Xe)4f^{14}6s^2$}};
\node [right of=Yb] (Lu) {\Element{red!40}{71}{174.97}{Lu}{Lutetium}{$(Xe)4f^{14}5d^16s^2$}};
% Actinides
\node [below of=La] (Ac) {\Element{red!40}{89}{227}{Ac}{Actinium}{$(Rn)6d^17s^2$}};
\node [right of=Ac] (Th) {\Element{red!40}{90}{232.04}{Th}{Thorium}{$(Rn)6d^27s^2$}};
\node [right of=Th] (Pa) {\Element{red!40}{91}{231.04}{Pa}{Protactinium}{$(Rn)5f^26d^17s^2$}};
\node [right of=Pa] (U) {\Element{red!40}{92}{238.03}{U}{Uranium}{$(Rn)5f^36d^17s^2$}};
\node [right of=U] (Np) {\Element{red!40}{93}{237}{Np}{Neptunium}{$(Rn)5f^46d^17s^2$}};
\node [right of=Np] (Pu) {\Element{red!40}{94}{244}{Pu}{Plutonium}{$(Rn)5f^67s^2$}};
\node [right of=Pu] (Am) {\Element{red!40}{95}{243}{Am}{Americium}{$(Rn)5f^77s^2$}};
\node [right of=Am] (Cm) {\Element{red!40}{96}{247}{Cm}{Curium}{$(Rn)5f^76d^17s^2$}};
\node [right of=Cm] (Bk) {\Element{red!40}{97}{247}{Bk}{Berkelium}{$(Rn)5f^97s^2$}};
\node [right of=Bk] (Cf) {\Element{red!40}{98}{251}{Cf}{Californium}{$(Rn)5f^{10}7s^2$}};
\node [right of=Cf] (Es) {\Element{red!40}{99}{252}{Es}{Einsteinium}{$(Rn)5f^{11}7s^2$}};
\node [right of=Es] (Fm) {\Element{red!40}{100}{257}{Fm}{Fermium}{$(Rn)5f^{12}7s^2$}};
\node [right of=Fm] (Md) {\Element{red!40}{101}{258}{Md}{Mendelevium}{$(Rn)5f^{13}7s^2$}};
\node [right of=Md] (No) {\Element{red!40}{102}{259}{No}{Nobelium}{$(Rn)5f^{14}7s^2$}};
\node [right of=No] (Lr) {\Element{red!40}{103}{262}{Lr}{Lawrencium}{$(Rn)5f^{14}7s^27p^1$}};
% Legend
\fill[AlkaliMetalFill] ($(La.north -| Fr.west)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (AlkaliMetal) {Alkali Metal};
\fill[AlkalineEarthMetalFill] ($(AlkaliMetal.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (AlkalineEarthMetal) {Alkaline Earth Metal};
\fill[MetalFill] ($(AlkalineEarthMetal.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (Metal) {Metal};
\fill[MetalloidFill] ($(Metal.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (Metalloid) {Metalloid};
\fill[NonmetalFill] ($(Metalloid.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (Non-metal) {Non-metal};
\fill[HalogenFill] ($(Non-metal.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (Halogen) {Halogen};
\fill[NobleGasFill] ($(Halogen.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (NobleGas) {Noble Gas};
\fill[LanthanideActinideFill] ($(NobleGas.west) - (1em,2em)$)
rectangle +(1em, 1em) node[right, yshift=-1.2ex] (Lanthanide/Actinide) {Lanthanide/Actinide};
\node at (5.3,-2.5) (legend) {
\begin{tikzpicture}[scale=2.2,x=1cm, y=1cm]
\draw (0.05,0) -- (0.95,0) arc (90:0:0.5mm) -- (1.0,-0.95) arc (0:-90:0.5mm) -- (0.05,-1.0) arc (-90:-180:0.5mm) -- (0,-0.05)
arc(180:90:0.5mm) -- cycle;
{\node at (0.12,-0.12) {Z};}
{\node at (0.75,-0.12) {mass};}
{\node at (0.5,-0.4) [scale=1.8] {Symbol};}
{\node at (0.5,-0.7) {Name};}
{\node at (0.5,-0.9) [scale=0.8] {Electron Cloud};}
\end{tikzpicture}
};
% Diagram Title
\node at (H.west -| Fe.north) [scale=2, font={\sffamily\Huge\bfseries}] {Periodic Table of Elements};
\end{tikzpicture}
\end{document}