diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf | bin | 0 -> 18289 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.tex | 63 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdf | bin | 0 -> 101629 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.tex | 34 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidishadowtext/bidishadowtext.sty | 67 |
5 files changed, 164 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf Binary files differnew file mode 100644 index 00000000000..3d58b9aca9d --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-demo.pdf 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 Binary files differnew file mode 100644 index 00000000000..277321c161c --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidishadowtext/bidishadowtext-doc.pdf 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 |