summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-16 21:18:04 +0000
committerKarl Berry <karl@freefriends.org>2021-12-16 21:18:04 +0000
commit7a5cbec8578dedfeb168e392e7e6c954fd2a62b5 (patch)
tree27f0e7f244601410278e002c8c347e0887276400 /Master/texmf-dist
parentbf627525b208d352f07cafc859884f6239899ba1 (diff)
pst-hsb (16dec21)
git-svn-id: svn://tug.org/texlive/trunk@61322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/generic/pst-hsb/Changes8
-rw-r--r--Master/texmf-dist/doc/generic/pst-hsb/README19
-rw-r--r--Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.bib106
-rw-r--r--Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.pdfbin0 -> 200014 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex153
-rw-r--r--Master/texmf-dist/tex/generic/pst-hsb/pst-hsb.tex131
-rw-r--r--Master/texmf-dist/tex/latex/pst-hsb/pst-hsb.sty11
7 files changed, 428 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-hsb/Changes b/Master/texmf-dist/doc/generic/pst-hsb/Changes
new file mode 100644
index 00000000000..8a38b6c68af
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-hsb/Changes
@@ -0,0 +1,8 @@
+..... pst-hsb.tex
+0.02 2017-12-17 - small fixes
+0.01 2012-01-01 - first version
+
+
+..... pst-hsb.sty
+ 2012-01-01 first version
+
diff --git a/Master/texmf-dist/doc/generic/pst-hsb/README b/Master/texmf-dist/doc/generic/pst-hsb/README
new file mode 100644
index 00000000000..cd130d90cc4
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-hsb/README
@@ -0,0 +1,19 @@
+If you have one of the official TeX distribution installed, then
+all files are still present or can be installed by using the file manager.
+Otherwise save the files pst-hsb.sty|tex in a directory, which is part of your
+local TeX tree.
+Then do not forget to run texhash to update this tree.
+
+pst-hsb needs pst-plot (pstricks-add) and pstricks, which should
+be part of your local TeX installation, otherwise get it from a
+CTAN server, https://mirror.ctan.org
+
+PSTricks is PostScript Tricks, the documentation cannot be run
+with pdftex, use the sequence latex->dvips->ps2pdf or simply lualatex.
+
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+
+
+%% $Id: README 350 2021-12-16 10:20:18Z herbert $
diff --git a/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.bib b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.bib
new file mode 100644
index 00000000000..f6ac03b8a01
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.bib
@@ -0,0 +1,106 @@
+%% -*-bibtex-*-
+@STRING{tugboat = {TUGboat} }
+@STRING{beiprogramm = {{\TeX}-Beiprogramm} }
+@STRING{bretter = {Bretter, die die Welt bedeuten} }
+@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} }
+@STRING{editorial = {Editorial} }
+@STRING{fremdebuehne = {Von fremden B{\"u}hnen} }
+@STRING{fundus = {Aus dem Fundus} }
+@STRING{hinterbuehne = {Hinter der B{\"u}hne} }
+@STRING{leserbrief = {Leserbrief(e)} }
+@STRING{magazin = {Magazin} }
+@STRING{rezension = {Rezensionen} }
+@STRING{schonimmer = {Was Sie schon immer {\"u}ber {\TeX} wissen wollten \dots} }
+@STRING{theaterkasse = {Von der Theaterkasse} }
+@STRING{theatertage = {{\TeX}-Theatertage} }
+
+@Book{PSTricks2,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}rafik f\"ur \TeX{} und \LaTeX},
+ edition = {7},
+ publisher = {DANTE and Lehmanns},
+ year = {2016},
+ address = {Heidelberg/Berlin}
+}
+
+@Book{PSTricks-E,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}raphics for \LaTeX},
+ edition = {1},
+ publisher = {UIT},
+ year = {2011},
+ address = {Cambridge}
+}
+
+@Book{companion04,
+ author = {Frank Mittelbach and Michel Goosens et al},
+ title = {The {\LaTeX} {C}ompanion},
+ edition = {2},
+ publisher = {Addison-Wesley Publishing Company},
+ year = {2004},
+ address = {Boston}
+}
+
+@Book{unbound,
+ author = {Alan Hoenig},
+ title = {\TeX{} {U}nbound: \LaTeX{} \& \TeX{} {S}trategies, {F}onts, {G}raphics, and {M}ore},
+ publisher = {Oxford University Press},
+ year = {1998},
+ address = {London}
+}
+@Book{tlgc2,
+ author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Denis Roegel and Herbert Vo{\ss}},
+ title = {The {\LaTeX} {G}raphics {C}ompanion},
+ publisher = {{Addison-Wesley Publishing Company}},
+ edition = 2,
+ year = {2007},
+ address = {Reading, Mass.}
+}
+
+@Article{girou:01:,
+ author = {Denis Girou},
+ title = {Pr\'esentation de {PST}ricks},
+ journal = {Cahier {GUT}enberg},
+ year = 1994,
+ volume = {16},
+ month = apr,
+ pages = {21-70}
+}
+
+@Article{girou:02:,
+ author = {{Timothy Van} Zandt and Denis Girou},
+ title = {Inside {PST}ricks},
+ journal = TUGboat,
+ year = 1994,
+ volume = {15},
+ month = sep,
+ pages = {239-246}
+}
+
+@Book{PostScript,
+ Author = {Kollock, Nikolai G.},
+ Title = {PostScript richtig eingesetzt: vom {K}onzept zum
+ praktischen {E}insatz},
+ Publisher = {IWT},
+ Address = {Vaterstetten},
+ year = 1989,
+}
+
+@Manual{pstricks,
+ Title = {PSTricks - {\PS} macros for generic {\TeX}},
+ Author = {{Timothy Van} Zandt},
+ Organization = {},
+ Address = {\url{http://www.tug.org/application/PSTricks}},
+ Note = {},
+ year = 1993
+}
+
+@Manual{multido,
+ Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition},
+ Author = {{Timothy Van} Zandt},
+ Organization = {},
+ Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}},
+ Note = {},
+ year = 1997
+}
+
diff --git a/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.pdf b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.pdf
new file mode 100644
index 00000000000..013dc6d181e
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex
new file mode 100644
index 00000000000..08bbc205273
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex
@@ -0,0 +1,153 @@
+%% $Id: pst-hsb-doc.tex 351 2021-12-16 10:37:40Z herbert $
+\RequirePackage{pdfmanagement-testphase}
+\DeclareDocumentMetadata{}
+% $Id: pst-hsb-doc.tex 351 2021-12-16 10:37:40Z herbert $
+\documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small,
+ headinclude=false,footinclude=false,twoside]{pst-doc}
+\usepackage{pst-hsb}
+\let\psthsbFV\fileversion
+\usepackage{xltabular}
+\usepackage{pst-plot}
+\renewcommand\bgImage{\begin{pspicture}(0,-5)(11,5)
+% \psgrid(0,-4)(10,4)
+\psaxes{->}(0,0)(0,-4)(11,5)
+\psset{plotpoints=300,algebraic}%
+\psparametricplotHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5]{0}{6.28}{t/0.628 | sin(t)*4}
+\psparametricplotHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7]{0}{6.28}{t/0.628 | cos(t)*4}
+\psparametricplotHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1]{0}{6.28}{t/0.628 | sin(t)*2}
+\end{pspicture}}
+
+\lstset{language=PSTricks,
+ morekeywords={psPrintValue},basicstyle=\footnotesize\ttfamily}
+%
+%\usepackage{biblatex}
+\addbibresource{pst-hsb-doc.bib}
+\begin{document}
+
+\title{\texttt{pst-hsb}}
+\subtitle{Curves with continoues color; v.\psthsbFV}
+\author{Denis Girout\\Manuel Luque\\Herbert Voß}
+\docauthor{}
+%\date{\today}
+\settitle
+
+\begin{abstract}
+This package defines the macros \Lcs{pslineHSB}
+ \Lcs{parametricplotHSB} for curves with a continous color.
+
+
+\tableofcontents
+
+
+
+\vfill
+\noindent
+Thanks to:
+%Denis Girou; Manuel Luque
+\end{abstract}
+
+\newpage
+
+
+\section{Examples}
+
+\subsection{Lines}
+\begin{LTXexample}
+\begin{pspicture}(-0.5,-0.5)(11,5)
+% \psgrid(0,-4)(10,4)
+\psaxes{->}(0,0)(11,5)
+\pslineHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5](0,0)(10,1)
+\pslineHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7](0,1)(10,3)
+\pslineHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1](0,2)(10,5)
+\end{pspicture}
+\end{LTXexample}
+
+
+
+\clearpage
+
+\subsection{Parametric plot}
+
+\begin{LTXexample}
+\begin{pspicture}(0,-5)(11,5)
+% \psgrid(0,-4)(10,4)
+\psaxes{->}(0,0)(0,-4)(11,5)
+\psset{plotpoints=10}%
+\psparametricplotHSB[linewidth=1mm,HSB=false,linecolor=red]{0}{360}{t 36 div t sin 4 mul}
+\psparametricplotHSB[linewidth=1mm,algebraic]{0}{6.28}{t/0.628 | cos(t)*4}
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}
+\begin{pspicture}(0,-5)(11,5)
+% \psgrid(0,-4)(10,4)
+\psaxes{->}(0,0)(0,-4)(11,5)
+\psset{plotpoints=300}%
+\psparametricplotHSB[linewidth=1mm,HSB=false,linecolor=red]{0}{360}{t 36 div t sin 4 mul}
+\psparametricplotHSB[linewidth=1mm,algebraic]{0}{6.28}{t/0.628 | cos(t)*4}
+\end{pspicture}
+ \end{LTXexample}
+
+\begin{LTXexample}
+\begin{pspicture}(0,-5)(11,5)
+% \psgrid(0,-4)(10,4)
+\psaxes{->}(0,0)(0,-4)(11,5)
+\psset{plotpoints=300,algebraic}%
+\psparametricplotHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5]{0}{6.28}{t/0.628 | sin(t)*4}
+\psparametricplotHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7]{0}{6.28}{t/0.628 | cos(t)*4}
+\psparametricplotHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1]{0}{6.28}{t/0.628 | sin(t)*2}
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}
+\begin{pspicture}(-5,-5)(5,5)
+ \psframe*[linecolor=lightgray](-5,-4)(5,4)
+ \psgrid[gridlabels=0,subgriddiv=0](-5,-4)(5,4)
+ \multido{\nxDiv=-5+0.2}{50}{%
+ \psline(\nxDiv,-.1)(\nxDiv,0.1)}
+ \multido{\nyDiv=-4.0+0.2}{40}{%
+ \psline(-0.1,\nyDiv)(0.1,\nyDiv)}
+ \psset{linewidth=1mm}%
+ \psparametricplotHSB[plotpoints=2000,linecolor=blue,HSB=false,yunit=0.5]{-5}{5}{%
+ /temps t 2e-3 mul def
+ /frequence2 100 def
+ frequence2 360 mul temps mul cos
+ 1 mul 3 add
+ }
+ \psparametricplotHSB[plotpoints=2000,yunit=1]{-5}{5}{%
+ /temps t 2e-3 mul def
+ /frequence1 1200 def
+ /frequence2 100 def
+ frequence2 360 mul temps mul cos
+ 1 mul 3 add
+ frequence1 360 mul temps mul cos
+ 4 mul
+ mul
+ 0.1 mul
+ }
+\end{pspicture}
+\end{LTXexample}
+
+
+
+
+
+
+\clearpage
+\section{List of all optional arguments for \texttt{pst-hsb}}
+
+\xkvview{family=pst-hsb,columns={key,type,default}}
+
+
+\RaggedRight
+\nocite{*}
+%\bibliographystyle{plain}
+\printbibliography
+
+\printindex
+
+
+
+\end{document}
+
+
diff --git a/Master/texmf-dist/tex/generic/pst-hsb/pst-hsb.tex b/Master/texmf-dist/tex/generic/pst-hsb/pst-hsb.tex
new file mode 100644
index 00000000000..975e054fc26
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/pst-hsb/pst-hsb.tex
@@ -0,0 +1,131 @@
+%% $Id: pst-hsb.tex 350 2021-12-16 10:20:18Z herbert $
+%%
+%% This is file `pst-hsb.tex',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Package `pst-hsb.tex'
+%%
+%% Denis Girout
+%% Manuel Luque
+%% Herbert Voss <hvoss@tug.org>
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+%%
+%% DESCRIPTION:
+%% `pst-hsb' is a PSTricks package for continous color
+%%
+%%
+\csname PSThsbLoaded\endcsname
+\let\PSThsbLoaded\endinput
+
+\ifx\PSTricksLoaded\endinput\else\input pstricks.tex\fi
+\ifx\PSTplotLoaded\endinput\else \input pst-plot \fi
+\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey.tex \fi
+%
+\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
+% interface to the `xkeyval' package
+\pst@addfams{pst-hsb}
+%
+\def\fileversion{0.02}
+\def\filedate{2021/12/16}
+\message{`PST-hsb' v\fileversion, \filedate\space (hv)}
+%
+\define@key[psset]{pst-hsb}{HueBegin}{\def\psparametricplotHSB@HueBegin{#1}}% Between 0 and 1
+\define@key[psset]{pst-hsb}{HueEnd}{\def\psparametricplotHSB@HueEnd{#1}}% Between 0 and 1
+\define@boolkey[psset]{pst-hsb}[Pst@]{HSB}[true]{}
+% Default values
+\psset[pst-hsb]{HueBegin=0,HueEnd=1,HSB=true}
+\psset{dimen=outer}
+
+\def\psparametricplotHSB{\pst@object{psparametricplotHSB}}
+\def\psparametricplotHSB@i#1#2#3{{%
+ \begin@ClosedObj
+ \addto@pscode{%
+ /t #1 def
+ /dt #2 t sub \psk@plotpoints\space div def
+ /t t dt sub def
+ /F@pstplot
+ \ifPst@algebraic (#3)
+ \ifx\psk@PlotDerivative\@none\else
+ \psk@PlotDerivative\space { (t) tx@Derive begin Derive end } repeat
+ \fi
+ tx@AlgToPs begin AlgToPs end cvx
+ \else
+ { #3 }
+ \fi
+ def
+ /Counter 0 def
+ 1 setlinejoin
+ \psk@plotpoints {
+ /t t dt add def
+ /Counter Counter 1 add def
+ t F@pstplot
+ \pst@number\psyunit mul exch
+ \pst@number\psxunit mul exch
+ 1 Counter eq { moveto currentpoint /OldY ED /OldX ED } % First point
+ {\ifPst@HSB % Other points than the first one
+ /PointY exch def
+ /PointX exch def
+ Counter \psk@plotpoints\space div
+ \psparametricplotHSB@HueEnd\space
+ \psparametricplotHSB@HueBegin\space sub mul
+ \psparametricplotHSB@HueBegin\space add
+ 1 1 sethsbcolor
+ OldX OldY PointX PointY lineto lineto
+ stroke
+ PointX PointY moveto
+ /OldX PointX def /OldY PointY def
+ \else lineto \fi } ifelse
+ } repeat }% fin du code ps
+ \end@ClosedObj
+ }\ignorespaces}
+%
+\def\pslineHSB{\pst@object{pslineHSB}}
+\def\pslineHSB@i(#1)(#2){{%
+ \begin@OpenObj
+ \pst@getcoor{#1}\pst@tempA
+ \pst@getcoor{#2}\pst@tempB
+ \addto@pscode{%
+ \pst@tempA
+ /y0 ED /x0 ED
+ \pst@tempB
+ /y1 ED /x1 ED
+ /dx x1 x0 sub \psk@plotpoints\space div def
+ /m y1 y0 sub x1 x0 sub div def
+ /t x0 dx sub def
+ /Counter 0 def
+ gsave
+ x0 y0 translate
+ \psk@plotpoints {
+ /t t dx add def
+ /Counter Counter 1 add def
+ t dup m mul
+ 1 Counter eq
+ { moveto currentpoint /OldY ED /OldX ED } % First point
+ {\ifPst@HSB % Other points than the first one
+ /PointY exch def
+ /PointX exch def
+ Counter \psk@plotpoints\space div
+ \psparametricplotHSB@HueEnd\space
+ \psparametricplotHSB@HueBegin\space sub mul
+ \psparametricplotHSB@HueBegin\space add
+ 1 1 sethsbcolor
+ OldX OldY PointX PointY lineto lineto
+ stroke
+ PointX PointY moveto
+ /OldX PointX def /OldY PointY def
+ \else lineto \fi
+ } ifelse
+ } repeat
+ grestore
+ }%
+ \end@OpenObj
+ }\ignorespaces}
+\catcode`\@=\TheAtCode\relax
+%
+\endinput
+%%
+%% END pst-hsb.tex
diff --git a/Master/texmf-dist/tex/latex/pst-hsb/pst-hsb.sty b/Master/texmf-dist/tex/latex/pst-hsb/pst-hsb.sty
new file mode 100644
index 00000000000..0a8996be217
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pst-hsb/pst-hsb.sty
@@ -0,0 +1,11 @@
+\RequirePackage{pstricks}
+\ProvidesPackage{pst-hsb}[2021/12/16 package wrapper for
+ pst-hsb.tex (hv)]
+\input{pst-hsb.tex}
+\ProvidesFile{pst-hsb.tex}[\filedate\space v\fileversion\space `PST-hsb' (hv)]
+%\IfFileExists{pst-hsb.pro}{%
+% \ProvidesFile{pst-hsb.pro}[2013/10/26 v 0.04, PostScript prologue file]
+% \@addtofilelist{pst-hsb.pro}}{}%
+
+\endinput
+%% $Id: pst-hsb.sty 350 2021-12-16 10:20:18Z herbert $