summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-05-14 22:08:43 +0000
committerKarl Berry <karl@freefriends.org>2014-05-14 22:08:43 +0000
commit0e4d93dadf0f1cbaa9d8819eb2d8a323968cef73 (patch)
treeb7302f81135d10d1e0956299822af0ddefa9ee07 /Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex
parentedb8fd9cd71fb2e6cac92760f74f7204ba25b46d (diff)
pst-ovl (14may14)
git-svn-id: svn://tug.org/texlive/trunk@34033 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex41
1 files changed, 28 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex b/Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex
index c1b4e709a96..d38eff844cc 100644
--- a/Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex
@@ -40,34 +40,49 @@ the commands
\begin{overlaybox} <stuff> \end{overlaybox}
\end{lstlisting}
-The material for overlay <string> should go within the scope of the command
+The material for overlay \texttt{<number>} should go within the scope of the command
- \Lcs{psoverlay}\Largb{string}
+ \Lcs{psoverlay}\Largb{number}
-<string> can be any string, after expansion. Anything not in the scope of any
-\Lcs{psoverlay} command goes on overlay "`main"', and material within the scope of
-\Lcs{psoverlay}\Largb{all} goes on all the overlays. \Lcs{psoverlay}
+\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{string}
-
-then prints overlay <string>.
+\Lcs{putoverlaybox}\Largb{number}
+then prints overlay \texttt{<number>}.
+%
Here is an example:
\begin{LTXexample}[pos=t]
\overlaybox
-\psoverlay{all}
+\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.}}
+ \endoverlaybox
+
+\putoverlaybox{0} \hspace{.5in} \putoverlaybox{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}
+\overlaybox
+\psoverlay{\all}
\psframebox[framearc=.15,linewidth=1.5pt]{%
- \psoverlay{main}
+ \psoverlay{\main}
\parbox{3.5cm}{\raggedright
- Foam Cups Damage Environment {\psoverlay{one} Less than
+ Foam Cups Damage Environment {\psoverlay{\one} Less than
Paper Cups,} Study Says.}}
\endoverlaybox
-\putoverlaybox{main} \hspace{.5in} \putoverlaybox{one}
+\putoverlaybox{\main} \hspace{.5in} \putoverlaybox{\one}
\end{LTXexample}