From 44b6547a1fd727060c83f23c3c2e05dfca76ad10 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 4 Nov 2010 18:00:55 +0000 Subject: shadow own package (1nov10) git-svn-id: svn://tug.org/texlive/trunk@20312 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/shadow/shadow-doc.pdf | Bin 0 -> 221735 bytes Master/texmf-dist/doc/latex/shadow/shadow-doc.tex | 71 +++++++++++++++++ Master/texmf-dist/tex/latex/ltxmisc/shadow.sty | 90 ---------------------- Master/texmf-dist/tex/latex/shadow/shadow.sty | 90 ++++++++++++++++++++++ 4 files changed, 161 insertions(+), 90 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/shadow/shadow-doc.pdf create mode 100644 Master/texmf-dist/doc/latex/shadow/shadow-doc.tex delete mode 100644 Master/texmf-dist/tex/latex/ltxmisc/shadow.sty create mode 100644 Master/texmf-dist/tex/latex/shadow/shadow.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/shadow/shadow-doc.pdf b/Master/texmf-dist/doc/latex/shadow/shadow-doc.pdf new file mode 100644 index 00000000000..575fb0a3551 Binary files /dev/null and b/Master/texmf-dist/doc/latex/shadow/shadow-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/shadow/shadow-doc.tex b/Master/texmf-dist/doc/latex/shadow/shadow-doc.tex new file mode 100644 index 00000000000..cbcac96cbf2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/shadow/shadow-doc.tex @@ -0,0 +1,71 @@ +\documentclass[pagesize=auto, fontsize=12pt, DIV=10, parskip=half]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother +\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle} +\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{shadow} package\thanks{This manual corresponds to \pkg{shadow.sty}~v1.3, dated~19 February 2003.}} +\author{Mauro Orlandini\thanks{\mail{orlandini@bo.iasf.cnr.it}}} +\date{19 February 2003} + + +\begin{document} + +\maketitle + +\begin{abstract} + \noindent + The command \cmd{\shabox} has the same meaning of the + \LaTeX\ command \cmd{\fbox} except for the fact that a + ``shadow'' is added to the bottom and the right side + of the box. It computes the right dimension of the + box, even if the text spans over more than one + line; in this case a warning messagge is given. +\end{abstract} + +There are three parameters governing: +% +\begin{enumerate} +\item the width of the lines delimiting the box: + \cmd{\sboxrule} +\item the separation between the edge of the box and + its contents: \cmd{\sboxsep} +\item the dimension of the shadow: \cmd{\sdim} +\end{enumerate} + + +\minisec{Sintax:} + +\cmd{\shabox}\marg{text}\\ +where \meta{text} is the text to be put in the +framed box. It can be an entire paragraph. + +Adapted from the file \texttt{dropshadow.tex} by +\mail{drstrip@cd.sandia.gov}. +% +\begin{labeling}{V1.1} +\item[V1.1] Works in a double column environment. +\item[V1.2] When there is an online shadow box, it + will be centered on the line (in V1.1 the + box was aligned with the baseline). + (Courtesy by Mike Piff)'' +\item[V1.3] Added a number of missing \verb|%| signs\\ + no other cleanup done (FMi) +\end{labeling} + +\end{document} diff --git a/Master/texmf-dist/tex/latex/ltxmisc/shadow.sty b/Master/texmf-dist/tex/latex/ltxmisc/shadow.sty deleted file mode 100644 index c07d11b9155..00000000000 --- a/Master/texmf-dist/tex/latex/ltxmisc/shadow.sty +++ /dev/null @@ -1,90 +0,0 @@ -%% -%% This is file `shadow.sty', -%% -%% Copyright 1994, 2003 Mauro Orlandini -%% -%% It may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.2 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX -%% version 1999/12/01 or later. -%% -%%% ====================================================================== -%%% @LaTeX-style{ -%%% filename = "shadow.sty", -%%% version = "1.3", -%%% date = "19 February 2003", -%%% author = "Mauro Orlandini", -%%% address = "TeSRE Institute/CNR -%%% Area della Ricerca di Bologna -%%% Via Gobetti 101 -%%% 40129 Bologna, Italy", -%%% e-mail = "orlandini@bo.iasf.cnr.it", -%%% telephone = "+39 51 639-8667", -%%% FAX = "+39 51 639-8723", -%%% supported = "yes", -%%% abstract = "The command \shabox has the same meaning of the -%%% LaTeX command \fbox except for the fact that a -%%% "shadow" is added to the bottom and the right side -%%% of the box. It computes the right dimension of the -%%% box, even if the text spans over more than one -%%% line; in this case a warning messagge is given.", -%%% codetable = "ISO/ASCII", -%%% docstring = "There are three parameters governing: -%%% 1. the width of the lines delimiting the box: -%%% \sboxrule -%%% 2. the separation between the edge of the box and -%%% its contents: \sboxsep -%%% 3. the dimension of the shadow: \sdim -%%% Sintax: \shabox{} -%%% where is the text to be put in the -%%% framed box. It can be an entire paragraph. -%%% Adapted from the file dropshadow.tex by -%%% drstrip@cd.sandia.gov. -%%% V1.1 Works in a double column environment. -%%% V1.2 When there is an online shadow box, it -%%% will be centered on the line (in V1.1 the -%%% box was aligned with the baseline). -%%% (Courtesy by Mike Piff)" -%%% V1.3 Added a number of missing % signs -%%% no other cleanup done (FMi) -%%% -%%% } -%%% ====================================================================== -% -% -\ProvidesPackage{shadow}[2003/02/19 v1.3 shadow boxes (M.O.)] - -\newdimen\txtwdth \newdimen\sht \newdimen\shw \newbox\shbox -\newdimen\sboxsep \newdimen\sboxrule \newdimen\sdim -\sboxsep = 10pt -\sdim = 4pt -\sboxrule = .4pt -\def\shabox#1{\setbox\@tempboxa\hbox{#1}% -\shw\wd\@tempboxa -\if@twocolumn\txtwdth\columnwidth\else\txtwdth\textwidth\fi -\ifdim\shw<\txtwdth - \leavevmode\setbox\@tempboxa\hbox{#1}% -\else - \typeout{Shadow Warning: Box dimension greater than textwidth.}% - \setbox\@tempboxa\vbox{\hsize\txtwdth\advance\hsize-2\sboxsep - \advance\hsize-2\sboxrule \advance\hsize-2\sdim \advance\hsize-15pt#1}% -\fi - \setbox\shbox\hbox{\@tempdima\sboxrule - \advance\@tempdima \sboxsep \advance\@tempdima \dp\@tempboxa - \hbox{\lower \@tempdima\hbox - {\vbox{\hrule \@height \sboxrule - \hbox{\vrule \@width \sboxrule \hskip\sboxsep - \vbox{\vskip\sboxsep \box\@tempboxa\vskip\sboxsep}\hskip - \sboxsep\vrule \@width \sboxrule}% - \hrule \@height \sboxrule}}}}% -\sht\ht\shbox \advance\sht-\sdim -\leavevmode\vbox{\baselineskip0pt\lineskip0pt\vtop{%% V1.2 - %% Added \vtop - %% From M.Piff - \hbox{\copy\shbox\vrule width\sdim height\sht}% - \hbox{\kern\sdim\vrule height\sdim width \wd\shbox}}}} - -\endinput diff --git a/Master/texmf-dist/tex/latex/shadow/shadow.sty b/Master/texmf-dist/tex/latex/shadow/shadow.sty new file mode 100644 index 00000000000..c07d11b9155 --- /dev/null +++ b/Master/texmf-dist/tex/latex/shadow/shadow.sty @@ -0,0 +1,90 @@ +%% +%% This is file `shadow.sty', +%% +%% Copyright 1994, 2003 Mauro Orlandini +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.2 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%%% ====================================================================== +%%% @LaTeX-style{ +%%% filename = "shadow.sty", +%%% version = "1.3", +%%% date = "19 February 2003", +%%% author = "Mauro Orlandini", +%%% address = "TeSRE Institute/CNR +%%% Area della Ricerca di Bologna +%%% Via Gobetti 101 +%%% 40129 Bologna, Italy", +%%% e-mail = "orlandini@bo.iasf.cnr.it", +%%% telephone = "+39 51 639-8667", +%%% FAX = "+39 51 639-8723", +%%% supported = "yes", +%%% abstract = "The command \shabox has the same meaning of the +%%% LaTeX command \fbox except for the fact that a +%%% "shadow" is added to the bottom and the right side +%%% of the box. It computes the right dimension of the +%%% box, even if the text spans over more than one +%%% line; in this case a warning messagge is given.", +%%% codetable = "ISO/ASCII", +%%% docstring = "There are three parameters governing: +%%% 1. the width of the lines delimiting the box: +%%% \sboxrule +%%% 2. the separation between the edge of the box and +%%% its contents: \sboxsep +%%% 3. the dimension of the shadow: \sdim +%%% Sintax: \shabox{} +%%% where is the text to be put in the +%%% framed box. It can be an entire paragraph. +%%% Adapted from the file dropshadow.tex by +%%% drstrip@cd.sandia.gov. +%%% V1.1 Works in a double column environment. +%%% V1.2 When there is an online shadow box, it +%%% will be centered on the line (in V1.1 the +%%% box was aligned with the baseline). +%%% (Courtesy by Mike Piff)" +%%% V1.3 Added a number of missing % signs +%%% no other cleanup done (FMi) +%%% +%%% } +%%% ====================================================================== +% +% +\ProvidesPackage{shadow}[2003/02/19 v1.3 shadow boxes (M.O.)] + +\newdimen\txtwdth \newdimen\sht \newdimen\shw \newbox\shbox +\newdimen\sboxsep \newdimen\sboxrule \newdimen\sdim +\sboxsep = 10pt +\sdim = 4pt +\sboxrule = .4pt +\def\shabox#1{\setbox\@tempboxa\hbox{#1}% +\shw\wd\@tempboxa +\if@twocolumn\txtwdth\columnwidth\else\txtwdth\textwidth\fi +\ifdim\shw<\txtwdth + \leavevmode\setbox\@tempboxa\hbox{#1}% +\else + \typeout{Shadow Warning: Box dimension greater than textwidth.}% + \setbox\@tempboxa\vbox{\hsize\txtwdth\advance\hsize-2\sboxsep + \advance\hsize-2\sboxrule \advance\hsize-2\sdim \advance\hsize-15pt#1}% +\fi + \setbox\shbox\hbox{\@tempdima\sboxrule + \advance\@tempdima \sboxsep \advance\@tempdima \dp\@tempboxa + \hbox{\lower \@tempdima\hbox + {\vbox{\hrule \@height \sboxrule + \hbox{\vrule \@width \sboxrule \hskip\sboxsep + \vbox{\vskip\sboxsep \box\@tempboxa\vskip\sboxsep}\hskip + \sboxsep\vrule \@width \sboxrule}% + \hrule \@height \sboxrule}}}}% +\sht\ht\shbox \advance\sht-\sdim +\leavevmode\vbox{\baselineskip0pt\lineskip0pt\vtop{%% V1.2 + %% Added \vtop + %% From M.Piff + \hbox{\copy\shbox\vrule width\sdim height\sht}% + \hbox{\kern\sdim\vrule height\sdim width \wd\shbox}}}} + +\endinput -- cgit v1.2.3