From 2e1d63b8ed8c6b7c6d206bfe9e2712797108e8bd Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 7 Nov 2019 03:01:39 +0000 Subject: CTAN sync 201911070301 --- graphics/asymptote/texfile.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'graphics/asymptote/texfile.cc') diff --git a/graphics/asymptote/texfile.cc b/graphics/asymptote/texfile.cc index fc0e575c22..44d4277f45 100644 --- a/graphics/asymptote/texfile.cc +++ b/graphics/asymptote/texfile.cc @@ -151,24 +151,18 @@ void texfile::beginlayer(const string& psname, bool postscript) *out << "{\\catcode`\"=12%" << newl << "\\includegraphics"; bool pdf=settings::pdf(texengine); - string quote; string name=stripExt(psname); if(inlinetex) { size_t pos=name.rfind("-"); if(pos < string::npos) name="\\ASYprefix\\jobname"+name.substr(pos); } else { if(!pdf) name=psname; - if(stripDir(name) != name) - quote="\""; } - if(pdf) *out << "{" << quote << name << quote << ".pdf}%" << newl; - else { + if(!pdf) *out << "[bb=" << box.left << " " << box.bottom << " " - << box.right << " " << box.top << "]" - << "{" << quote << name << quote << "}%" << newl; - } - *out << "}%" << newl; + << box.right << " " << box.top << "]"; + *out << "{" << name << "}%" << newl << "}%" << newl; } if(!inlinetex) *out << "\\kern " << (box.left-box.right)*ps2tex << "pt%" << newl; -- cgit v1.2.3