summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/randbild/randbild.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-07-10 21:01:04 +0000
committerKarl Berry <karl@freefriends.org>2006-07-10 21:01:04 +0000
commita7d8e2d9eea346f25f88fd622a988d395b790778 (patch)
tree901721d1774290a85f63e7dcac35156c52ff9ab7 /Master/texmf-dist/tex/latex/randbild/randbild.sty
parent9c63b54510ab253b661e8bd3adbf9aca1991abec (diff)
new package randbild (11apr06)
git-svn-id: svn://tug.org/texlive/trunk@1800 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/randbild/randbild.sty')
-rw-r--r--Master/texmf-dist/tex/latex/randbild/randbild.sty71
1 files changed, 71 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/randbild/randbild.sty b/Master/texmf-dist/tex/latex/randbild/randbild.sty
new file mode 100644
index 00000000000..6fbeb618113
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/randbild/randbild.sty
@@ -0,0 +1,71 @@
+%%
+%% This is file `randbild.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% randbild.dtx (with options: `package')
+%%
+%% ,--------------------------------------------------.
+%% | Das ist eine generierte Datei. |
+%% | |
+%% | (c) 2005-2006 Paul Ebermann. |
+%% '--------------------------------------------------'
+%%
+%% (C) 2005-2006 Paul Ebermann
+%%
+%% Package randbild, zum Setzen von Bildern von Kurven am Rand
+%% der Seite.
+%% Die Datei randbild.dtx sowie die dazugehörige
+%% randbild.ins sowie die damit generierte
+%% randbild.sty stehen unter der
+%% "LaTeX Project Public License" (LPPL, zu finden
+%% unter http://www.latex-project.org/lppl/, sowie
+%% auch in den meisten TeX-Distributionen in
+%% texmf/docs/latex/base/lppl*.txt), Version 1.3b oder
+%% später (nach Wahl des Verwenders).
+%%
+%% Der 'maintenance-status' ist (zur Zeit) 'author-maintained'.
+%%
+%% Das heißt u.a., die Dateien dürfen frei vertrieben werden,
+%% bei Änderungen (durch andere Personen als Paul Ebermann)
+%% ist aber der Name der Datei zu ändern.
+\NeedsTeXFormat{LaTeX2e}[2003/12/01]
+\ProvidesPackage{randbild}
+ [2006/04/04 v0.1b Bild am Seitenrand (PE)]
+\RequirePackage{pst-plot}
+\newsavebox{\randbild@box}
+\newcommand{\randbild@titel}{bla}
+\newenvironment*{randbild}[3][\ ]{%
+ \begin{randbildbasis}[#1]{#2}{#3}%
+ {\tiny%
+ \psaxes[ticksize=1pt,labelsep=2pt]{->}(0,0)(#2)(#3){}%
+ }%
+}{%
+ \end{randbildbasis}
+}
+\newenvironment*{randbildbasis}[3][\ ]{%
+ \renewcommand{\randbild@titel}{#1}%
+ \psset{linewidth=.5pt,unit=0.5cm}
+ \begin{lrbox}{\randbild@box}%
+ \begin{pspicture}(#2)(#3)%
+}{%
+ \end{pspicture}%
+ \end{lrbox}%
+ \marginpar{%
+ \centering%
+ \fbox{\clipbox[0.2]{\usebox{\randbild@box}}}%
+ \\[0.2\psunit]%
+ {\small\randbild@titel}%
+ }%
+}%
+ \newpsobject{showgrid}{psgrid}%
+ {%
+ subgriddiv=1,%
+ griddots=5,%
+ gridwidth=0.4pt,%
+ gridlabels=0pt%
+ }
+\endinput
+%%
+%% End of file `randbild.sty'.