summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/randbild
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-18 16:19:22 +0000
committerKarl Berry <karl@freefriends.org>2007-05-18 16:19:22 +0000
commit162011115f4cce85d5ece07bc50d195760e16c97 (patch)
tree8cfbdbe758a9728ccdaf6fa3e0811d97a62b87e1 /Master/texmf-dist/tex/latex/randbild
parente04af15e92b35556249aa0d9c27b77f25ce10ffe (diff)
randbild 0.2 (16may07)
git-svn-id: svn://tug.org/texlive/trunk@4309 c570f23f-e606-0410-a88d-b1316a301751
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,%