From 0e4d93dadf0f1cbaa9d8819eb2d8a323968cef73 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 14 May 2014 22:08:43 +0000 Subject: pst-ovl (14may14) git-svn-id: svn://tug.org/texlive/trunk@34033 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex | 41 +++++++++++++++------- 1 file changed, 28 insertions(+), 13 deletions(-) (limited to 'Master/texmf-dist/doc/generic/pst-ovl/pst-ovl-doc.tex') 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} \end{overlaybox} \end{lstlisting} -The material for overlay should go within the scope of the command +The material for overlay \texttt{} should go within the scope of the command - \Lcs{psoverlay}\Largb{string} + \Lcs{psoverlay}\Largb{number} - 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{} 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 . +\Lcs{putoverlaybox}\Largb{number} +then prints overlay \texttt{}. +% 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} -- cgit v1.2.3