summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgf-PeriodicTableManual_ls.tex
blob: e1e7c7c150f6bd1eb6e83da47718018af554f2ea (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
\vfill%
\subsubsection{\texorpdfstring{\ding{224} The lattice structure}{The lattice structure}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ls
\pgfPTMoption{4}{ls}{fig}{%
Sets what is displayed for the lattice structure: a figure (fig) or text (txt) or both (fig+txt or txt+fig).
}
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt]}}%
\newpage%\\ [10pt]
\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig]}}%
\\ [0pt]\pgfPTendoption%
% ls color
\vfill%
\pgfPTMoption{4}{ls color}{black}{%
Sets the lattice structure text color.
}
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls color=red]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,,ls=txt+fig,ls color=red]}}%
\\ [0pt]\pgfPTendoption%
% ls font
\vfill%
\pgfPTMoption{4}{ls font}{\string\tiny}{%
Sets the lattice structure text font.
}
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls font=\string\tiny\string\bfseries]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls font=\tiny\bfseries]}}%
\\ [0pt]\pgfPTendoption%
% ls align
\newpage\ \\ [-32pt]%
\pgfPTMoption{4}{ls align}{right}{%
Sets the alignment of the lattice structure to \red{left} or \red{center} or \red{right}.
}
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls align=center]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls align=center]}}%
\\ [-5pt]\pgfPTendoption%
% ls unit=<A|pm> .default=pm
\pgfPTMoption[\pgfPTnewinversion{1.0.1}]{4}{ls unit}{pm}{%
Sets the unit for the lattice structure constants: a, b and c. The two possible values to this  key are \red{pm} (picometers) and \red{A} ({\AA} -- angstroms).}%
\\ [5pt]\pgfPTMbuildcellstyle{myls}(6,3)[(1;1-2;Z),(1;3;radio),(2-3;1.5-3.5;CS),(4;1-3;name),(5;1-2.5;ls),(5;2.5-3;lsa), %
(6;1-2.5;lsb),(6;2.5-3;lsca)]%
\pgfPTbuildcellstyle{myls}(6,3)[(1;1-2;Z),(1;3;radio),(2-3;1.5-3.5;CS),(4;1-3;name),(5;1-2.5;ls),(5;2.5-3;lsa),(6;1-2.5;lsb),(6;2.5-3;lsca)]%
\\ [-4pt]\pgfPTMmacrobox[l]{pgfPTstyle}[Z list={1,...,36},cell style=myls,show title=false,ls align=center]%
\pgfPTstyle[Z list={1,...,36},cell style=myls,show title=false,ls align=center]%
\\ [-4pt]\pgfPTMmacrobox{pgfPT}[]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT}}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[ls unit=A]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls unit=A]}}%
\\ [-5pt]\pgfPTendoption%
% ls precision
\pgfPTMoption{4}{ls precision}{-1}{%
Sets the lattice structure constants - a, b, and c - precision, as also the lattice c/a ratio, \ie, the decimal places displayed in their value, performing the respective rounding, without zero padding the value.
\\ [5pt]\tikz{\node[text width=\linewidth-.6666em,fill=orange!5!white,draw=orange,rounded corners=2pt] {\textbf{\red{NOTE}}:\\ Rounding is performed over the constants data  or c/a ratio values witch actually have a maximum of 2 or 4 decimal places, when the values are in picometers or in angstroms, respectively. So giving this key a value of -1 (the value of the constants or c/a ratio as-is) or 2 or 4 has the same effect.
\\ \textit{Therefore the values provided to this key should be any integer between -1 and 1 (pm) or 3 ({\AA}). Any other integer provided will be processed as -1.}};}
}
%\vfill%\\ [10pt]
\newpage%
\pgfPTMbuildcellstyle{myls}(6,3)[(1;1-2;Z),(1;2-3;ls),(2-3;1.5-3.5;CS),(4;1-3;name),(5;1-2.5;lsa), %
(5;2.5-3;lsb),(6;1-2.5;lsc),(6;2.5-3;lsca)]%
\pgfPTbuildcellstyle{myls}(6,3)[(1;1-2;Z),(1;2-3;ls),(2-3;1.5-3.5;CS),(4;1-3;name),(5;1-2.5;lsa),(5;2.5-3;lsb),(6;1-2.5;lsc),(6;2.5-3;lsca)]%
\\ [-4pt]\pgfPTMmacrobox[l]{pgfPTstyle}[Z list={1,...,36},cell={w=36pt,h=42pt,style=myls}]%
\pgfPTstyle[Z list={1,...,36},cell height=40pt,cell={w=36pt,h=42pt,style=myls}]%
\\ [-4pt]\pgfPTMmacrobox{pgfPT}[]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=0]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=0]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=1]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=1]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=2]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=2]}}%
\\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=2,ls unit=A]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=2,ls unit=A]}}%
\\ [0pt]\pgfPTendoption%
% pseudo style -> lat={ls=??,c=??,f=??,align=??,p=??,u=??}
%       lat/.default={ls=fig,c=black,f=\tiny,align=right,p=-1,u=pm}%
\pgfPTMstyle{4}{lat}{\{ls=fig,c=black,f=\string\tiny,align=right,p=-1,u=pm\}}%
{\ \\ [-3pt]\textit{Pseudo style} to set the keys: \textbf{ls}, ls \textbf{c}olor, ls \textbf{f}ont, ls \textbf{align}, ls \textbf{p}recision and/or ls \textbf{u}nit.
None of the \textit{keys} -- ls, c, f, align, p and u -- are mandatory.\hfill\textit{\textcolor{blue}{(\pgfPTnewinversion{1.0.1})}}
\\ [10pt]\makebox[\linewidth][c]{\use{\tikz{\node[text width=9cm] {lat=\{ls=<fig|txt|fig+txt|txt+fig>,c=<color>,f=<font commands>,\\ %
\textcolor{cyan!10!white}{lat=\{}align=<left|center|right>,p=<integer value>,u=<pm|A>\}};}}}%
}%
\\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},lat={c=blue,f=\string\tiny\string\bfseries,u=A,p=2}]%
\\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},lat={c=blue,f=\tiny\bfseries,u=A,p=2}]}}%
\\ [0pt]\pgfPTendstyle%
\endinput