summaryrefslogtreecommitdiff
path: root/graphics/asymptote/texfile.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-11-07 03:01:39 +0000
committerNorbert Preining <norbert@preining.info>2019-11-07 03:01:39 +0000
commit2e1d63b8ed8c6b7c6d206bfe9e2712797108e8bd (patch)
tree7ea198b043998590117b2730e9dec10327ef3da3 /graphics/asymptote/texfile.cc
parent590fd8b560523cdaea19c59aea61e781138e87f8 (diff)
CTAN sync 201911070301
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;