\subsection*{}{\normalfont\large\bfseries\raisebox{1.25pt}{$\mathbf{\blacktriangleright}$}\ Fit to Width Library}%
\label{lib:pgfPT_FW}\addcontentsline{toc}{subsection}{\texorpdfstring{Fit to Width Library}{fittowidth}}%
\index{LIBRARIES@\textbf{\cyan{LIBRARIES}}!fittowidth@\textbf{\red{Fit to Width Library}}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fit to Width Library
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\\ [4pt]\pgfPTlib{fittowidth}{\hypertarget{pgfPT:lib:fw}{This library} offers an easy way to adjust the overall width of the entire Periodic Table to the width of the text. It is particularly useful when used with the \red{Z links} option, where the \textrm{\large\string\resizebox} command (from the \textrm{\large graphicx} package) doesn't work -- the links are not placed in the correct location.
Two commands are defined, one to start and another to stop adjusting the text width.
\begin{itemize}
\item\bs{pgfPTfittowidth}\lp\red{font size}\rp%
\item\bs{pgfPTendfittowidth}%
\end{itemize}
}% \pgfPTlib
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tmpSectionFWI{\bs{pgfPTfittowidth}}%
\def\tmpSectionFW{\bs{pgfPTfittowidth}\lp\red{font size}\rp}%
\subsubsection*{}{\pgfPTMlibsubsubsection{\tmpSectionFW}}\vspace{6pt}%
\label{command:pgfPTfittowidth}\addcontentsline{toc}{subsubsection}{\texorpdfstring{\tmpSectionFWI{}}{\textbackslash pgfPTfittowidth}}%
\index{LIBRARIES@\textbf{\cyan{LIBRARIES}}!fittowidth@\textbf{\red{Fit to Width Library}}!\tmpSectionFWI}%
\\ [10pt]This command \textbf{starts adjusting} the entire Periodic Table to fit the text width, assuming the text width of the base \LaTeX\ classes, meaning that the page layout has not been altered in any other way.
It accepts a font size as an optional argument. This font size will cause the adjustment to be made as if the document's font size were \sq{10pt}, \sq{11pt} or \sq{12pt}. If the optional font size is not provided, the current document font size will be used. \textit{Note that any other font size will have no effect on the adjustment}.
% examples --------
\vfill%
\pgfPTMlibexample{%
\bs{pgfPTfittowidth}\textcolor{black!50}{\% this document font size: 10pt}%
\\ \pgfPTMmacro{pgfPT}[]%
}{%
\pgfPTfittowidth%
\pgfPT%
}% -----
\newpage%
\pgfPTMlibexample{%
\bs{pgfPTfittowidth}\lp\red{11pt}\rp\textcolor{black!50}{\% this document font size: 10pt}%
\\ \pgfPTMmacro{pgfPT}[]%
}{%
\pgfPTfittowidth[11pt]%
\pgfPT%
}% -----
\vfill%
\pgfPTMlibexample{%
\bs{pgfPTfittowidth}\lp\red{12pt}\rp\textcolor{black!50}{\% this document font size: 10pt}%
\\ \pgfPTMmacro{pgfPT}[]%
}{%
\pgfPTfittowidth[12pt]%
\pgfPT%
}% -----
\vfill%
\newpage%
\pgfPTMlibexample{%
\bs{pgfPTfittowidth}\lp\red{14pt}\rp\textcolor{black!50}{\% this document font size: 10pt}%
\\ \pgfPTMmacro{pgfPT}[]%
}{%
\pgfPTfittowidth[14pt]%
\pgfPT%
}% -----
\vfill%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tmpSectionFWII{\bs{pgfPTendfittowidth}}%
\def\tmpSectionFW{\bs{pgfPTendfittowidth}}%
\subsubsection*{}{\pgfPTMlibsubsubsection{\tmpSectionFW}}\vspace{6pt}%
\label{command:pgfPTfittowidth}\addcontentsline{toc}{subsubsection}{\texorpdfstring{\tmpSectionFWII{}}{\textbackslash pgfPTendfittowidth}}%
\index{LIBRARIES@\textbf{\cyan{LIBRARIES}}!fittowidth@\textbf{\red{Fit to Width Library}}!\tmpSectionFWII}%
\\ [10pt]This command \textbf{stops adjusting} the entire Periodic Table to fit the width of the text.
\vfill\newpage%
\newpage%
\pgfPTMlibexample{%
\bs{pgfPTfittowidth}\textcolor{black!50}{\% this document font size: 10pt}%
\\ \pgfPTMmacro{pgfPT}[Z list=spd]%
\\ \bs{pgfPTendfittowidth}
\\ \pgfPTMmacro{pgfPT}[Z list=spd]%
}{%
\pgfPTfittowidth%
\pgfPT[Z list=spd]%
\pgfPTendfittowidth%
\\ [20pt]\pgfPT[Z list=spd]%
}% -----
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
