summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex')
-rw-r--r--Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex53
1 files changed, 46 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
index 6ea702768fb..641d025f23e 100644
--- a/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
+++ b/Master/texmf-dist/doc/latex/shadowtext/shadowtext.tex
@@ -1,10 +1,28 @@
+%% This is file `shadowtext.tex',
+%% Copyright 2012 Yori Zwols
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% 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.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Y. Zwols.
+%
+%
+
\documentclass{article}
+\usepackage{xcolor}
\usepackage{shadowtext}
\usepackage{multicol}
\begin{document}
-\title{The shadowbox package}
+\title{\bf The shadowtext package \\ \bigskip \normalfont\small Version 0.3}
\author{Y. Zwols (yz2198@columbia.edu)}
\maketitle
@@ -66,21 +84,40 @@ the horizontal and vertical offset. For example:
\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
+The color of the shadow may be changed by using the {\tt shadowcolor} and {\tt shadowrgb} commands.\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:
+The {\tt shadowcolor} command takes as an argument the name of a color, whereas {\tt shadowrgb} takes a comma-separated list of red, green, blue
+values. For example, the following code adds a blueish shadow using {\tt $\backslash$shadowcolor}:
\begin{minipage}{\textwidth}
\begin{multicols*}{2}
{\footnotesize
\begin{verbatim}
\shadowoffset{2pt}
-\setshadowcolor{0.66, 0.66, 1}
+\shadowcolor{blue!40!white}
\shadowtext{This is a shadow text}
\end{verbatim}}
\shadowoffset{2pt}
-\shadowcolor{0.66, 0.66, 1}
+\shadowcolor{blue!40!white}
+\shadowtext{This is a shadow text}\\
+\phantom{}
+\end{multicols*}
+\end{minipage}
+
+The following code produces a red shadow using {\tt $\backslash$shadowrgb}:
+
+\begin{minipage}{\textwidth}
+\begin{multicols*}{2}
+{\footnotesize
+\begin{verbatim}
+\shadowoffset{2pt}
+\shadowrgb{1.0, 0.5, 0.5}
+\shadowtext{This is a shadow text}
+\end{verbatim}}
+
+\shadowoffset{2pt}
+\shadowrgb{1.0, 0.5, 0.5}
\shadowtext{This is a shadow text}\\
\phantom{}
\end{multicols*}
@@ -96,6 +133,7 @@ The following code illustrates how to use shadowtext in more interesting setting
{\footnotesize
\begin{verbatim}
\definecolor{navy}{rgb}{0,0,0.5}
+\shadowrgb{0.8, 0.8, 1}
\shadowoffset{1pt}
\shadowtext{
\color{navy}
@@ -104,10 +142,11 @@ The following code illustrates how to use shadowtext in more interesting setting
\end{verbatim}}
\color{navy}
-\shadowcolor{0.8, 0.8, 1}
+\shadowrgb{0.8, 0.8, 1}
\shadowoffset{2pt}
\shadowtext{\fontsize{16}{16}\selectfont \textbf{Large!}}\\
\phantom{}\\
+\phantom{}\\
\phantom{}
\end{multicols*}
\end{minipage}
@@ -206,4 +245,4 @@ The following code illustrates how to use shadowtext in more interesting setting
\end{minipage}
-\end{document} \ No newline at end of file
+\end{document}