diff options
author | Karl Berry <karl@freefriends.org> | 2015-12-07 22:22:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-12-07 22:22:44 +0000 |
commit | 10354ac33f52acf911acb89a8996a4ddce94bcf7 (patch) | |
tree | 6ebeb654a2662ec4776fc57973c81d0980ed710c /Master/texmf-dist/source/xelatex/bidi/bidi.dtx | |
parent | 0e5d518bf4163d8e656d99f5a8610c718567f166 (diff) |
bidi (7dec15)
git-svn-id: svn://tug.org/texlive/trunk@39044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/bidi/bidi.dtx')
-rw-r--r-- | Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 63 |
1 files changed, 55 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx index 4ca2d270622..9e661a9145b 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx +++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx @@ -5,7 +5,7 @@ %<*readme> ___________________ The bidi package -v19 +v19.1 This package provides a convenient interface for typesetting bidirectional texts in Plain TeX and LaTeX, using XeTeX engine. @@ -25,7 +25,7 @@ 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). -Current version release date: 2015/11/26 +Current version release date: 2015/12/07 ___________________ Vafa Khalighi @@ -148,6 +148,7 @@ by Vafa Khalighi. \generate{\file{newfloat-xetex-bidi.def}{\from{\jobname.dtx}{table,newfloat-xetex-bidi.def}}} \generate{\file{ntheorem-xetex-bidi.def}{\from{\jobname.dtx}{table,ntheorem-xetex-bidi.def}}} \generate{\file{ntheorem-hyper-xetex-bidi.def}{\from{\jobname.dtx}{table,ntheorem-hyper-xetex-bidi.def}}} +\generate{\file{overpic-xetex-bidi.def}{\from{\jobname.dtx}{table,overpic-xetex-bidi.def}}} \generate{\file{pdfpages-xetex-bidi.def}{\from{\jobname.dtx}{table,pdfpages-xetex-bidi.def}}} \generate{\file{pgfcorescopes.code-xetex-bidi.def}{\from{\jobname.dtx}{table,pgfcorescopes.code-xetex-bidi.def}}} \generate{\file{picinpar-xetex-bidi.def}{\from{\jobname.dtx}{table,picinpar-xetex-bidi.def}}} @@ -321,7 +322,7 @@ by Vafa Khalighi. %\changes{v13.9}{2013/09/23}{Added implementaion of the package.} % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\ %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt] -%\large Documentation for \textcolor{blue!65!black}{version 19}} +%\large Documentation for \textcolor{blue!65!black}{version 19.1}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -332,7 +333,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} % %\Large -%Documentation for \textcolor{blue!65!black}{version 19}} +%Documentation for \textcolor{blue!65!black}{version 19.1}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -383,7 +384,7 @@ by Vafa Khalighi. %* %* Copyright (c) 2009--2015 Vafa Khalighi %* -%* 2015/11/26, v19 +%* 2015/12/07, v19.1 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -1140,7 +1141,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{46083} +%% \CheckSum{46182} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -2975,8 +2976,8 @@ by Vafa Khalighi. % \subsection{\textsf{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2015/11/26} -\def\bidiversion{v19} +\def\bididate{2015/12/07} +\def\bidiversion{v19.1} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -13769,6 +13770,7 @@ bidi implementation of tufte title] \bidi@isloaded{fix2col} \bidi@isloaded{draftwatermark} \bidi@isloaded{empheq} +\bidi@isloaded{overpic} \bidi@isloaded{pdfpages} \bidi@isloaded{listings} \bidi@isloaded{lettrine} @@ -13905,6 +13907,9 @@ bidi implementation of tufte title] \if@bidi@empheqloaded@\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package empheq after bidi package. Please load package empheq before bidi package, and then try to run xelatex on your document again}{}]{empheq} \fi% + \if@bidi@overpicloaded@\else + \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package overpic after bidi package. Please load package overpic before bidi package, and then try to run xelatex on your document again}{}]{overpic} + \fi% \if@bidi@pdfpagesloaded@\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pdfpages after bidi package. Please load package pdfpages before bidi package, and then try to run xelatex on your document again}{}]{pdfpages} \fi% @@ -15374,6 +15379,47 @@ bidi implementation of tufte title] % \end{macrocode} % \iffalse %</ntheorem-hyper-xetex-bidi.def> +%<*overpic-xetex-bidi.def> +%\fi +% \subsection{\textsf{overpic-xetex-bidi.def}} +% \begin{macrocode} +\ProvidesFile{overpic-xetex-bidi.def}[2015/12/07 v0.1 bidi adaptations for overpic package for XeTeX engine] +\renewenvironment{overpic}[2][]{% + \sbox{\z@}{\includegraphics[#1]{#2}}% + \settodepth{\@tempcnta}{\usebox{\z@}}% + \settoheight{\@tempcntb}{\usebox{\z@}}% + \advance\@tempcntb\@tempcnta% + \settowidth{\@tempcnta}{\usebox{\z@}}% + \setlength{\@tempdima}{\unitlength}% + \count@=\z@\Gin@gridfalse\setkeys{Gin}{#1}% +% + \OVP@calc% +% + \begin{picture}(\@tempcnta,\@tempcntb)% + \if@RTL\else\put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}% + \ifGin@grid% + \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont% + \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}% + \fi\fi% + % reset the graphics parameter + \let\Gin@outer@scalex\relax + \let\Gin@outer@scaley\relax + \let\Gin@angle\relax + \let\Gin@ewidth\Gin@exclamation + \let\Gin@eheight\Gin@ewidth + \def\Gin@scalex{1} + \let\Gin@scaley\Gin@exclamation +}{% + \if@RTL\ifGin@grid% + \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont% + \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}% + \fi% + \put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}\fi% + \end{picture}% +}% +% \end{macrocode} +% \iffalse +%</overpic-xetex-bidi.def> %<*pdfpages-xetex-bidi.def> %\fi % \subsection{\textsf{pdfpages-xetex-bidi.def}} @@ -20797,6 +20843,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \@ifpackageloaded{eso-pic}{\input{eso-pic-xetex-bidi.def}}{} \@ifpackageloaded{empheq}{\input{empheq-xetex-bidi.def}}{} \@ifpackageloaded{framed}{\input{framed-xetex-bidi.def}}{} +\@ifpackageloaded{overpic}{\input{overpic-xetex-bidi.def}}{} \@ifpackageloaded{pdfpages}{\input{pdfpages-xetex-bidi.def}}{} \@ifpackageloaded{lettrine}{\input{lettrine-xetex-bidi.def}}{} \@ifpackageloaded{listings}{\input{listings-xetex-bidi.def}}{} |