diff options
author | Karl Berry <karl@freefriends.org> | 2015-11-13 22:34:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-11-13 22:34:31 +0000 |
commit | 3a45a1fb1b8828638ab19aca6c84b78752232431 (patch) | |
tree | 4d691fff1de2c1e6b27227b6e32c16e24fc64dc8 /Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def | |
parent | c5e0cd049cb657a40e15cef1fddf373161d5615d (diff) |
bidi (13nov15)
git-svn-id: svn://tug.org/texlive/trunk@38841 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def index f6435529c19..d2c221f195e 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{44926} +%% \CheckSum{45014} %% \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 @@ -34,11 +34,36 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{pstricks-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for pstricks package for XeTeX engine] -\let\origin@pspicture=\pspicture -\let\origin@endpspicture=\endpspicture -\def\pspicture{\ifmmode\else\LTR\beginL\fi\origin@pspicture} -\def\endpspicture{\origin@endpspicture\ifmmode\else\endL\endLTR\fi} +\ProvidesFile{pstricks-xetex-bidi.def}[2015/11/14 v0.4 bidi adaptations for pstricks package for XeTeX engine] +\def\pspicture{\begingroup\ifmmode\else\@RTLfalse\beginL\fi\pst@ifstar\pst@picture} +\def\endpspicture{% + \ifshowgrid\ifnum\showgridp@s>0 + \psgrid[xunit=\sh@wgridXunit,yunit=\sh@wgridYunit,style=gridstyle]\fi\fi% + \pst@killglue + \endgroup + \egroup + \ifdim\wd\pst@hbox=\z@\else + %\@pstrickserr{Extraneous space in the pspicture environment}% + %{Type \space <return> \space to proceed.}% + \fi + \ht\pst@hbox=\pst@dimd + \dp\pst@hbox=-\pst@dimb + \setbox\pst@hbox=\hbox{% + \kern-\pst@dima + \ifPst@shift@star%\typeout{==pstricks== old behaviour of the shift option}% shift=* + \advance\pst@dimd-\pst@dimb + \pst@dimd=0.5\pst@dimd + \else\pst@dimd-\pst@shift\fi + \advance\pst@dimd\pst@dimb + \lower\pst@dimd% + \box\pst@hbox% + \kern\pst@dimc}% + \if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi% + \leavevmode\box\pst@hbox% + \ifmmode\else\endL\fi% + \endgroup% + \psset[pstricks]{shift=0}% reset value +} \endinput %% %% End of file `pstricks-xetex-bidi.def'. |