summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty')
-rw-r--r--Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty50
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty b/Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty
new file mode 100644
index 00000000000..99a2683623a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty
@@ -0,0 +1,50 @@
+\NeedsTeXFormat{LaTeX2e}[1996/12/01]
+\ProvidesPackage{shadowtext}
+ [2012/04/26 v0.2 Shadow Text]
+
+\RequirePackage{color}
+
+\makeatletter
+
+
+
+\newlength\st@shadowoffsetx
+\newlength\st@shadowoffsety
+
+\st@shadowoffsetx=1pt
+\st@shadowoffsety=1pt
+
+\newcommand\shadowoffset[1]{\setlength\st@shadowoffsetx{#1}\setlength\st@shadowoffsety{#1}}
+\newcommand\shadowoffsetx[1]{\setlength\st@shadowoffsetx{#1}}
+\newcommand\shadowoffsety[1]{\setlength\st@shadowoffsety{#1}}
+\newcommand\shadowcolor[1]{\definecolor{st@shadowcolor}{rgb}{#1}}
+
+\shadowcolor{0.66,0.66,0.66}
+
+\newlength\@sbw
+\newlength\@sbh
+\newlength\@picw
+\newlength\@pich
+
+\newcommand\shadowtext[1]%
+{%
+ \settowidth{\@sbw}{#1}%
+ \settoheight{\@sbh}{#1}%
+ \setlength{\@picw}{\@sbw}%
+ \setlength{\@pich}{\@sbh}%
+ \addtolength{\@picw}{\st@shadowoffsetx}%
+ \addtolength{\@pich}{\st@shadowoffsety}%
+ %
+ \edef\num@tw{\strip@pt\@sbw}%
+ \edef\num@th{\strip@pt\@sbh}%
+ \edef\num@pw{\strip@pt\@picw}%
+ \edef\num@ph{\strip@pt\@pich}%
+ \edef\num@offsetx{\strip@pt\st@shadowoffsetx}%
+ \edef\num@offsety{\strip@pt\st@shadowoffsety}%
+ \begin{picture}(\num@pw,\num@ph)(0,0)
+ \put(\num@offsetx,0){\makebox(\num@tw,\num@th)[tl]{\color{st@shadowcolor}\def\color##1{}\ignorespaces #1}}
+ \put(0,\num@offsety){\makebox(\num@tw,\num@th)[tl]{\ignorespaces #1}}
+ \end{picture}\ignorespaces%
+}
+
+\makeatother \ No newline at end of file