diff options
Diffstat (limited to 'graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex')
-rw-r--r-- | graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex | 66 |
1 files changed, 61 insertions, 5 deletions
diff --git a/graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex b/graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex index d1fb2a6c0f..268fbee066 100644 --- a/graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex +++ b/graphics/pgf/contrib/pgf-spectra/pgf-spectraManual_defs.tex @@ -3,6 +3,62 @@ % the code is not optimized, made by «chunks» % to carry out the development of the package %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{makeidx} +\makeindex% +\usepackage{listings} +\lstdefinestyle{numbers} + {numbers=left, stepnumber=1, numberstyle=\tiny\color{black!70}, numbersep=10pt} +\lstset{% + keywordstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize\color{blue!50!black},% + basicstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize,% + style=numbers,% + breaklines=true,% + breakindent=10pt,% + commentstyle=\fontfamily{Roboto-LF}\selectfont\itshape\footnotesize\color{green!50!black},% + stringstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize,% + showstringspaces=false,% + language=[LaTeX]TeX,% + defaultdialect=[LaTeX]TeX,% + deletekeywords={gamma,Gamma},% + classoffset=0,% + texcsstyle=*[0]{\fontfamily{Roboto-LF}\selectfont\footnotesize\color{blue!50!black}}, + morekeywords={PackageError,RequirePackage,DeclareOption,ExecuteOptions,ProcessOptions,% + @Roman,@for,ProvidesPackage,setlength},% + keywordstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize\color{blue!50!black},% + classoffset=1,% + texcsstyle=*[1]{\fontfamily{Roboto-LF}\selectfont\footnotesize\color{orange!50!black}},% + morekeywords={PreviewEnvironment,definecolor,colorlet,pgfkeys,tikz,% + foreach,pgfmathparse,pgfmathresult,pgfmathprintnumberto,pgfdeclarehorizontalshading,draw,node,% + pgfdeclareradialshading,pgfdeclareverticalshading,clip},% + keywordstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize\color{orange!50!black},% + classoffset=2,% + texcsstyle=*[2]{\fontfamily{Roboto-LF}\selectfont\footnotesize\color{red!55!black}},% + morekeywords={wlcolor,tempercolor,pgfspectra,pgfspectraStyle,pgfspectraStyleReset,pgfspectrashade,% + pgfspectraplotshade,pgfspectraplotmap,pgfspectrarainbow},% + keywordstyle=\fontfamily{Roboto-LF}\selectfont\footnotesize\color{red!55!black},% + classoffset=0% +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\makeatletter% +\renewenvironment{theindex}% + {\if@twocolumn% + \@restonecolfalse% + \else% + \@restonecoltrue% + \fi% +% \twocolumn[\section*{\indexname}]% + \twocolumn[\section{\indexname}]% + \@mkboth{\MakeUppercase\indexname}% + {\MakeUppercase\indexname}% + \thispagestyle{pgfSpectraManual}\parindent\z@% + \parskip\z@ \@plus .3\p@\relax% + \columnseprule \z@% + \columnsep 35\p@% + \let\item\@idxitem}% + {\if@restonecol\onecolumn\else\clearpage\fi}% +\makeatother% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\bs#1{\textcolor{blue!50!black}{\textbackslash#1}}% \def\txttikz{\textsf{Ti\textit{k}Z}}% \def\txtPGFPLOTS{\textsf{\small PGFPLOTS}}% \def\txtspec{\textcolor{blue!50!black}{\textbackslash pgfspectra}}% @@ -73,7 +129,7 @@ %%%%%%%%%%%%%%%% \pgfdeclarelayer{back} \pgfsetlayers{back,main} -\def\option#1#2#3{% option,default,description +\def\option#1#2#3{\index{OPTIONS@\textbf{OPTIONS}\addtoind!#1}% 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}% @@ -85,18 +141,18 @@ \end{pgfonlayer} \end{tikzpicture}% }% -\def\newoption#1#2#3{% option,default,description +\def\newoption#1#2#3{\index{OPTIONS@\textbf{OPTIONS}\addtoind!#1}% 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)}}}; +\node[below right,text=black!80,font=\small,text width=\textwidth-.6666em] (c) at (a.south west) {#3\hfill\textit{\textcolor{blue}{(new in v2.0.0)}}}; \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 +\def\newminoroption#1#2#3{\index{OPTIONS@\textbf{OPTIONS}\addtoind!#1}% 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}};% @@ -107,7 +163,7 @@ \end{pgfonlayer} \end{tikzpicture}% }% -\def\newminorrevoption#1#2#3{% option,default,description +\def\newminorrevoption#1#2#3{\index{OPTIONS@\textbf{OPTIONS}\addtoind!#1}% 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}};% |