summaryrefslogtreecommitdiff
path: root/graphics/pstricks/contrib/pst-ovl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/pstricks/contrib/pst-ovl
Initial commit
Diffstat (limited to 'graphics/pstricks/contrib/pst-ovl')
-rw-r--r--graphics/pstricks/contrib/pst-ovl/Changes15
-rw-r--r--graphics/pstricks/contrib/pst-ovl/README12
-rw-r--r--graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.bib166
-rw-r--r--graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.pdfbin0 -> 48866 bytes
-rw-r--r--graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.tex113
-rw-r--r--graphics/pstricks/contrib/pst-ovl/dvips/pst-ovl.pro30
-rw-r--r--graphics/pstricks/contrib/pst-ovl/latex/pst-ovl.sty20
-rw-r--r--graphics/pstricks/contrib/pst-ovl/tex/pst-ovl.tex83
8 files changed, 439 insertions, 0 deletions
diff --git a/graphics/pstricks/contrib/pst-ovl/Changes b/graphics/pstricks/contrib/pst-ovl/Changes
new file mode 100644
index 0000000000..b1e3740b5b
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/Changes
@@ -0,0 +1,15 @@
+pst-ovl.tex ----------- (hv)
+
+ v 0.07a 2017-10-09 - load pstricks.sty first
+ v 0.07 2016-05-03 - moved code from seminar
+ - use names as \ps...
+ v 0.06 2014-05-12 moved code from seminar
+ v 0.05 2014-01-02 do not load PSTricks
+ v 0.04 2013-12-28 forgot Timothy as author
+ v 0.03 2013-12-24 create own package with documentation
+ v 0.02 2013-11-28 move functions into tx@Dict dictionary
+
+
+pst-ovl.pro ----------- (hv)
+ v 0.04 2014-05-12 make it compatible to seminar
+ v 0.03 2013-12-24 first official version
diff --git a/graphics/pstricks/contrib/pst-ovl/README b/graphics/pstricks/contrib/pst-ovl/README
new file mode 100644
index 0000000000..04a3dd63f1
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/README
@@ -0,0 +1,12 @@
+Save the files pst-ovl.sty|.tex| in a directory, which is part of your
+local TeX ovl. Then do not forget to run texhash to update this ovl
+if these packages are new to your TeX distribution.
+For more information see the documentation of your LaTeX distribution
+on installing packages into your LaTeX distribution or the
+TeX Frequently Asked Questions:
+(http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages).
+
+pst-ovl needs pstricks, which should be part of your
+local TeX installation, otherwise get it from a CTAN server, f.ex.
+http://mirror.ctan.org/graphics/pstricks/
+
diff --git a/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.bib b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.bib
new file mode 100644
index 0000000000..96838e3a2d
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.bib
@@ -0,0 +1,166 @@
+@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} }
+
+@Article{ dtk02.2:jackson.voss:plot-funktionen,
+ author = {Laura E. Jackson and Herbert Vo{\ss}},
+ title = {Die {P}lot-{F}unktionen von {\texttt{pst-plot}}},
+ journal = dtk,
+ year = 2002,
+ volume = {2/02},
+ altvolume = 2,
+ altnumber = 14,
+ month = jun,
+ pages = {27--34},
+ annote = bretter,
+ keywords = {},
+ abstract = { Im letzten Heft wurden die mathematischen Funktionen von
+ \PS~im Zusammenhang mit dem {\LaTeX}-Paket
+ \texttt{pst-plot} zum Zeichnen von Funktionen beschrieben
+ und durch Beispiele erl{\"a}utert. In diesem Teil werden
+ die bislang nur erw{\"a}hnten Plot-Funktionen f{\"u}r
+ externe Daten behandelt. }
+}
+
+@Article{ dtk02.1:voss:mathematischen,
+ author = {Herbert Vo{\ss}},
+ title = {Die mathematischen {F}unktionen von {P}ost{S}cript},
+ journal = dtk,
+ year = 2002,
+ volume = {1/02},
+ altvolume = 1,
+ altnumber = 14,
+ month = mar,
+ pages = {},
+ annote = bretter,
+ keywords = {},
+ abstract = { \PS, faktisch genauso alt wie {\TeX}, ist im
+ Verh{\"a}ltnis dazu allgemein noch weniger bekannt, wenn es
+ darum geht zu beurteilen, was es denn nun im eigentlichen
+ Sinne ist. Au{\ss}erdem wird h{\"a}ufig vergessen, dass
+ sich mit den \PS-Funktionen viele Dinge erledigen lassen,
+ bei denen sonst auf externe Programme zur{\"u}ckgegriffen
+ wird. Dies wird im Folgenden f{\"u}r die mathematischen
+ Funktionen im Zusammenhang mit dem Paket \texttt{pst-plot}
+ gezeigt. }
+}
+
+@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 = second,
+ year = {2007},
+ address = {Reading, Mass.}
+}
+
+
+@Book{voss:chaos,
+ author = {Herbert Vo{\ss}},
+ title = {Chaos und {F}raktale selbst programmieren: von {M}andelbrotmengen
+ {\"u}ber {F}arbmanipulationen zur perfekten Darstellung},
+ publisher = {{Franzis Verlag}},
+ year = {1994},
+ address = {Poing}
+}
+
+@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 = {Post{S}cript 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{pst-plot,
+ Title = {\texttt{pst-plot}: Plotting two dimensional functions and data},
+ Author = {{Timothy van} Zandt},
+ Organization = {},
+ Address = {\url{CTAN:graphics/pstricks/generic/pst-plot.tex}},
+ Note = {},
+ year = 1999
+}
+
+@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
+}
+
+@Book{PSTricks2,
+ author = {Herbert Vo\ss},
+ title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX},
+ edition = {6.},
+ publisher = {DANTE -- Lehmanns},
+ year = {2010},
+ address = {Heidelberg/Berlin}
+}
+
+@Book{voss:math,
+ author = {Herbert Vo\ss},
+ title = {Typesetting mathematics with \LaTeX},
+ publisher = {UIT},
+ year = {2010},
+ address = {Cambridge}
+}
+
+@Book{PSTricks2-UIT,
+ author = {Herbert Vo\ss},
+ title = {PSTricks -- Graphics for \TeX\ and \LaTeX},
+ publisher = {UIT},
+ year = {2011},
+ address = {Cambridge}
+}
+
+@Manual{wolfram,
+ author = {Eric Weisstein},
+ title = {Wolfram MathWorld},
+ publisher = {{Wolfram}},
+ year = {2007},
+ address = {\url{http://mathworld.wolfram.com}}
+}
+
diff --git a/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.pdf b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.pdf
new file mode 100644
index 0000000000..152d118906
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.pdf
Binary files differ
diff --git a/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.tex b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.tex
new file mode 100644
index 0000000000..98f30a1037
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/doc/pst-ovl-doc.tex
@@ -0,0 +1,113 @@
+%% $Id: pst-func-doc.tex 599 2011-11-03 19:38:28Z herbert $
+\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
+ smallheadings, headexclude,footexclude,oneside]{pst-doc}
+\usepackage[utf8]{inputenc}
+\usepackage{pst-ovl}
+\let\pstOVLFV\fileversion
+\renewcommand\bgImage{}
+
+\addbibresource{\jobname.bib}
+
+
+\lstset{language=PSTricks,
+ morekeywords={psPrintValue},basicstyle=\footnotesize\ttfamily}
+%
+\begin{document}
+
+\title{\texttt{pst-ovl}}
+\subtitle{Helper functions for overlays; v.\pstOVLFV}
+\author{Herbert Vo\ss}
+\docauthor{}
+\date{\today}
+\maketitle
+
+\tableofcontents
+\psset{unit=1cm}
+
+\section{Overlays}
+
+Overlays are mainly of interest for making slides, and the overlay macros
+described in this section are mainly of interest to \TeX{} macro writers who
+want to implement overlays in a slide macro package. For example, the
+\LPack{seminar} package, a \LaTeX{} style for notes and slides, uses PSTricks to
+implement overlays.
+
+Overlays are made by creating an "`\Lcs{hbox}"' and then outputting the box several
+times, printing different material in the box each time. The box is created by
+the commands
+\begin{lstlisting}
+ \Lcs{psoverlaybox} < stuff >\Lcs{endpsoverlaybox}
+\end{lstlisting}
+\LaTeX{} users can instead write:
+\begin{lstlisting}
+ \begin{psoverlaybox} <stuff> \end{psoverlaybox}
+\end{lstlisting}
+
+The material for overlay \texttt{<number>} should go within the scope of the command
+
+ \Lcs{psoverlay}\Largb{number}
+
+\texttt{<number>} can be any any number, after expansion. Anything not in the scope of any
+\Lcs{psoverlay} command goes on overlay "`0"', and material within the scope of
+\Lcs{psoverlay}\Largb{-1} goes on all the overlays. \Lcs{psoverlay}
+commands can be nested and can be used in math mode.
+The command
+
+\Lcs{putoverlaybox}\Largb{number}
+
+then prints overlay \texttt{<number>}.
+%
+Here is an example:
+
+\begin{LTXexample}[pos=t]
+\psoverlaybox
+\psoverlay{-1}
+\psframebox[framearc=.15,linewidth=1.5pt]{%
+ \psoverlay{0}
+ \parbox{3.5cm}{\raggedright
+ Foam Cups Damage Environment {\psoverlay{1} Less than
+ Paper Cups,} Study Says.}}
+ \endpsoverlaybox
+
+\psputoverlaybox{0} \hspace{.5in} \psputoverlaybox{1}
+\end{LTXexample}
+
+It is possible to define macros which hold the numbers:
+
+\begin{LTXexample}[pos=t]
+\def\all{-1} \def\main{0} \def\one{1}
+\psoverlaybox
+\psoverlay{\all}
+\psframebox[framearc=.15,linewidth=1.5pt]{%
+ \psoverlay{\main}
+ \parbox{3.5cm}{\raggedright
+ Foam Cups Damage Environment {\psoverlay{\one} Less than
+ Paper Cups,} Study Says.}}
+ \endpsoverlaybox
+
+\psputoverlaybox{\main} \hspace{.5in} \psputoverlaybox{\one}
+\end{LTXexample}
+
+
+
+\clearpage
+\section{List of all optional arguments for \texttt{pst-ovl}}
+
+\xkvview{family=pst-ovl,columns={key,type,default}}
+
+
+
+
+\bgroup
+\raggedright
+\nocite{*}
+\printbibliography
+\egroup
+
+\printindex
+
+
+
+\end{document}
+
+
diff --git a/graphics/pstricks/contrib/pst-ovl/dvips/pst-ovl.pro b/graphics/pstricks/contrib/pst-ovl/dvips/pst-ovl.pro
new file mode 100644
index 0000000000..188299ff6a
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/dvips/pst-ovl.pro
@@ -0,0 +1,30 @@
+% $Id: pst-ovl.pro 859 2013-12-21 16:51:58Z herbert $
+%
+%% PostScript prologue for pst-ovl.tex.
+%% Version 0.04, 2014/05/12
+%%
+%% 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.
+%
+%
+/tx@ovlDict 10 dict def
+tx@ovlDict begin
+%
+/BeginOL {
+ dup -1 eq exch TheOL eq or
+ { IfVisible not { Visible /IfVisible true def } if }
+ { IfVisible { Invisible /IfVisible false def } if } ifelse
+} def
+%
+/InitOL {
+ /OLUnit [ 3000 3000 matrix defaultmatrix dtransform ] cvx def
+ /Visible { CP OLUnit idtransform T moveto } def
+ /Invisible { CP OLUnit neg exch neg exch idtransform T moveto } def
+ /BOL { BeginOL } def
+ /IfVisible true def
+} def
+%
+end
+%
+% END pst-ovl.pro
diff --git a/graphics/pstricks/contrib/pst-ovl/latex/pst-ovl.sty b/graphics/pstricks/contrib/pst-ovl/latex/pst-ovl.sty
new file mode 100644
index 0000000000..5eb1d9adcb
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/latex/pst-ovl.sty
@@ -0,0 +1,20 @@
+%% $Id: pst-ovl.sty 859 2013-12-21 16:51:58Z herbert $
+%%
+%% pst-ovl.sty Copyright (C) 2017 Herbert Voss <hvoss@tug.org>
+%%
+\NeedsTeXFormat{LaTeX2e}
+
+\ProvidesPackage{pst-ovl}
+ [2017/10/09 v0.01 LaTeX wrapper for `pst-ovl' (HV)]
+\ProvidesFile{pst-ovl.tex}
+ [2017/10/09 v0.07a overlay macros `pst-ovl' (HV)]
+\RequirePackage{pstricks}
+\input{pst-ovl}
+%\@addtofilelist{pst-ovl.tex}
+\IfFileExists{pst-ovl.pro}{%
+ \ProvidesFile{pst-ovl.pro}%
+ [2014/05/12, PostScript prologue file (hv)]
+ \@addtofilelist{pst-ovl.pro}}{}%
+
+\endinput
+%%
diff --git a/graphics/pstricks/contrib/pst-ovl/tex/pst-ovl.tex b/graphics/pstricks/contrib/pst-ovl/tex/pst-ovl.tex
new file mode 100644
index 0000000000..e0d7910586
--- /dev/null
+++ b/graphics/pstricks/contrib/pst-ovl/tex/pst-ovl.tex
@@ -0,0 +1,83 @@
+%% $Id: pst-ovl.tex 859 2013-12-21 16:51:58Z herbert $
+%%
+%%
+%% This is file `pst-ovl.tex',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Package `pst-ovl.tex'
+%%
+%% 2015 -- Timothy Van Zandt
+%% 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-ovl' is a PostScript related package for
+%% overlay support
+%%
+\csname PSTovlloaded\endcsname
+\let\PSTovlloaded\endinput
+%
+%% Requires main PSTricks
+\ifx\PSTricksLoaded\endinput\else\input pstricks \fi
+%
+\def\fileversion{0.07a}
+\def\filedate{2017/10/09}
+\message{`pst-ovl' v\fileversion, \filedate\space (tvz,hv)}
+%
+\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
+%
+\def\tx@BeginOL{ tx@ovlDict begin BeginOL }
+\def\tx@InitOL{ tx@ovlDict begin InitOL }
+\def\tx@BOLend{ tx@ovlDict begin BOL end }
+%
+\pstheader{pst-ovl.pro}
+%
+\def\pst@initoverlay#1{\pst@Verb{ \tx@InitOL end /TheOL #1 def }}
+%
+\def\AltOverlayMode{%
+ \def\pst@initoverlay##1{%
+ \pst@Verb{
+ \tx@InitOL
+ /Visible { initclip } def
+ /Invisible {
+ CP newpath OLUnit itransform moveto clip newpath moveto
+ } def
+ /TheOL ##1 def end }}}
+%
+\def\pst@overlay#1{%
+ \edef\curr@overlay{#1}%
+ \expandafter\pst@Verb\expandafter{ #1 \tx@BOLend }%
+ \aftergroup\pst@endoverlay}
+%
+\def\pst@endoverlay{\expandafter\pst@Verb\expandafter{\curr@overlay \space \tx@BOLend }}
+\def\curr@overlay{-1}
+%
+\newbox\thepsoverlaybox
+%
+\def\psoverlaybox{%
+ \global\setbox\thepsoverlaybox=\hbox\bgroup
+ \begingroup
+ \let\psoverlay\pst@overlay
+ \def\psoverlaybox{%
+ \@pstrickserr{Overlays cannot be nested}\@eha}%
+ \def\psputoverlaybox{%
+ \@pstrickserr{You must end the overlay box
+ before using \string\psputoverlaybox}}%
+ \psoverlay{0}%
+ \ignorespaces}
+%
+\def\endpsoverlaybox{\endgroup\egroup}
+\def\psputoverlaybox#1{%
+ \hbox{\expandafter\pst@initoverlay\expandafter{#1}\copy\thepsoverlaybox}}
+%
+\def\psoverlay{\@pstrickserr{\string\psoverlay\space
+ can only be used after \string\overlaybox}}
+%
+\catcode`\@=\PstAtCode\relax
+%
+%% END: pst-ovl.tex
+\endinput