diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/asyfig/asyalign.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/asyfig/asyalign.sty | 70 |
1 files changed, 51 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/asyfig/asyalign.sty b/Master/texmf-dist/tex/latex/asyfig/asyalign.sty index 1bc05a30f7d..366c6f0e970 100644 --- a/Master/texmf-dist/tex/latex/asyfig/asyalign.sty +++ b/Master/texmf-dist/tex/latex/asyfig/asyalign.sty @@ -1,6 +1,6 @@ %% LaTeX2e file `asyalign.sty' %% generated by the `filecontents' environment -%% from source `asyfig' on 2009/06/24. +%% from source `asyfig' on 2009/07/01. %% \ProvidesPackage{asyalign} @@ -11,45 +11,77 @@ \newbox\ASYbox \newdimen\ASYdimen -\def\ASYbase#1#2{% - \setbox\ASYbox=\hbox{#1}% +\long\def\ASYbase#1#2{% + \leavevmode + \setbox\ASYbox\hbox{#1}% \ASYdimen=\ht\ASYbox - \setbox\ASYbox=\hbox{#2}% - \lower\ASYdimen\box\ASYbox} + \setbox\ASYbox\hbox{#2}% + \lower\ASYdimen\box\ASYbox +} \ifpdf - \def\ASYalign(#1,#2)(#3,#4)#5#6{% + + \long\def\ASYaligned(#1,#2)(#3,#4)#5#6#7{% \leavevmode - \setbox\ASYbox=\hbox{#6}% + \setbox\ASYbox\hbox{#7}% \setbox\ASYbox\hbox{% + \ASYdimen\ht\ASYbox + \advance\ASYdimen\dp\ASYbox \kern#3\wd\ASYbox - \raise#4\dimexpr\ht\ASYbox+\dp\ASYbox\relax\box\ASYbox}% + \raise#4\ASYdimen + \box\ASYbox + }% \put(#1,#2){% + #5\wd\ASYbox 0pt\dp\ASYbox 0pt\ht\ASYbox 0pt\box\ASYbox#6% + }% + } + + \long\def\ASYalignT(#1,#2)(#3,#4)#5#6{% + \ASYaligned(#1,#2)(#3,#4){% \special{pdf:q #5 0 0 cm}% - \wd\ASYbox\z@\dp\ASYbox\z@\ht\ASYbox\z@ - \box\ASYbox + }{% \special{pdf:Q}% - }} + }{#6}% + } + + \long\def\ASYalign(#1,#2)(#3,#4)#5{\ASYaligned(#1,#2)(#3,#4){}{}{#5}} + \let\ASYraw\@firstofone \else - \def\ASYalign(#1,#2)(#3,#4)#5#6{% + + \long\def\ASYaligned(#1,#2)(#3,#4)#5#6#7{% \leavevmode - \setbox\ASYbox=\hbox{#6}% + \setbox\ASYbox\hbox{#7}% \setbox\ASYbox\hbox{% + \ASYdimen\ht\ASYbox% + \advance\ASYdimen\dp\ASYbox \kern#3\wd\ASYbox - \raise#4\dimexpr\ht\ASYbox+\dp\ASYbox\relax\box\ASYbox}% - \put(#1,#2){% + \raise#4\ASYdimen + \box\ASYbox + }% + \put(#1,#2){#5\wd\ASYbox 0pt\dp\ASYbox 0pt\ht\ASYbox 0pt\box\ASYbox#6}% + } + + \long\def\ASYalignT(#1,#2)(#3,#4)#5#6{% + \ASYaligned(#1,#2)(#3,#4){% \special{% ps:gsave currentpoint currentpoint translate - [#5 0 0] concat neg exch neg exch translate}% - \box\ASYbox + [#5 0 0] concat neg exch neg exch translate% + }% + }{% \special{ps:currentpoint grestore moveto}% - }} + }{#6}% + } + + \long\def\ASYalign(#1,#2)(#3,#4)#5{\ASYaligned(#1,#2)(#3,#4){}{}{#5}} + \def\ASYraw#1{% currentpoint currentpoint translate matrix currentmatrix 100 12 div -100 12 div scale #1 - setmatrix neg exch neg exch translate} + setmatrix neg exch neg exch translate% + } + \fi |