summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/randbild
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/randbild')
-rw-r--r--Master/texmf-dist/tex/latex/randbild/randbild.sty19
1 files changed, 15 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/randbild/randbild.sty b/Master/texmf-dist/tex/latex/randbild/randbild.sty
index 6fbeb618113..c815c4a9ec1 100644
--- a/Master/texmf-dist/tex/latex/randbild/randbild.sty
+++ b/Master/texmf-dist/tex/latex/randbild/randbild.sty
@@ -32,33 +32,44 @@
%% ist aber der Name der Datei zu ändern.
\NeedsTeXFormat{LaTeX2e}[2003/12/01]
\ProvidesPackage{randbild}
- [2006/04/04 v0.1b Bild am Seitenrand (PE)]
+ [2007/05/15 v0.2 Bild am Seitenrand (PE)]
\RequirePackage{pst-plot}
\newsavebox{\randbild@box}
\newcommand{\randbild@titel}{bla}
\newenvironment*{randbild}[3][\ ]{%
+ \@bsphack%
\begin{randbildbasis}[#1]{#2}{#3}%
{\tiny%
\psaxes[ticksize=1pt,labelsep=2pt]{->}(0,0)(#2)(#3){}%
}%
}{%
- \end{randbildbasis}
+ \end{randbildbasis}%
+ \@Esphack%
}
\newenvironment*{randbildbasis}[3][\ ]{%
+ \@bsphack%
\renewcommand{\randbild@titel}{#1}%
- \psset{linewidth=.5pt,unit=0.5cm}
+ \psset{linewidth=.5pt,unit=0.5cm}%
\begin{lrbox}{\randbild@box}%
\begin{pspicture}(#2)(#3)%
+ \ignorespaces
}{%
\end{pspicture}%
\end{lrbox}%
\marginpar{%
\centering%
- \fbox{\clipbox[0.2]{\usebox{\randbild@box}}}%
+ \fbox{%
+ \clipbox[0.2]{%
+ \usebox{\randbild@box}%
+ }%
+ }%
\\[0.2\psunit]%
{\small\randbild@titel}%
}%
+ \@Esphack%
}%
+ \expandafter\let\csname randbild*\endcsname\randbildbasis
+ \expandafter\let\csname endrandbild*\endcsname\endrandbildbasis
\newpsobject{showgrid}{psgrid}%
{%
subgriddiv=1,%