diff options
Diffstat (limited to 'Build/source/utils/asymptote/texfile.h')
-rw-r--r-- | Build/source/utils/asymptote/texfile.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/texfile.h b/Build/source/utils/asymptote/texfile.h index 2f07a2759a4..bc0f2e1611a 100644 --- a/Build/source/utils/asymptote/texfile.h +++ b/Build/source/utils/asymptote/texfile.h @@ -137,7 +137,17 @@ void texdefines(T& out, mem::list<string>& preamble=processData().TeXpreamble, string texengine=settings::getSetting<string>("tex"); if(settings::latex(texengine)) { if(pipe || !settings::getSetting<bool>("inlinetex")) { - out << "\\usepackage{graphicx}" << newl; + out << "\\usepackage{graphicx}" << newl + << "\\usepackage[space]{grffile}" << newl; + if(settings::xe(texengine)) { + out << "\\makeatletter" << newl + << "\\def\\Gread@@xetex#1{%" << newl + << "\\IfFileExists{\"\\Gin@base\".bb}%" << newl + << "{\\Gread@eps{\\Gin@base.bb}}%" << newl + << "{\\Gread@@xetex@aux#1}%" << newl + << "}" << newl + << "\\makeatother" << newl; + } if(!pipe) { dvipsfix(out); out << "\\usepackage{color}" << newl; |