summaryrefslogtreecommitdiff
path: root/graphics/asymptote/texfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/texfile.cc')
-rw-r--r--graphics/asymptote/texfile.cc12
1 files changed, 3 insertions, 9 deletions
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;