summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-30 23:36:52 +0000
committerKarl Berry <karl@freefriends.org>2013-12-30 23:36:52 +0000
commit60fc3c6750c727bcf42ee4601a1fb2c8f28dbc38 (patch)
treeb3e3eb91624a1d76d9c2f66c4fda0cf33f644d98 /Master/texmf-dist/tex
parent2279674bbd8d121f3242f7d30dbb469770bfc646 (diff)
pst-ovl (28dec)
git-svn-id: svn://tug.org/texlive/trunk@32514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/pst-ovl/pst-ovl.tex82
-rw-r--r--Master/texmf-dist/tex/latex/pst-ovl/pst-ovl.sty18
2 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-ovl/pst-ovl.tex b/Master/texmf-dist/tex/generic/pst-ovl/pst-ovl.tex
new file mode 100644
index 00000000000..008009f2847
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/pst-ovl/pst-ovl.tex
@@ -0,0 +1,82 @@
+%% $Id: pst-ovl.tex 859 2013-12-21 16:51:58Z herbert $
+%%
+%%
+%% This is file `pst-ovl.tex',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Package `pst-ovl.tex'
+%%
+%% 2014 -- 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 PSTricks related package for
+%% overlay support
+%%
+\csname PSTovlloaded\endcsname
+\let\PSTovlloaded\endinput
+%
+% Requires main PSTricks
+\ifx\PSTricksLoaded\endinput\else\input pstricks \fi
+%
+\def\fileversion{0.04}
+\def\filedate{2013/12/28}
+\message{`pst-ovl' v\fileversion, \filedate\space (tvz,hv)}
+%
+\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
+%
+\pstheader{pst-ovl.pro}
+%
+\def\tx@BeginOL{ tx@ovlDict begin BeginOL }
+\def\tx@InitOL{ tx@ovlDict begin InitOL }
+\def\tx@BOL{ tx@ovlDict begin BOL end }
+%
+\def\pst@initoverlay#1{\pst@Verb{ \tx@InitOL /TheOL (#1) def end }}
+\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}%
+ \pst@Verb{ tx@ovlDict begin (#1) BOL end }%
+ \aftergroup\pst@endoverlay}
+%
+\def\pst@endoverlay{\pst@Verb{ tx@ovlDict begin (\curr@overlay) BOL end }}
+\def\curr@overlay{all}
+%
+\newbox\theoverlaybox
+%
+\def\overlaybox{%
+ \global\setbox\theoverlaybox=\hbox\bgroup
+ \begingroup
+ \let\psoverlay\pst@overlay
+ \def\overlaybox{%
+ \@pstrickserr{Overlays cannot be nested}\@eha}%
+ \def\putoverlaybox{%
+ \@pstrickserr{You must end the overlay box
+ before using \string\putoverlaybox}}%
+ \psoverlay{main}%
+ \ignorespaces}
+%
+\def\endoverlaybox{\endgroup\egroup}
+\def\putoverlaybox#1{%
+ \hbox{\pst@initoverlay{#1}\copy\theoverlaybox}}
+%
+\def\psoverlay{\@pstrickserr{\string\psoverlay\space
+ can only be used after \string\overlaybox}}
+%
+\catcode`\@=\PstAtCode\relax
+%
+%% END: pst-ovl.tex
+\endinput
diff --git a/Master/texmf-dist/tex/latex/pst-ovl/pst-ovl.sty b/Master/texmf-dist/tex/latex/pst-ovl/pst-ovl.sty
new file mode 100644
index 00000000000..84ca3cd63e3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pst-ovl/pst-ovl.sty
@@ -0,0 +1,18 @@
+%% $Id: pst-ovl.sty 859 2013-12-21 16:51:58Z herbert $
+%%
+%% pst-ovl.sty Copyright (C) 2013 Herbert Voss <hvoss@tug.org>
+%%
+\NeedsTeXFormat{LaTeX2e}
+
+\ProvidesPackage{pst-ovl}
+ [2013/07/08 v0.01 LaTeX wrapper for `pst-ovl' (HV)]
+\input{pst-ovl}
+\ProvidesFile{pst-ovl.tex}
+ [2013/07/08 v0.01 overlay macros `pst-ovl' (HV)]
+\IfFileExists{pst-ovl.pro}{%
+ \ProvidesFile{pst-ovl.pro}%
+ [2013/12/21, PostScript prologue file (hv)]
+ \@addtofilelist{pst-ovl.pro}}{}%
+
+\endinput
+%%