summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-07-16 22:34:10 +0000
committerKarl Berry <karl@freefriends.org>2014-07-16 22:34:10 +0000
commit966482b48825b6eb8921b32c685b0ce8805480f8 (patch)
tree161e13300c97b3d4f7af51b50b89b520f48e9f4b /Master
parentdf7fe5d3445e7c25bc8b42529e984e91eb110d9d (diff)
bidishadowtext (16jul14)
git-svn-id: svn://tug.org/texlive/trunk@34633 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdfbin0 -> 18289 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.tex63
-rw-r--r--Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdfbin0 -> 101629 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.tex34
-rw-r--r--Master/texmf-dist/tex/xelatex/bidishadowtext/bidishadowtext.sty67
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/bidishadowtext.tlpsrc0
-rw-r--r--Master/tlpkg/tlpsrc/collection-xetex.tlpsrc1
8 files changed, 166 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf
new file mode 100644
index 00000000000..3d58b9aca9d
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.tex b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.tex
new file mode 100644
index 00000000000..3d177369155
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.tex
@@ -0,0 +1,63 @@
+\documentclass{article}
+\usepackage{xcolor}
+\usepackage{bidishadowtext}
+\usepackage{xepersian}
+\settextfont{XB Yas}
+\begin{document}
+\bidishadowtext{این یک متن سایه‌دار است}
+
+\bigskip
+\bidishadowoffset{2pt}
+\bidishadowtext{این یک متن سایه‌دار است}
+
+\bigskip
+\bidishadowoffsetx{1pt}
+\bidishadowoffsety{4pt}
+\bidishadowtext{این یک متن سایه‌دار است}
+
+\bigskip
+\bidishadowoffset{2pt}
+\bidishadowcolor{blue!40!white}
+\bidishadowtext{این یک متن سایه‌دار است}
+
+\bigskip
+\bidishadowoffset{2pt}
+\bidishadowrgb{1.0, 0.5, 0.5}
+\bidishadowtext{این یک متن سایه‌دار است}
+
+\bigskip
+\definecolor{navy}{rgb}{0,0,0.5}
+\bidishadowrgb{0.8, 0.8, 1}
+\bidishadowoffset{1pt}
+\bidishadowtext{
+ {\color{navy}
+ \fontsize{16}{16}\selectfont
+بزرگ!%
+}}
+
+\bigskip
+\bidishadowoffset{1pt}
+\bidishadowtext{%
+ \begin{tabular}{|l|l|}
+ \hline
+ 1 & 2 \\
+ 3 & 4 \\
+ \hline
+ \end{tabular}
+}
+
+\bigskip
+\bidishadowoffset{1pt}
+\bidishadowtext{$\sqrt{2\pi}e^{-n}$}
+
+\bigskip
+\bidishadowoffset{2pt}
+\bidishadowtext{%
+ \fontsize{32}{32}%
+ \selectfont%
+ \textcolor{navy}{%
+ قسمت%
+}
+ \textcolor{red}{۴}%
+}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdf b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdf
new file mode 100644
index 00000000000..277321c161c
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.tex b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.tex
new file mode 100644
index 00000000000..ba806f755e2
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.tex
@@ -0,0 +1,34 @@
+\documentclass{ltxdoc}
+\usepackage{holtxdoc}
+\begin{document}
+\title{The \xpackage{bidishadowtext} Package}
+\author{Vafa Khalighi\\\xemail{persian-tex@tug.org}}
+\maketitle
+\vskip 0pt plus 3fill
+\fbox{%
+\begin{minipage}{\dimexpr(\textwidth-2\fboxsep-2\fboxrule)}
+If you want to report any bugs or typos and corrections in the documentation,
+or ask for any new features, or suggest any improvements, or ask any questions
+about the package, then please do not send any direct email to me; I will not
+answer any direct email. Instead please use the issue tracker:
+
+\medskip
+ \centerline{\url{https://github.com/vafa/bidishadowtext/issues}}
+
+\medskip
+In doing so, please always explain your issue well enough, always include
+a minimal working example showing the issue, and always choose the appropriate
+label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
+\end{minipage}
+}
+\tableofcontents
+ \section{Introduction}
+The \xpackage{shadowtext} package allows you to have colored shadow text; unfortunately this package does not work well together with \xpackage{bidi} package.
+
+
+The \xpackage{bidishadowtext} package is a re-implementation of \xpackage{shadowtext} package adding bidi support.
+
+\section{Documentation}
+All the commands of \xpackage{shadowtext} package are prefixed with \texttt{bidi} in \xpackage{bidishadowtext} package; for instance instead using \cs{shadowtext} command; you will need to use \cs{bidishadowtext} command. You must always load \xpackage{bidishadowtext} package before \xpackage{bidi} package (or any other packages that uses \xpackage{bidi} package internally like \xpackage{xepersian} package).
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/xelatex/bidishadowtext/bidishadowtext.sty b/Master/texmf-dist/tex/xelatex/bidishadowtext/bidishadowtext.sty
new file mode 100644
index 00000000000..9d969088c9e
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/bidishadowtext/bidishadowtext.sty
@@ -0,0 +1,67 @@
+%%
+%% This is file `bidishadowtext.sty'.
+%%
+%% __________________________________________________
+%% Copyright © 2014 Vafa Khalighi <persian-tex@tug.org>
+%%
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bidishadowtext}
+ [2014/07/16 v0.1 Bidi-aware shadow text]
+
+\RequirePackage{color}
+
+\newlength\bidist@shadowoffsetx
+\newlength\bidist@shadowoffsety
+
+\bidist@shadowoffsetx=1pt
+\bidist@shadowoffsety=1pt
+
+\newcommand\bidishadowoffset[1]{\setlength\bidist@shadowoffsetx{#1}\setlength\bidist@shadowoffsety{#1}}
+\newcommand\bidishadowoffsetx[1]{\setlength\bidist@shadowoffsetx{#1}}
+\newcommand\bidishadowoffsety[1]{\setlength\bidist@shadowoffsety{#1}}
+\newcommand\bidishadowcolor[1]{\def\bidist@shadowcolor{#1}}
+\newcommand\bidishadowrgb[1]{\definecolor{bidist@shadowcolorrgb}{rgb}{#1}\bidishadowcolor{bidist@shadowcolorrgb}}
+
+\bidishadowrgb{0.66,0.66,0.66}
+
+\newlength\bidist@temp@width
+\newlength\bidist@temp@height
+\newlength\bidist@pic@width
+\newlength\bidist@pic@height
+
+\newcommand\bidishadowtext[1]%
+{%
+ \begingroup%
+ \settowidth{\bidist@temp@width}{#1}%
+ \settoheight{\bidist@temp@height}{#1}%
+ \setlength{\bidist@pic@width}{\bidist@temp@width}%
+ \setlength{\bidist@pic@height}{\bidist@temp@height}%
+ \addtolength{\bidist@pic@width}{\bidist@shadowoffsetx}%
+ \addtolength{\bidist@pic@height}{\bidist@shadowoffsety}%
+ %
+ \edef\num@tw{\strip@pt\bidist@temp@width}%
+ \edef\num@th{\strip@pt\bidist@temp@height}%
+ \edef\num@pw{\strip@pt\bidist@pic@width}%
+ \edef\num@ph{\strip@pt\bidist@pic@height}%
+ \edef\num@offsetx{\strip@pt\bidist@shadowoffsetx}%
+ \edef\num@offsety{\strip@pt\bidist@shadowoffsety}%
+ \raisebox{-\bidist@shadowoffsety}{
+ \begin{picture}(\num@pw,\num@ph)(0,0)
+ \if@RTL\put(0,\num@offsety){\makebox(\num@tw,\num@th)[tl]{\ignorespaces #1}}\fi
+ \put(\num@offsetx,0){\makebox(\num@tw,\num@th)[tl]{{\color{\bidist@shadowcolor}\def\color##1{}\ignorespaces #1}}}
+ \if@RTL\else\put(0,\num@offsety){\makebox(\num@tw,\num@th)[tl]{\ignorespaces #1}}\fi
+ \end{picture}}%
+ \endgroup%
+ \ignorespaces%
+}
+\endinput
+%%
+%% End of file `bidishadowtext.sty'. \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 7344f89ea5f..e78feaff998 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -89,7 +89,7 @@ my @TLP_working = qw(
bibleref-parse
biblist bibtex bibtopic
bibtopicprefix bibexport bibunits
- bidi bidicontour bidipagegrid
+ bidi bidicontour bidipagegrid bidishadowtext
bigfoot bigints binomexp biocon bitelist bizcard
blacklettert1 blindtext blkarray block blockdraw_mp bloques blowup
bodegraph bohr boisik bold-extra
diff --git a/Master/tlpkg/tlpsrc/bidishadowtext.tlpsrc b/Master/tlpkg/tlpsrc/bidishadowtext.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/bidishadowtext.tlpsrc
diff --git a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
index 54201d9bf37..d0931552357 100644
--- a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
@@ -8,6 +8,7 @@ depend collection-basic
depend arabxetex
depend bidicontour
depend bidipagegrid
+depend bidishadowtext
depend euenc
depend fixlatvian
depend fontbook