summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex199
1 files changed, 199 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
new file mode 100644
index 00000000000..d1fb2a6c0f0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
@@ -0,0 +1,199 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% pgf-spectraManual documentation definitions
+% the code is not optimized, made by «chunks»
+% to carry out the development of the package
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\txttikz{\textsf{Ti\textit{k}Z}}%
+\def\txtPGFPLOTS{\textsf{\small PGFPLOTS}}%
+\def\txtspec{\textcolor{blue!50!black}{\textbackslash pgfspectra}}%
+\def\txtspecopt[#1]{\textcolor{blue!50!black}{\textbackslash pgfspectra[}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{]}}%
+\def\txtwlcolor#1{\textcolor{blue!50!black}{\textbackslash wlcolor\{}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{\}}}%
+\def\txtwlcolorname{\textcolor{blue!50!black}{\textbackslash wlcolor}}%
+\def\txttempercolor#1{\textcolor{blue!50!black}{\textbackslash tempercolor\{}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{\}}}
+\def\txtshadename{\textcolor{blue!50!black}{\textbackslash pgfspectrashade}}%
+\def\txtshade{\textcolor{blue!50!black}{\textbackslash pgfspectrashade[}\textcolor{red!50!black}{<h|v>\textcolor{blue!50!black}{](}\textcolor{red!50!black}{start,end}\textcolor{blue!50!black}{)\{}\textcolor{red!50!black}{name}\textcolor{blue!50!black}{\}}}}%
+\def\txtshadecom(#1,#2)#3{\textcolor{blue!50!black}{\textbackslash pgfspectrashade(}\textcolor{red!50!black}{#1,#2}\textcolor{blue!50!black}{)\{}\textcolor{red!50!black}{#3}\textcolor{blue!50!black}{\}}}%
+\def\txtshadecomoption[#1](#2,#3)#4{\textcolor{blue!50!black}{\textbackslash pgfspectrashade[}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{](}\textcolor{red!50!black}{#2,#3}\textcolor{blue!50!black}{)\{}\textcolor{red!50!black}{#4}\textcolor{blue!50!black}{\}}}%
+\def\txtshadelogname{\textcolor{blue!50!black}{\textbackslash pgfspectralogshade}}%
+\def\txtshadetikz#1#2#3{\texttt{\textbackslash tikz\{\textbackslash\string f{i}ll[#1] (#2) rectangle (#3);\}}}%
+\def\txtnewline{\textbackslash\textbackslash\ }%
+\def\txtplotshadename{\textcolor{blue!50!black}{\textbackslash pgfspectraplotshade}}%
+\def\txtplotshade{\textcolor{blue!50!black}{\textbackslash pgfspectraplotshade[}\textcolor{red!50!black}{options}\textcolor{blue!50!black}{]\{}\textcolor{red!50!black}{name}\textcolor{blue!50!black}{\}}}%
+\def\txtplotshadecom#1{\textcolor{blue!50!black}{\textbackslash pgfspectraplotshade\{}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{\}}}%
+\def\txtplotshadecomoption[#1]#2{\textcolor{blue!50!black}{\textbackslash pgfspectraplotshade[}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{]\{}\textcolor{red!50!black}{#2}\textcolor{blue!50!black}{\}}}%
+\def\txtplotmapname{\textcolor{blue!50!black}{\textbackslash pgfspectraplotmap}}%
+\def\txtplotmap{\textcolor{blue!50!black}{\textbackslash pgfspectraplotmap[}\textcolor{red!50!black}{<l|h>}\textcolor{blue!50!black}{]\{}\textcolor{red!50!black}{name}\textcolor{blue!50!black}{\}}}%
+\def\txtplotmapcom#1{\textcolor{blue!50!black}{\textbackslash pgfspectraplotmap\{}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{\}}}%
+\def\txtplotmapcomoption[#1]#2{\textcolor{blue!50!black}{\textbackslash pgfspectraplotmap[}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{]\{}\textcolor{red!50!black}{#2}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbow{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{red!50!black}{<[tikz options]><(rainbow options)>}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{radius}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbowtitle{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{red!50!black}{<[tikz options]><(rainbow\\ [2pt]\makebox[1.1em][s]{}options)>}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{radius}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbowname{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}}%2em
+\def\txtrainbowcom#1{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbowcomoptions[#1](#2)#3{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{red!50!black}{[#1](#2)}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{#3}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbowcomoptiontikz[#1]#2{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{red!50!black}{[#1]}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{#2}\textcolor{blue!50!black}{\}}}%
+\def\txtrainbowcomoptionrainbow(#1)#2{\textcolor{blue!50!black}{\textbackslash pgfspectrarainbow}\textcolor{red!50!black}{(#1)}\textcolor{blue!50!black}{\{}\textcolor{red!50!black}{#2}\textcolor{blue!50!black}{\}}}%
+\def\pack{\large\texttt{pgf-spectra}\normalsize}%
+\def\txtspecsty{\textcolor{blue!50!black}{\textbackslash pgfspectraStyle}}%
+\def\txtspecstyle[#1]{\textcolor{blue!50!black}{\textbackslash pgfspectraStyle[}\textcolor{red!50!black}{#1}\textcolor{blue!50!black}{]}}%
+\def\txtspecstylereset{\textcolor{blue!50!black}{\textbackslash pgfspectraStyleReset}}%
+\def\sectioncom#1#2#3{% #3 -> space before the spectra
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em] at (0,0) {#1};}}%
+\\ [1pt]\makebox[#3][s]{}#2\relax%
+\\ [-6pt]\makebox[\textwidth][c]{\tikz{\draw[fill=black!20,draw=black!20,rounded corners=1pt] (0,0) rectangle ++(\textwidth,-3pt);}}%
+\smallskip}%
+%
+\def\bigsectioncom#1#2#3#4{% #4 -> space before the spectra
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em] at (0,0) {#1};}}%
+\newpage%
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em] at (0,0) {#2};}}%
+\\ [1pt]\makebox[#4][s]{}#3\relax%
+\\ [-6pt]\makebox[\textwidth][c]{\tikz{\draw[fill=black!20,draw=black!20,rounded corners=1pt] (0,0) rectangle ++(\textwidth,-3pt);}}%
+\smallskip}%
+%
+\makeatletter%
+\def\com{\@ifnextchar[\@com{\@com[0pt]}}%
+\def\@com[#1]#2#3{%
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em-5mm] at (0,0) {#2};}}%
+\\ [1pt]\makebox[\textwidth][c]{#3\relax}%
+\pgfmathparse{-6pt+#1}\edef\myparskip{\pgfmathresult pt}%
+\\ [\myparskip]\makebox[\textwidth][c]{\tikz{\draw[fill=black!20,draw=black!20,rounded corners=1pt] (0,0) rectangle ++(\textwidth-5mm,-3pt);}}%
+\smallskip}%
+\makeatother%
+\def\comnewpage#1#2{%
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em-5mm] at (0,0) {#1};}}%
+\newpage\makebox[\textwidth][c]{#2\relax}%
+\\ [-6pt]\makebox[\textwidth][c]{\tikz{\draw[fill=black!20,draw=black!20,rounded corners=1pt] (0,0) rectangle ++(\textwidth-5mm,-3pt);}}%
+\smallskip}%
+\def\bigexample#1#2{%
+\makebox[\textwidth][c]{\tikz{\node[fill=black!20,draw=black!20,rounded corners=1pt,right,text width=\textwidth-.6666em-5mm] at (0,0) {#1};}}%
+\\ [1pt]\makebox[.025\textwidth][s]{}\begin{minipage}{.9\linewidth}
+#2\relax\end{minipage}%
+\\ \makebox[\textwidth][c]{\tikz{\draw[fill=black!20,draw=black!20,rounded corners=1pt] (0,0) rectangle ++(\textwidth-5mm,-3pt);}}%
+\smallskip}%
+%%%%%%%%%%%%%%%%
+\pgfdeclarelayer{back}
+\pgfsetlayers{back,main}
+\def\option#1#2#3{% option,default,description
+% before skip in class 3.25ex plus -1ex minus -0.2ex after skip in class1.5ex plus 0.2ex ->
+\vskip-4.75ex\vskip-18pt\ \subsection*{}\addcontentsline{toc}{subsection}{\texorpdfstring{$\rightsquigarrow$ #1}{#1}}%
+\begin{tikzpicture}%
+\node[below right,font=\small\bfseries] (a) at (0,0) {\hypertarget{option:#1}{#1}};%
+\node[below left,font=\small] (b) at (\textwidth-.3333em,0) {default: \itshape#2};
+\node[below right,text=black!80,font=\small,text width=\textwidth-.6666em] (c) at (a.south west) {#3};
+\begin{pgfonlayer}{back}
+\path[left color=orange!20,right color=black!30!orange!50,rounded corners=2pt] (a.north west) rectangle (c.south east);
+\end{pgfonlayer}
+\end{tikzpicture}%
+}%
+\def\newoption#1#2#3{% option,default,description
+\vskip-4.75ex\vskip-18pt\ \subsection*{}\addcontentsline{toc}{subsection}{\texorpdfstring{$\rightsquigarrow$ #1}{#1}}%
+\begin{tikzpicture}%
+\node[below right,font=\small\bfseries] (a) at (0,0) {\hypertarget{option:#1}{#1}};%
+\node[below left,font=\small] (b) at (\textwidth-.3333em,0) {default: \itshape#2};
+\node[below right,text=black!80,font=\small,text width=\textwidth-.6666em] (c) at (a.south west) {#3\hfill\textit{\textcolor{blue}{(new in v\version)}}};
+\begin{pgfonlayer}{back}
+\path[left color=orange!20,right color=black!30!orange!50,rounded corners=2pt] (a.north west) rectangle (c.south east);
+\end{pgfonlayer}
+\end{tikzpicture}%
+}%
+\def\newminoroption#1#2#3{% option,default,description
+\vskip-4.75ex\vskip-18pt\ \subsection*{}\addcontentsline{toc}{subsection}{\texorpdfstring{$\rightsquigarrow$ #1}{#1}}%
+\begin{tikzpicture}%
+\node[below right,font=\small\bfseries] (a) at (0,0) {\hypertarget{option:#1}{#1}};%
+\node[below left,font=\small] (b) at (\textwidth-.3333em,0) {default: \itshape#2};
+\node[below right,text=black!80,font=\small,text width=\textwidth-.6666em] (c) at (a.south west) {#3\hfill\textit{\textcolor{blue}{(new in v\minorversion)}}};
+\begin{pgfonlayer}{back}
+\path[left color=orange!20,right color=black!30!orange!50,rounded corners=2pt] (a.north west) rectangle (c.south east);
+\end{pgfonlayer}
+\end{tikzpicture}%
+}%
+\def\newminorrevoption#1#2#3{% option,default,description
+\vskip-4.75ex\vskip-18pt\ \subsection*{}\addcontentsline{toc}{subsection}{\texorpdfstring{$\rightsquigarrow$ #1}{#1}}%
+\begin{tikzpicture}%
+\node[below right,font=\small\bfseries] (a) at (0,0) {\hypertarget{option:#1}{#1}};%
+\node[below left,font=\small] (b) at (\textwidth-.3333em,0) {default: \itshape#2};
+\node[below right,text=black!80,font=\small,text width=\textwidth-.6666em] (c) at (a.south west) {#3\hfill\mbox{\textit{\textcolor{blue}{(new in v\minorrevversion)}}}};
+\begin{pgfonlayer}{back}
+\path[left color=orange!20,right color=black!30!orange!50,rounded corners=2pt] (a.north west) rectangle (c.south east);
+\end{pgfonlayer}
+\end{tikzpicture}%
+}%
+\def\endoption{\\ [-9pt]\tikz{\path[left color=orange!20,right color=black!30!orange!50,rounded corners=2pt] (0,0) rectangle ++(\textwidth,-4.5pt);}}
+% for options table
+%
+\newdimen\cellht%
+\newdimen\wdbi\newdimen\wdbii\newdimen\wdbiii\newdimen\wdbiv\newdimen\wdbv%\newdimen\wdbvi%
+\newdimen\boxinnersep\boxinnersep=8pt\relax%
+%
+\def\header{%
+\wdbi=.16\linewidth\wdbii=.42\linewidth\wdbiii=.09\linewidth\wdbiv=.15\linewidth\wdbv=.18\linewidth%\wdbvi=.08\linewidth%
+\begin{tikzpicture}[every node/.style={inner sep=0pt,font=\scriptsize\bfseries,draw=black!75,fill=black!20,below right,text height=10pt,text depth=4pt}]
+\node[text width=\wdbi] (key) at (0,0) {\ key};% 1
+\node[text width=\wdbii] (desc) at ([xshift=-1pt]key.north east) {\ description};% 2
+\node[text width=\wdbiii] (type) at ([xshift=-1pt]desc.north east) {\ type};% 3
+\node[text width=\wdbiv] (default) at ([xshift=-1pt]type.north east) {\ default};% 4
+\node[text width=\wdbv] (values) at ([xshift=-1pt]default.north east) {\ value(s)};% 5
+\end{tikzpicture}%
+}%
+\def\linhaimpar#1#2#3#4#5{%
+\wdbi=.16\linewidth\wdbii=.42\linewidth\wdbiii=.09\linewidth\wdbiv=.15\linewidth\wdbv=.18\linewidth%\wdbvi=.08\linewidth%
+\advance\wdbi by-\boxinnersep\relax%
+\advance\wdbii by-\boxinnersep\relax%
+\advance\wdbiii by-\boxinnersep\relax%
+\advance\wdbiv by-\boxinnersep\relax%
+\advance\wdbv by-\boxinnersep\relax%
+\setbox0=\vbox{\hsize=\wdbi\scriptsize#1}%
+\setbox1=\vbox{\hsize=\wdbii\scriptsize#2}%
+\setbox2=\vbox{\hsize=\wdbiii\scriptsize#3}%
+\setbox3=\vbox{\hsize=\wdbiv\scriptsize#4}%
+\setbox4=\vbox{\hsize=\wdbv\scriptsize#5}%
+\cellht=\ht0\relax%
+\ifdim\cellht<\ht1\relax\cellht=\ht1\relax\fi%
+\ifdim\cellht<\ht2\relax\cellht=\ht2\relax\fi%
+\ifdim\cellht<\ht3\relax\cellht=\ht3\relax\fi%
+\ifdim\cellht<\ht4\relax\cellht=\ht4\relax\fi%
+\setbox0=\vbox to \cellht{\hsize=\wdbi\scriptsize#1\vfill}%
+\setbox1=\vbox to \cellht{\hsize=\wdbii\scriptsize#2\vfill}%
+\setbox2=\vbox to \cellht{\hsize=\wdbiii\scriptsize#3\vfill}%
+\setbox3=\vbox to \cellht{\hsize=\wdbiv\scriptsize#4\vfill}%
+\setbox4=\vbox to \cellht{\hsize=\wdbv\scriptsize#5\vfill}%
+\begin{tikzpicture}[every node/.style={inner xsep=.225\boxinnersep,draw=black!75,fill=black!5,below right,text height=\cellht,text depth=2pt}]
+\node[text width=\wdbi+.55\boxinnersep] (key) at (0,0) {\color{red!50!black}\usebox0};
+\node[text width=\wdbii+.55\boxinnersep] (desc) at ([xshift=-1pt]key.north east) {\usebox1};
+\node[text width=\wdbiii+.55\boxinnersep] (type) at ([xshift=-1pt]desc.north east) {\usebox2};
+\node[text width=\wdbiv+.55\boxinnersep] (default) at ([xshift=-1pt]type.north east) {\usebox3};
+\node[text width=\wdbv+.55\boxinnersep] (values) at ([xshift=-1pt]default.north east) {\usebox4};
+%\node[text width=\wdbvi+.55\boxinnersep] at ([xshift=-1pt]values.north east) {\usebox5};
+\end{tikzpicture}%
+}%
+\def\linhapar#1#2#3#4#5{%
+\wdbi=.16\linewidth\wdbii=.42\linewidth\wdbiii=.09\linewidth\wdbiv=.15\linewidth\wdbv=.18\linewidth%\wdbvi=.08\linewidth%
+\advance\wdbi by-\boxinnersep\relax%
+\advance\wdbii by-\boxinnersep\relax%
+\advance\wdbiii by-\boxinnersep\relax%
+\advance\wdbiv by-\boxinnersep\relax%
+\advance\wdbv by-\boxinnersep\relax%
+\setbox0=\vbox{\hsize=\wdbi\scriptsize#1}%
+\setbox1=\vbox{\hsize=\wdbii\scriptsize#2}%
+\setbox2=\vbox{\hsize=\wdbiii\scriptsize#3}%
+\setbox3=\vbox{\hsize=\wdbiv\scriptsize#4}%
+\setbox4=\vbox{\hsize=\wdbv\scriptsize#5}%
+\cellht=\ht0\relax%
+\ifdim\cellht<\ht1\relax\cellht=\ht1\relax\fi%
+\ifdim\cellht<\ht2\relax\cellht=\ht2\relax\fi%
+\ifdim\cellht<\ht3\relax\cellht=\ht3\relax\fi%
+\ifdim\cellht<\ht4\relax\cellht=\ht4\relax\fi%
+\setbox0=\vbox to \cellht{\hsize=\wdbi\scriptsize#1\vfill}%
+\setbox1=\vbox to \cellht{\hsize=\wdbii\scriptsize#2\vfill}%
+\setbox2=\vbox to \cellht{\hsize=\wdbiii\scriptsize#3\vfill}%
+\setbox3=\vbox to \cellht{\hsize=\wdbiv\scriptsize#4\vfill}%
+\setbox4=\vbox to \cellht{\hsize=\wdbv\scriptsize#5\vfill}%
+\begin{tikzpicture}[every node/.style={inner xsep=.225\boxinnersep,draw=black!75,fill=black!10,below right,text height=\cellht,text depth=2pt}]
+\node[text width=\wdbi+.55\boxinnersep] (key) at (0,0) {\color{red!50!black}\usebox0};
+\node[text width=\wdbii+.55\boxinnersep] (desc) at ([xshift=-1pt]key.north east) {\usebox1};
+\node[text width=\wdbiii+.55\boxinnersep] (type) at ([xshift=-1pt]desc.north east) {\usebox2};
+\node[text width=\wdbiv+.55\boxinnersep] (default) at ([xshift=-1pt]type.north east) {\usebox3};
+\node[text width=\wdbv+.55\boxinnersep] (values) at ([xshift=-1pt]default.north east) {\usebox4};
+\end{tikzpicture}%
+}%
+\endinput%