diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
commit | 873660d1a83ece926fe7206288dda9c36b349c1b (patch) | |
tree | a48f77125c309a355b5d0eb58d6b24446abe9d62 /Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht | |
parent | 2939242967231097459df0fc3150fabc2f639111 (diff) |
generic 1
git-svn-id: svn://tug.org/texlive/trunk@613 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht b/Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht new file mode 100644 index 00000000000..7534bfe8f17 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/pstricks.4ht @@ -0,0 +1,101 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% pstricks.4ht 2005-10-23-04:19 % +% Copyright (C) 1997--2005 Eitan M. Gurari % +% % +% This work may be distributed and/or modified under the % +% conditions of the LaTeX Project Public License, either % +% version 1.3 of this license or (at your option) any % +% later version. The latest version of this license is % +% in % +% http://www.latex-project.org/lppl.txt % +% and version 1.3 or later is part of all distributions % +% of LaTeX version 2003/12/01 or later. % +% % +% This work has the LPPL maintenance status "maintained".% +% % +% This Current Maintainer of this work % +% is Eitan M. Gurari. % +% % +% If you modify this program your changing its signature % +% with a directive of the following form will be % +% appreciated. % +% \message{signature} % +% % +% gurari@cse.ohio-state.edu % +% http://www.cse.ohio-state.edu/~gurari % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\immediate\write-1{version 2005-10-23-04:19} + +\pend:def\pst@picture{\global\let\pst:EndPicture\EndPicture + \let\EndPicture=\empty} +\def\endpspicture{% +\pst@killglue +\endgroup +\egroup +\ifdim\wd\pst@hbox=\z@\else + \:warning{Hidden \string\@pstrickserr + {Extraneous space in the pspicture environment}}% +\fi +\ht\pst@hbox=\pst@dimd +\dp\pst@hbox=-\pst@dimb +\setbox\pst@hbox=\hbox{% +\kern-\pst@dima +\ifx\pst@tempa\@empty\else +\advance\pst@dimd-\pst@dimb +\pst@dimd=\pst@tempa\pst@dimd +\advance\pst@dimd\pst@dimb +\lower\pst@dimd +\fi +\box\pst@hbox +\kern\pst@dimc}% +\if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi@star +\ifnum \ps:level=0 + \let\EndPicture\pst:EndPicture + \global\let\pst:EndPicture=\:UnDef + \a:pspicture\box\pst@hbox\b:pspicture +\else + \xdef\pspicture:dim{\the\wd\pst@hbox, + \the\ht\pst@hbox, \the\ht\pst@hbox}% + \box\pst@hbox +\fi +% +\endgroup} +\expand:after{\let\fi@star}\csname fi\endcsname +\NewConfigure{pspicture}{2} +\HAssign\ps:level=0 + +\def\rput@iv(#1){\pst@killglue \gHAdvance\ps:level by 1 + \pst@makebox{\gHAdvance\ps:level by -1 \rput@v{#1}}} +\def\rput@v#1{\begingroup + \use@par + \if@star\pst@starbox\fi + \pst@makesmall\pst@hbox + \pst@rotate\psk@rot\pst@hbox + \ifnum \ps:level=0 + \expandafter\ifx \csname pspicture:dim\endcsname\relax + \ht:everypar{}\psput@{#1}\pst@hbox + \else + \def\psput@cartesian##1{% + \hbox to \pst@dimg{{\vbox to \pst@dimh{\vss\box##1}\hss}}}% +\global\let\pspicture:dim=\:UnDef +\let\sv:leavevmode=\leavevmode +\def\leavevmode{% + \let\leavevmode=\sv:leavevmode + % + \let\EndPicture\pst:EndPicture + \global\let\pst:EndPicture=\:UnDef + \a:pspicture \leavevmode}% +\psput@{#1}\pst@hbox\b:pspicture +% + \fi + \else + \psput@{#1}\pst@hbox + \fi +\endgroup \ignorespaces} + +\pend:def\psframebox@ii{\a:pspicture} +\append:def\psframebox@ii{\b:pspicture} + +\Hinput{pstricks} +\endinput + |