summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-17 16:08:46 +0000
committerKarl Berry <karl@freefriends.org>2010-05-17 16:08:46 +0000
commit7fe9b95e32b8a9ec7f8fb1465ef797c3fe282301 (patch)
treebcc34e1f7b9fad5ceba8e748a3f676ef2e22a644 /Master/texmf-dist/tex/generic
parenta0a9d487489d5b79251855d1f93cf7e6c564d68a (diff)
own package frame 1.0 (15may10)
git-svn-id: svn://tug.org/texlive/trunk@18312 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/frame/frame.sty9
-rw-r--r--Master/texmf-dist/tex/generic/frame/frame.tex58
2 files changed, 67 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/frame/frame.sty b/Master/texmf-dist/tex/generic/frame/frame.sty
new file mode 100644
index 00000000000..edf678098ab
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/frame/frame.sty
@@ -0,0 +1,9 @@
+%% $Id: frame.sty 320 2010-05-15 09:42:13Z herbert $
+\ProvidesPackage{frame}[2010/05/15 package wrapper for
+ frame.tex (hv)]
+\input{frame.tex}
+\ProvidesFile{frame.tex}
+ [\filedate\space v\fileversion\space `frame' (tvz,hv)]
+%
+\endinput
+
diff --git a/Master/texmf-dist/tex/generic/frame/frame.tex b/Master/texmf-dist/tex/generic/frame/frame.tex
new file mode 100644
index 00000000000..de9f915913f
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/frame/frame.tex
@@ -0,0 +1,58 @@
+%%
+%% $Id: frame.tex 320 2010-05-15 09:42:13Z herbert $
+%%
+%% COPYRIGHT 1992/2010, by Timothy Van Zandt, tvz@Princeton.EDU
+%% COPYRIGHT 2010, by Herbert Voss, hvoss@tug.org
+%%
+%% Copyright:
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+%%
+%% DESCRIPTION:
+%% frame.tex/frame.sty provides fancy frames for generic TeX
+%
+% Usage:
+% \fancyframebox {rule thickness} {separation from inner guy} {inner guy}
+%
+% \makeemptybox {width} {height} {depth}
+%%
+%
+\def\fileversion{1.0}
+\def\filedate{2010/05/15}
+%
+\csname FrameLoaded\endcsname
+\let\FrameLoaded\endinput
+%
+\edef\TheAtCode{\the\catcode`\@}
+\catcode`\@=11\relax
+\message{\space\space v\fileversion\space\space \filedate\space\space <tvz>}
+
+\newbox\fancyboxA
+\newbox\fancyboxB
+\newdimen\fancyboxD
+
+\def\makeemptybox#1#2#3{\setbox\fancyboxA=\hbox{}\wd\fancyboxA=#1\relax
+ \ht\fancyboxA=#2\relax \dp\fancyboxA=#3\relax \box\fancyboxA }
+
+\def\fancyframebox#1#2#3{%
+ \leavevmode
+ \setbox\fancyboxB=\hbox{#3}%
+ \dimen\fancyboxD=#1\relax
+ \advance\dimen\fancyboxD by #2\relax
+ \advance\dimen\fancyboxD by \dp\fancyboxB
+ \hbox{%
+ \lower\dimen\fancyboxD\hbox{%
+ \vbox{%
+ \hrule height #1\relax
+ \hbox{%
+ \vrule width #1\relax
+ \kern #2\relax
+ \vbox{\vskip #2\relax\box\fancyboxB\vskip #2\relax}%
+ \kern #2\relax
+ \vrule width #1\relax}%
+ \hrule height #1\relax}}}}
+%
+\expandafter\catcode`\@=\TheAtCode\relax
+\endinput
+%% END frame.tex/frame.sty