diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-02-17 14:13:46 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-02-17 14:13:46 +0100 |
commit | 84aae20fa32c9a50ae1c63576573f52d010de43b (patch) | |
tree | feba3dca4dad274e8fcf58905ec552ca39ae1897 /tex/context/base/mkxl/mlib-pps.mkxl | |
parent | cf803ad70f7a6ad2e7779875fcc02dd711706fc6 (diff) | |
download | context-84aae20fa32c9a50ae1c63576573f52d010de43b.tar.gz |
2021-02-17 13:33:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-pps.mkxl')
-rw-r--r-- | tex/context/base/mkxl/mlib-pps.mkxl | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tex/context/base/mkxl/mlib-pps.mkxl b/tex/context/base/mkxl/mlib-pps.mkxl index 11d7e5672..2fa721445 100644 --- a/tex/context/base/mkxl/mlib-pps.mkxl +++ b/tex/context/base/mkxl/mlib-pps.mkxl @@ -78,7 +78,13 @@ \permanent\permanent\protected\def\MPLIBgettextscaled#1#2#3% why a copy .. can be used more often {\clf_mpgettext\MPtextbox #1% - \vpack to \zeropoint{\vss\hpack to \zeropoint{\scale[\c!sx=#2,\c!sy=#3]{\raise\dp\MPtextbox\box\MPtextbox}\forcecolorhack\hss}}} + \vpack to \zeropoint + {\vss + %\hpack to \zeropoint \s!container + \hcontainer to \zeropoint + {\scale + [\c!sx=#2,\c!sy=#3]% + {\raise\dp\MPtextbox\box\MPtextbox}\forcecolorhack\hss}}} \let\mlib_sx\!!zerocount % set at the lua end \let\mlib_sy\!!zerocount % set at the lua end @@ -86,7 +92,10 @@ \permanent\protected\def\MPLIBfigure#1#2% {\setbox\scratchbox\hpack{\externalfigure[#1][\c!mask=#2]}% \clf_mpsetsxsy\wd\scratchbox\ht\scratchbox\zeropoint - \vpack to \zeropoint{\vss\hpack to \zeropoint{\fastsxsy{\mlib_sx}{\mlib_sy}{\box\scratchbox}\hss}}} + \vpack to \zeropoint + {\vss + \hpack to \zeropoint + {\fastsxsy{\mlib_sx}{\mlib_sy}{\box\scratchbox}\hss}}} % horrible (we could inline scale and matrix code): @@ -96,7 +105,8 @@ \dotransformnextbox{#2}{#3}{#4}{#5}{#6}{#7}% does push pop ... will be changed to proper lua call (avoid small numbers) \vpack to \zeropoint\bgroup \vss - \hpack to \zeropoint \bgroup + %\hpack to \zeropoint \s!container \bgroup + \hcontainer to \zeropoint \bgroup % \scale[\c!sx=#8,\c!sy=#9]{\raise\dp\MPtextbox\box\MPtextbox}% % \scale[\c!sx=#8,\c!sy=#9,\c!depth=\v!no]{\box\MPtextbox}% \fastsxsy{#8}{#9}{\raise\dp\MPtextbox\box\MPtextbox}% |