diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-27 22:27:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-27 22:27:57 +0000 |
commit | 9121faed0cf54a08882acf41120cf28fc3a32998 (patch) | |
tree | fe7f0c5e9ed02fe4a1fc389c27c88750c2807e43 /Build/source/utils/asymptote/texfile.cc | |
parent | b8e24fbf964b4030f68a8484a53d405869693266 (diff) |
asy 2.48 sources
git-svn-id: svn://tug.org/texlive/trunk@50622 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/texfile.cc')
-rw-r--r-- | Build/source/utils/asymptote/texfile.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/texfile.cc b/Build/source/utils/asymptote/texfile.cc index b3fea9f84bb..fc0e575c22b 100644 --- a/Build/source/utils/asymptote/texfile.cc +++ b/Build/source/utils/asymptote/texfile.cc @@ -13,6 +13,8 @@ using std::ofstream; using settings::getSetting; +using settings::ps2tex; +using settings::tex2ps; using vm::array; using vm::read; @@ -349,10 +351,11 @@ void svgtexfile::endspecial() void svgtexfile::begintransform() { + bbox b=box; + b.left=-Hoffset; + b=svgbbox(b); *out << "<g transform='matrix(" << tex2ps << " 0 0 " << tex2ps <<" " - << (-Hoffset+1.99*settings::cm) << " " - << (1.9*settings::cm+box.top) - << ")'>" << nl; + << b.left << " " << b.top << ")'>" << nl; } void svgtexfile::endtransform() |