Debian Codegraph @

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

raw
1 \vfill%
2 \subsubsection{\texorpdfstring{\ding{224} The lattice structure}{The lattice structure}}\vspace{6pt}%
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 % ls
5 \pgfPTMoption[\pgfPTchangedinversion{2.1.6}]{4}{ls}{fig}{%
6 Sets what is displayed for the lattice structure: a figure -- \sq{fig} -- or text -- \sq{txt} -- or both -- \sq{fig+txt} or \sq{txt+fig}. Since version 2.1.6, a starred version of the flags -- \sq{fig*}, \sq{txt*}, \sq{fig+txt*} and \sq{txt+fig*} -- is available, which omits the structure figure in the extra legend that describes the structures' abbreviations.}
7 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls]%
8 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls]}}%
9 \\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=fig*]%
10 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=fig*]}}%
11 \newpage\ %\\ [10pt]
12 \vfill%
13 \pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt]%
14 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt]}}%
15 \\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt*]%
16 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt*]}}%
17 \vfill%
18 \pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt]%
19 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt]}}%
20 \\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt*]%
21 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=fig+txt*]}}%
22 \vfill%
23 \newpage%\\ [10pt]
24 \pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig]%
25 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig]}}%
26 \\ [10pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig*]%
27 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig*]}}%
28 \\ [0pt]\pgfPTendoption%
29 % ls color
30 \vfill%
31 \pgfPTMoption{4}{ls color}{black}{%
32 Sets the lattice structure text color.
33 }
34 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls color=red]%
35 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,,ls=txt+fig,ls color=red]}}%
36 \\ [0pt]\pgfPTendoption%
37 % ls font
38 \vfill%
39 \pgfPTMoption{4}{ls font}{\string\tiny}{%
40 Sets the lattice structure text font.
41 }
42 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls font=\string\tiny\string\bfseries]%
43 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls=txt+fig,ls font=\tiny\bfseries]}}%
44 \\ [0pt]\pgfPTendoption%
45 % ls align
46 \newpage\ \\ [-32pt]%
47 \pgfPTMoption{4}{ls align}{right}{%
48 Sets the alignment of the lattice structure to \red{left} or \red{center} or \red{right}.
49 }
50 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},cell style=pgfPTls,ls align=center]%
51 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},cell style=pgfPTls,ls align=center]}}%
52 \\ [-5pt]\pgfPTendoption%
53 % ls unit=<A|pm> .default=pm
54 \pgfPTMoption[\pgfPTnewinversion{1.0.1}]{4}{ls unit}{pm}{%
55 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).}%
56 \\ [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), %
57 (6;1-2.5;lsb),(6;2.5-3;lsca)]%
58 \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)]%
59 \\ [-4pt]\pgfPTMmacrobox[l]{pgfPTstyle}[Z list={1,...,36},cell style=myls,show title=false,ls align=center]%
60 \pgfPTstyle[Z list={1,...,36},cell style=myls,show title=false,ls align=center]%
61 \\ [-4pt]\pgfPTMmacrobox{pgfPT}[]%
62 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT}}%
63 \\ [5pt]\pgfPTMmacrobox{pgfPT}[ls unit=A]%
64 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls unit=A]}}%
65 \\ [-5pt]\pgfPTendoption%
66 % ls precision
67 \pgfPTMoption{4}{ls precision}{-1}{%
68 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.
69 \\ [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.
70 \\ \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.}};}
71 }
72 %\vfill%\\ [10pt]
73 \newpage%
74 \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), %
75 (5;2.5-3;lsb),(6;1-2.5;lsc),(6;2.5-3;lsca)]%
76 \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)]%
77 \\ [-4pt]\pgfPTMmacrobox[l]{pgfPTstyle}[Z list={1,...,36},cell={w=36pt,h=42pt,style=myls}]%
78 \pgfPTstyle[Z list={1,...,36},cell height=40pt,cell={w=36pt,h=42pt,style=myls}]%
79 \\ [-4pt]\pgfPTMmacrobox{pgfPT}[]%
80 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT}}%
81 \\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=0]%
82 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=0]}}%
83 \\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=1]%
84 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=1]}}%
85 \\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=2]%
86 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=2]}}%
87 \\ [10pt]\pgfPTMmacrobox{pgfPT}[ls precision=2,ls unit=A]%
88 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[ls precision=2,ls unit=A]}}%
89 \\ [0pt]\pgfPTendoption%
90 % pseudo style -> lat={ls=??,c=??,f=??,align=??,p=??,u=??}
91 % lat/.default={ls=fig,c=black,f=\tiny,align=right,p=-1,u=pm}%
92 \pgfPTMstyle{4}{lat}{\{ls=fig,c=black,f=\string\tiny,align=right,p=-1,u=pm\}}%
93 {\ \\ [-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.
94 None of the \textit{keys} -- ls, c, f, align, p and u -- are mandatory.\hfill\textit{\textcolor{blue}{(\pgfPTnewinversion{1.0.1})}}
95 \\ [10pt]\makebox[\linewidth][c]{\use{\tikz{\node[text width=9cm] {lat=\{ls=<fig|txt|fig+txt|txt+fig>,c=<color>,f=<font commands>,\\ %
96 \textcolor{cyan!10!white}{lat=\{}align=<left|center|right>,p=<integer value>,u=<pm|A>\}};}}}%
97 }%
98 \\ [5pt]\pgfPTMmacrobox{pgfPT}[Z list={1,...,36},lat={c=blue,f=\string\tiny\string\bfseries,u=A,p=2}]%
99 \\ [5pt]\makebox[\linewidth][c]{\scalebox{.6}{\pgfPT[Z list={1,...,36},lat={c=blue,f=\tiny\bfseries,u=A,p=2}]}}%
100 \\ [0pt]\pgfPTendstyle%
101 \endinput