diff options
Diffstat (limited to 'Build/source/utils/asymptote/texfile.cc')
-rw-r--r-- | Build/source/utils/asymptote/texfile.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/texfile.cc b/Build/source/utils/asymptote/texfile.cc index fc0e575c22b..44d4277f454 100644 --- a/Build/source/utils/asymptote/texfile.cc +++ b/Build/source/utils/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; |