summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/shadowtext/README29
-rw-r--r--Master/texmf-dist/doc/latex/shadowtext/shadowtext.pdfbin0 -> 141841 bytes
-rw-r--r--Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex209
-rw-r--r--Master/texmf-dist/tex/latex/shadowtext/shadowtext.sty50
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/shadowtext.tlpsrc0
7 files changed, 290 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/shadowtext/README b/Master/texmf-dist/doc/latex/shadowtext/README
new file mode 100644
index 00000000000..df41739f75d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/shadowtext/README
@@ -0,0 +1,29 @@
+Shadowtext
+
+-----------------------------------------------------------------------
+shadowtext is the original work of Yori Zwols <yz2198@columbia.edu>
+-----------------------------------------------------------------------
+
+1 - Copyright
+ ---------
+
+COPYRIGHT 2010-2012 by Yori Zwols <yz2198@columbia.edu>.
+
+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.
+
+
+2 - Introduction
+ ------------
+
+The shadowtext package introduces a new command, namely the \shadowtext
+command, which adds a drop shadow to the text that is given as its
+argument. E.g. \shadowtext{hello world} would produce the text "hello
+world" with a drop shadow. The color and positioning of the shadow are
+customizable.
+
+3 - Documentation
+ -------------
+
+Documentation is available in the form of the file shadowtext.tex.
diff --git a/Master/texmf-dist/doc/latex/shadowtext/shadowtext.pdf b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.pdf
new file mode 100644
index 00000000000..7d0dc038265
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
new file mode 100644
index 00000000000..6ea702768fb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
@@ -0,0 +1,209 @@
+\documentclass{article}
+
+\usepackage{shadowtext}
+\usepackage{multicol}
+
+\begin{document}
+\title{The shadowbox package}
+\author{Y. Zwols (yz2198@columbia.edu)}
+\maketitle
+
+\shadowoffset{1pt}
+\parindent=0pt
+\parskip=8pt
+
+\section{Usage}
+The shadowtext package introduces a new command, namely the {\tt $\backslash$shadowtext} command. This is a box
+that adds a shadow behind text. Its usage is simple. The following code and its output illustrates the usage.
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowtext{This is a shadowtext}
+\end{verbatim}}
+
+\shadowtext{This is a shadowtext}
+\end{multicols*}
+\end{minipage}
+
+\section{Changing the position of the shadow}
+The position of the shadow consists of two components: a horizontal offset and a vertical offset.
+The package offers two ways of changing the position of the shadow. The first and easiest way of
+changing the position is by using the {\tt $\backslash$setshadowoffset} command. This commands
+sets the horizontal and vertical offset simultaneously. For example:
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{2pt}
+\shadowtext{This is a shadowtext}
+\end{verbatim}}
+
+\shadowoffset{2pt}
+\shadowtext{This is a shadowtext}
+\end{multicols*}
+\end{minipage}
+
+Alternatively, one may use the commands {\tt shadowoffsetx} and {\tt shadowoffsety} to independently change
+the horizontal and vertical offset. For example:
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffsetx{1pt}
+\shadowoffsety{4pt}
+\shadowtext{This is a shadow text}
+\end{verbatim}}
+
+\shadowoffsetx{1pt}
+\shadowoffsety{4pt}
+\shadowtext{This is a shadow text}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+\section{Changing the color of the shadow}
+The color of the shadow may be change by using the {\tt setshadowcolor} command.\footnote{Internally, the
+package uses the {\tt $\backslash$color} command from the color package to set its color}
+For example, the following code adds a blue shadow:
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{2pt}
+\setshadowcolor{0.66, 0.66, 1}
+\shadowtext{This is a shadow text}
+\end{verbatim}}
+
+\shadowoffset{2pt}
+\shadowcolor{0.66, 0.66, 1}
+\shadowtext{This is a shadow text}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+\section{More examples}
+The following code illustrates how to use shadowtext in more interesting settings:
+
+\definecolor{navy}{rgb}{0,0,0.5}
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\definecolor{navy}{rgb}{0,0,0.5}
+\shadowoffset{1pt}
+\shadowtext{
+ \color{navy}
+ \fontsize{16}{16}\selectfont
+ Large!}
+\end{verbatim}}
+
+\color{navy}
+\shadowcolor{0.8, 0.8, 1}
+\shadowoffset{2pt}
+\shadowtext{\fontsize{16}{16}\selectfont \textbf{Large!}}\\
+\phantom{}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+
+\color{black}
+
+
+
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{1pt}
+\color{black}
+\shadowtext{%
+ \begin{tabular}{|l|l|}
+ \hline
+ 1 & 2 \\
+ 3 & 4 \\
+ \hline
+ \end{tabular}
+}
+\end{verbatim}}
+
+\shadowoffset{1pt}
+\shadowtext{
+ \begin{tabular}{|l|l|}
+ \hline
+ 1 & 2 \\
+ 3 & 4 \\
+ \hline
+ \end{tabular}
+}
+\phantom{}\\
+\phantom{}\\
+\phantom{}\\
+\phantom{}\\
+\phantom{}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+
+
+
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{1pt}
+\shadowtext{$\sqrt{2\pi}e^{-n}$}
+\end{verbatim}}
+
+\shadowoffset{1pt}
+\shadowtext{$\sqrt{2\pi}e^{-n}$}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+\color{black}
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{2pt}
+\shadowtext{
+ \color{navy}%
+ \fontencoding{T1}%
+ \fontfamily{pag}%
+ \fontseries{b}%
+ \fontsize{32}{32}%
+ \selectfont%
+ Section \color{red}\arabic{section}%
+}
+\end{verbatim}}
+
+\shadowoffset{2pt}
+\shadowtext{
+ \color{navy}%
+ \fontencoding{T1}%
+ \fontfamily{pag}%
+ \fontseries{b}%
+ \fontsize{32}{32}%
+ \selectfont%
+ Section \color{red}\arabic{section}
+}
+\phantom{}\\
+\phantom{}\\
+\phantom{}\\
+\phantom{}\\
+\end{multicols*}
+\end{minipage}
+
+
+\end{document} \ No newline at end of file
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
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 1005f74db23..92ee8fa5b29 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -358,7 +358,7 @@ my @TLP_working = qw(
serbian-apostrophe serbian-date-lat serbian-def-cyr serbian-lig serbianc
setspace seuthesis
sf298 sffms sfg
- sfmath sgame shade shadethm shadow shapepar
+ sfmath sgame shade shadethm shadow shadowtext shapepar
shipunov shorttoc show2e showexpl showhyphens showlabels showtags shuffle
sidecap sidenotes sides silence
simplecd simplecv simplewick simplified-latex
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index f83577d254e..666f4dbf6dd 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -644,6 +644,7 @@ depend sf298
depend sffms
depend sfmath
depend shadow
+depend shadowtext
depend shadethm
depend shapepar
depend shipunov
diff --git a/Master/tlpkg/tlpsrc/shadowtext.tlpsrc b/Master/tlpkg/tlpsrc/shadowtext.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/shadowtext.tlpsrc