diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:55:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:55:53 +0000 |
commit | be07a7032cf925391965dce0f411638e27308971 (patch) | |
tree | af894d75d47c3a2eab06c4d0e0c8c1f52f6a505b /Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty | |
parent | 04405c6519d07630f7a0d9daa01dad203287c3e8 (diff) |
floatrow
git-svn-id: svn://tug.org/texlive/trunk@923 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty b/Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty new file mode 100644 index 00000000000..af067024aa1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/floatrow/fr-fancy.sty @@ -0,0 +1,88 @@ +%% +%% This is file `fr-fancy.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% floatrow.dtx (with options: `frfancy') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from fr-fancy.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file floatrow.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +\NeedsTeXFormat{LaTeX2e}[1995/06/01] +\ProvidesPackage{fr-fancy} + [2005/07/15 v0.1g floatrow: fancy boxes] +\RequirePackage{fancybox} +\newcommand\FB@colorbox@frame[1]{\hbox{% + \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\fi + \FB@fcolorbox{#1}% + \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\fi}\ignorespaces} +\@ifdefinable\FB@colorbox@adj{\let\FB@colorbox@adj\FB@fbox@adj} +\newcommand\FB@colorbox@reset{\fboxsep3\p@\fboxrule.4\p@} +\newcommand\FB@colorbox{\fbox} +\newcommand\setcolorframe[1]{\def\FB@fcolorbox{#1}} +\DeclareFROpt{colorframeset}{\flrow@fcolorbox{#1}} +\newcommand*\flrow@fcolorbox[1]{% + \@ifundefined{flrow@fcolorbox@#1}% + {\PackageError{floatrow}{Undefined color box `#1'}{\flrow@eh}}% + {\expandafter\let\expandafter\FB@fcolorbox + \csname flrow@fcolorbox@#1\endcsname}} +\newcommand*\DeclareColorBox[2]{% + \@ifundefined{color}{\PackageError{floatrow}% + {For usage of colored frames\MessageBreak load color package}{}}% + {\long\@namedef{flrow@fcolorbox@#1}{#2}}} +\newcommand\wshadowbox{\VerbBox\@wshadowbox} +\newcommand\@wshadowbox[1]{% + \setbox\@fancybox\hbox{\fbox{#1}}% + \leavevmode\vbox{\offinterlineskip + \hbox{\copy\@fancybox\kern-\fboxrule\lower\shadowsize\hbox{% + \dimen@\ht\@fancybox\advance\dimen@-\fboxrule + \vrule\@height\ht\@fancybox\@depth-\dimen@\@width\shadowsize + \vrule\@height\ht\@fancybox\@depth\dp\@fancybox\@width\fboxrule}}% + \vskip-\fboxrule\vskip-\shadowsize + \moveright\shadowsize\vbox{% + \hrule\@width\fboxrule\@height\shadowsize + \hrule\@width\wd\@fancybox\@height\fboxrule}}} +\newcommand\FB@shadowbox@frame[1]{\hbox{% + \FRifFIT\else\hskip-\fboxrule\hskip-\fboxsep\fi + \FBs@raise{\shadowbox{#1}}% + \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\kern-\shadowsize\fi}} +\newcommand\FB@shadowbox@adj{\dimen@=2\fboxsep + \advance\dimen@2\fboxrule\advance\dimen@\shadowsize} +\newcommand\FB@shadowbox@reset{\fboxsep3\p@\fboxrule.4\p@\shadowsize4\p@} +\newcommand\FB@wshadowbox@frame[1]{\hbox{% + \FRifFIT\else\hskip-\fboxrule\hskip-\fboxsep\fi + \FBs@raise{\wshadowbox{#1}}% + \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\kern-\shadowsize\fi}} +\@ifdefinable\FB@wshadowbox@adj{\let\FB@wshadowbox@adj\FB@shadowbox@adj} +\newcommand\FB@wshadowbox@reset{\fboxsep3\p@\fboxrule.4\p@\shadowsize4\p@} +\newcommand\FB@doublebox@frame[1]{\hbox{% + \FRifFIT\else\kern-4.75\fboxrule\kern-.5pt\kern-\fboxsep\fi + \doublebox{#1}% + \FRifFIT\else\kern-4.75\fboxrule\kern-.5pt\kern-\fboxsep\fi}} +\newcommand\FB@doublebox@adj{\dimen@=2\fboxsep + \advance\dimen@7.5\fboxrule\advance\dimen@\p@} +\newcommand\FB@doublebox@reset{\fboxsep3\p@\fboxrule.4\p@} +\DeclareFloatStyle{shadowbox}{style=boxed,framestyle=shadowbox} +\DeclareFloatStyle{Shadowbox}{style=Boxed,framestyle=shadowbox} +\DeclareFloatStyle{SHADOWBOX}{style=BOXED,framestyle=shadowbox} +\DeclareFloatStyle{wshadowbox}{style=boxed,framestyle=wshadowbox} +\DeclareFloatStyle{Wshadowbox}{style=Boxed,framestyle=wshadowbox} +\DeclareFloatStyle{WSHADOWBOX}{style=BOXED,framestyle=wshadowbox} +\DeclareFloatStyle{doublebox}{style=boxed,framestyle=doublebox} +\DeclareFloatStyle{Doublebox}{style=Boxed,framestyle=doublebox} +\DeclareFloatStyle{DOUBLEBOX}{style=BOXED,framestyle=doublebox} +\endinput +%% +%% End of file `fr-fancy.sty'. |