summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/plain_strings.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/plain_strings.asy')
-rw-r--r--Build/source/utils/asymptote/base/plain_strings.asy6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/base/plain_strings.asy b/Build/source/utils/asymptote/base/plain_strings.asy
index c109fc491f7..8d1fd41bd02 100644
--- a/Build/source/utils/asymptote/base/plain_strings.asy
+++ b/Build/source/utils/asymptote/base/plain_strings.asy
@@ -184,16 +184,18 @@ string jobname(string name)
string graphic(string name, string options="")
{
+ if(settings.xasy)
+ name=stripdirectory(name);
+
if(latex()) {
if(options != "") options="["+options+"]";
- bool pdf=pdf();
string includegraphics="\includegraphics"+options;
if(settings.inlinetex)
return includegraphics+"{"+jobname(name)+"}";
else
return includegraphics+
(find(name," ") < 0 ? "{"+name+"}" :
- (pdf ? "{\""+stripextension(name)+"\".pdf}" : "{\""+name+"\"}"));
+ (pdf() ? "{\""+stripextension(name)+"\".pdf}" : "{\""+name+"\"}"));
}
if(settings.tex != "context")
notimplemented("graphic");