diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-13 21:51:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-13 21:51:23 +0000 |
commit | 8fcabb58bbcbd59bd73b0010c3f273168f988605 (patch) | |
tree | 067ad1c663352e574ec35168cbcba272d6e5d274 /Master | |
parent | e391081f77560a69036a7368f698f5cce09a5dc8 (diff) |
bidicontour (13jul14)
git-svn-id: svn://tug.org/texlive/trunk@34595 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.pdf | bin | 0 -> 101417 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.tex | 34 | ||||
-rwxr-xr-x | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.pdf | bin | 0 -> 7167 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.tex | 9 | ||||
-rwxr-xr-x | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.pdf | bin | 0 -> 7116 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.tex | 9 | ||||
-rwxr-xr-x | Master/texmf-dist/tex/xelatex/bidicontour/bidicontour.sty | 141 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/bidicontour.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-xetex.tlpsrc | 1 |
10 files changed, 196 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.pdf b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.pdf Binary files differnew file mode 100644 index 00000000000..c6e99d77d85 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.pdf diff --git a/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.tex b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.tex new file mode 100755 index 00000000000..4111b6859c6 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-doc.tex @@ -0,0 +1,34 @@ +\documentclass{ltxdoc} +\usepackage{holtxdoc} +\begin{document} +\title{The \xpackage{bidicontour} 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/bidicontour/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{contour} package allows you to have colored contour text; unfortunately this package does not work together with \xpackage{bidi} package; in addition its \texttt{outline} option does not support xdvipdfmx driver. + + +The \xpackage{bidicontour} package is a re-implementation of \xpackage{contour} package adding bidi support; it also adds support for xdvipdfmx driver when you use \texttt{outline} option of the package. + +\section{Documentation} +All the commands of \xpackage{contour} package are prefixed with \texttt{bidi} in \xpackage{bidicontour} package; for instance instead using \cs{contour} command; you will need to use \cs{bidicontour} command. You must always load \xpackage{bidicontour} 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/doc/xelatex/bidicontour/bidicontour-example-copies.pdf b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.pdf Binary files differnew file mode 100755 index 00000000000..36c7d86214f --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.pdf diff --git a/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.tex b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.tex new file mode 100755 index 00000000000..fd9797b2cf6 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-copies.tex @@ -0,0 +1,9 @@ +\documentclass{minimal} +\usepackage{bidicontour} +\usepackage{xepersian} +\settextfont{XB Yas} +\begin{document} +\fontsize{60}{70}\selectfont + +\bidicontour{red}{شاهنامه فردوسی} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.pdf b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.pdf Binary files differnew file mode 100755 index 00000000000..e1214dccede --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.pdf diff --git a/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.tex b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.tex new file mode 100755 index 00000000000..a4e8e74062a --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidicontour/bidicontour-example-outline.tex @@ -0,0 +1,9 @@ +\documentclass{minimal} +\usepackage[outline]{bidicontour} +\usepackage{xepersian} +\settextfont{XB Yas} +\begin{document} +\fontsize{60}{70}\selectfont + +\bidicontour{red}{شاهنامه فردوسی} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/bidicontour/bidicontour.sty b/Master/texmf-dist/tex/xelatex/bidicontour/bidicontour.sty new file mode 100755 index 00000000000..08e791d5f3c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/bidicontour/bidicontour.sty @@ -0,0 +1,141 @@ +%% +%% This is file `bidicontour.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{bidicontour} + [2014/07/14 v0.1 Bidi-aware bidicontoured text] +\RequirePackage{color} +\RequirePackage{trig} +\def\bidicon@coloroff{% + \def\@undeclaredcolor[##1]##2{}% + \def\@declaredcolor##1{}% +} +\newcommand*\bidicon@put[3]{% + \if@RTL% + \llap{\raisebox{#2}[0pt]{#3}\hskip-#1}% + \else% + \rlap{\hskip#1\raisebox{#2}[0pt]{#3}}% + \fi} +\newcommand*\bidicontourlength[1]{\def\bidicon@base@length{#1}} +\bidicontourlength{0.03em} +\newcommand*\bidicontournumber[1]{\def\bidicon@default@copies{#1}} +\bidicontournumber{16} +\newlength{\bidicon@length} +\newcommand*\bidicon@define@copyangles[1]{% + \edef\bidicon@tempa{auto}% + \edef\bidicon@tempb{#1}% + \ifx\bidicon@tempa\bidicon@tempb + \expandafter\ifdim\f@size pt<15pt\relax + \edef\bidicon@tempb{16}% + \else + \expandafter\ifdim\f@size pt<25pt\relax + \edef\bidicon@tempb{32}% + \else + \expandafter\ifdim\f@size pt<50pt\relax + \edef\bidicon@tempb{60}% + \else + \edef\bidicon@tempb{120}% + \fi + \fi + \fi + \fi + \@tempcnta=\bidicon@tempb\relax + \@ifundefined{bidicon@\number\@tempcnta @copies}{% + \global\@namedef{bidicon@\number\@tempcnta @copies}{}% + \@tempdima=360\p@ + \divide\@tempdima by \@tempcnta + \@tempdimb=\z@ + \@tempcntb=\z@ + \loop + \ifnum\@tempcntb<\@tempcnta + \edef\bidicon@temp@fdim{\strip@pt\@tempdimb}% + \CalculateSin{\bidicon@temp@fdim}% + \CalculateCos{\bidicon@temp@fdim}% + \advance\@tempcntb \@ne + \advance\@tempdimb \@tempdima\relax + \repeat + }{}% + \let\bidicon@tempa\@undefined + \let\bidicon@tempb\@undefined +} +\newcommand*\bidicontour{\@ifstar{\@bidicontour[32]}{\@bidicontour}} +\newcommand*\@bidicontour[3][\bidicon@default@copies]{% + \ifvmode + \leavevmode + \fi + \setlength\bidicon@length{\bidicon@base@length}% + \ifbidicon@outline + \typeout{bidicontour: Using real outline for `#3'\on@line.}% + \@bidicontour@outline{#2}{#3}% + \else + \if@RTL\mbox{#3}\fi% + \begingroup + \bidicon@define@copyangles{#1}% + \typeout{bidicontour: Using \the\@tempcnta\space copies for `#3'\on@line.}% + \@tempdima=360\p@ + \divide\@tempdima by \@tempcnta\relax + \@tempdimb=\z@ + \@tempcntb=\z@ + \color{#2}% + \bidicon@coloroff + \loop + \ifnum\@tempcntb<\@tempcnta\relax + \edef\bidicon@temp@fdim{\strip@pt\@tempdimb}% + \bidicon@put + {\UseSin{\bidicon@temp@fdim}\bidicon@length}% + {\UseCos{\bidicon@temp@fdim}\bidicon@length}% + {#3}% + \advance\@tempcntb \@ne\relax + \advance\@tempdimb\@tempdima\relax + \repeat + \endgroup + \if@RTL\else\mbox{#3}\fi% + \fi +} +\newcommand*\@bidicontour@outline[2]{% + \if@RTL\mbox{#2}\fi% + \begingroup + \setlength\bidicon@length{2\bidicon@length}% + \setlength\bidicon@length{0.99626400996\bidicon@length}% + \color{#1}% + \bidicon@coloroff + \beginL\special{% + pdf:code + q + 1 j + 1 J + 1 Tr + \strip@pt\bidicon@length\space w + }% + \rlap{\if@RTL\beginR\fi #2\if@RTL\endR\fi}% + \special{% + pdf:code + Q + }\endL% + \endgroup + \if@RTL\else\mbox{#2}\fi% +} +\newif\ifbidicon@outline +\DeclareOption{auto}{\bidicontournumber{auto}} +\DeclareOption{outline}{\bidicon@outlinetrue} +\DeclareOption{copies}{\bidicon@outlinefalse} +\InputIfFileExists{bidicontour.cfg}{% + \typeout{Loading configuration file `bidicontour.cfg'.}% +}{% + \typeout{No configuration file `bidicontour.cfg' found.}% +} +\ProcessOptions\relax +\endinput +%% +%% End of file `bidicontour.sty'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index a6809f7c31a..66b000638ee 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -89,7 +89,8 @@ my @TLP_working = qw( bibleref-parse biblist bibtex bibtopic bibtopicprefix bibexport bibunits - bidi bidipagegrid bigfoot bigints binomexp biocon bitelist bizcard + bidi bidicontour bidipagegrid + bigfoot bigints binomexp biocon bitelist bizcard blacklettert1 blindtext blkarray block blockdraw_mp bloques blowup bodegraph bohr boisik bold-extra boites boldtensors bondgraph bookest bookhands booklet diff --git a/Master/tlpkg/tlpsrc/bidicontour.tlpsrc b/Master/tlpkg/tlpsrc/bidicontour.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/bidicontour.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc index 96a45256df5..54201d9bf37 100644 --- a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc @@ -6,6 +6,7 @@ longdesc http://tug.org/xetex. depend collection-basic # depend arabxetex +depend bidicontour depend bidipagegrid depend euenc depend fixlatvian |