diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-09-21 20:54:51 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-09-21 20:54:51 +0200 |
commit | 7c2efd42267783f01b64e0a47cba89f84742618c (patch) | |
tree | 4517e6bd3e024424dd82c5bb3c5e800cdff06fea /tex/context/base/mkiv/grph-inc.mkiv | |
parent | 56ca0139232f16679918613ef45a5dd643f0f9b3 (diff) | |
download | context-7c2efd42267783f01b64e0a47cba89f84742618c.tar.gz |
2018-09-21 20:00:00
Diffstat (limited to 'tex/context/base/mkiv/grph-inc.mkiv')
-rw-r--r-- | tex/context/base/mkiv/grph-inc.mkiv | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/grph-inc.mkiv b/tex/context/base/mkiv/grph-inc.mkiv index 97a28d2c5..62ac39864 100644 --- a/tex/context/base/mkiv/grph-inc.mkiv +++ b/tex/context/base/mkiv/grph-inc.mkiv @@ -657,6 +657,36 @@ \egroup \egroup} +% \unexpanded\def\relocateexternalfigure +% {\global\setbox\foundexternalfigure\vpack to \ht\foundexternalfigure\bgroup +% % +% % The \vss can (!) introduce 1 sp excess visible in xform which in itself +% % is not that important but some don't like these cosmetic side effects, for +% % instance we can get: +% % +% % vss : \vbox(845.1575+0.0)x597.23125, glue set 845.15747fil, direction TLT +% % vskip : \vbox(845.1575+0.0)x597.23125, direction TLT +% % +% % or +% % +% % 1 0 0 1 0 0.00003 cm +% % 1 0 0 1 0 0 cm +% % +% % This is a known property of using glue and can even depend on the architecture +% % (float implementation). Anyway, let's for now use a skip. Of course this can +% % shift the issue elsewhere, as vss is used a lot elsewhere. +% % +% % \vss +% \vskip\ht\foundexternalfigure +% % +% \ht\foundexternalfigure\zeropoint +% \dp\foundexternalfigure\zeropoint +% \hpack to \wd\foundexternalfigure\bgroup +% \box\foundexternalfigure +% \hss +% \egroup +% \egroup} + \unexpanded\def\startfoundexternalfigure#1#2% ht wd {\global\setbox\foundexternalfigure\vbox to #2\bgroup\vss\hbox to #1\bgroup} |