diff options
Diffstat (limited to 'graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex')
-rw-r--r-- | graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex b/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex index d800fff1ed..74917d18ba 100644 --- a/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex +++ b/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex @@ -2,7 +2,7 @@ % Definitions for pgf-PeriodicTable Manual % Hugo Gomes @ 08/11/2022 v1.0.1 % Hugo Gomes @ 10/10/2022 v1.0.0 -\def\pgfPTversion{1.0.1}% +\def\pgfPTversion{2.0.0}% \def\pgfPTnewinversion#1{new in v#1}% \def\pgfPTchangedinversion#1{changed in v#1}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -65,6 +65,7 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision}, \usepackage{amssymb} \usepackage{amsmath} \usepackage{tabularx} +\usepackage{calc} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \makeatletter% \renewenvironment{theindex}% @@ -85,9 +86,14 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision}, {\if@restonecol\onecolumn\else\clearpage\fi}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\pack{\large\texttt{\color{blue!70!black}pgf-PeriodicTable}\normalsize}% +\def\txttt#1{\large\texttt{#1}\normalsize}% \def\txttikz{{\fontfamily{cmr}\selectfont Ti\emph{k}Z}}% -\def\ie{\textit{i.e.\/}} +\def\ie{\textit{i.e.\/}}% +\def\eg{\textit{e.g.\/}}% \def\myldots{\tikz{\fill (0,0) circle(.6pt);\fill (2.4pt,0) circle(.6pt);\fill (4.8pt,0) circle(.6pt);}}% +\def\cyan#1{\textcolor{cyan!50!black}{#1}}% +\def\dcyan#1{\textcolor{cyan!30!black}{#1}}% +\def\gray#1{\textcolor{black!50}{#1}}% \def\blue#1{\textcolor{blue!50!black}{#1}}% \def\lblue#1{\textcolor{blue!70!black}{#1}}% \def\green#1{\textcolor{green!50!black}{#1}}% @@ -163,6 +169,11 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision}, colframe=cyan!50!black,coltext=cyan!25!black,colback=cyan!10!white,fontupper=\scriptsize,% overlay={\begin{tcbclipinterior}\fill[cyan!50!white] (frame.south west)% rectangle node[text=white,font=\scriptsize\bfseries,anchor=mid] {USAGE:} ([xshift=15mm]frame.north west);\end{tcbclipinterior}}} +\newtcbox{\uselib}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,% + right=0mm,left=15mm,arc=1pt,boxsep=2pt,% + colframe=cyan!50!black,coltext=cyan!25!black,colback=cyan!10!white,fontupper=\small,% + overlay={\begin{tcbclipinterior}\fill[cyan!50!white] (frame.south west)% + rectangle node[text=white,font=\small\bfseries,anchor=mid] {USAGE: } ([xshift=15mm]frame.north west);\end{tcbclipinterior}}}% \newcommand\mymfbox[2][gray]{\begin{tcolorbox} [breakable,enhanced,arc=2.5pt,outer arc=2.5pt,colback=#1!10!white,colframe=#1!50!black,boxsep=3pt,left=3pt,right=3pt,top=3pt,bottom=3pt,boxrule=1pt] #2\end{tcolorbox}} @@ -362,6 +373,42 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision}, \node[text width=\wdbiv+.55\boxinnersep] at ([xshift=-1pt]unit.north east) {\usebox3}; \end{tikzpicture}% }% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% LIBRARIES +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\pgfPTlib#1#2{\begingroup\renewcommand{\hrulefill}{\leavevmode\leaders\hrule height 1pt\hfill\kern0pt}% +\renewcommand{\dotfill}{\leavevmode\cleaders\hbox to 1.0em{\hss --\hss }\hfill\kern0pt}% +\setbox0=\hbox{\ pgf-PeriodicTable Library \red{\hypertarget{lib:#1}{#1}}\ }% +\raisebox{.25\ht0}{\makebox[.1125\linewidth][s]{\color{cyan!50!black}\hrulefill}}% +\hspace{-.1125\linewidth}\raisebox{.25\ht0+1.75pt}{\makebox[.1125\linewidth][s]{\color{cyan!70!black}\hrulefill}}% +\usebox0% +\raisebox{.25\ht0}{\makebox[.8875\linewidth-\wd0][s]{\color{cyan!50!black}\hrulefill}}% +\hspace{-.8875\linewidth}\hspace{\wd0}\raisebox{.25\ht0+1.75pt}{\makebox[.8875\linewidth-\wd0][s]{\color{cyan!70!black}\hrulefill}}% +\\ [12pt]\makebox[8pt][s]{}\uselib{\bs{usepgfPTlibrary}\lb\red{#1}\rb}% +\\ [12pt]\makebox[\linewidth][s]{\color{cyan!50!black}\dotfill}% +\\ [6pt]\makebox[8pt][s]{}\begin{minipage}{\linewidth-16pt}#2\end{minipage}% +\\ [6pt]\makebox[\linewidth][s]{\color{cyan!70!black}\hrulefill}\hspace{-\linewidth}% +\raisebox{1.75pt}{\makebox[\linewidth][s]{\color{cyan!50!black}\hrulefill}}\endgroup% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\pgfPTMlibsubsubsection#1{% +\tikz{\node[cyan!50!black,font=\large] (ding) at (0,0) {\ding{224} };% +\node[fill=cyan!5!white,text width={\linewidth-14.68799pt-1em},below right] (txt) at ([yshift=1pt]ding.north east) {#1};% +\draw[cyan!50!black] (txt.north west) -- (txt.north east);% +\draw[cyan!50!black] (txt.south west) -- (txt.south east);% +}}% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% \pgfPTMlibexample{codetxt}{code} +\def\pgfPTMlibexample#1#2{\ignorespaces% +\begin{tikzpicture}% +\node[below right,text width=\textwidth-.6666em,rounded corners=2pt,left color=black!10,right color=black!14] (a) at (0,0) {#1};% +\node[below right,text width=\textwidth-.6666em,text centered] (c) at (a.south west) {#2};% +\begin{pgfonlayer}{back}% +%\path[left color=black!5!cyan!12,right color=teal!12!white,draw=cyan!50!black,rounded corners=2pt] (a.north west) rectangle (c.south east);% +\path[left color=white,right color=cyan!4,draw=cyan!50!black,rounded corners=2pt] (a.north west) rectangle (c.south east);% +\end{pgfonlayer}% +\end{tikzpicture}% +}% \makeatother% % \endinput% |