diff options
Diffstat (limited to 'Build/source/utils/asymptote/texfile.cc')
-rw-r--r-- | Build/source/utils/asymptote/texfile.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/texfile.cc b/Build/source/utils/asymptote/texfile.cc index 6299f0d9dfb..823bf0febc8 100644 --- a/Build/source/utils/asymptote/texfile.cc +++ b/Build/source/utils/asymptote/texfile.cc @@ -98,6 +98,9 @@ void texfile::prologue() } } + if(settings::xe(texengine)) + *out << "\\usepackage{everypage}%" << newl; + if(settings::latex(texengine)) { *out << "\\setlength{\\unitlength}{1pt}" << newl; if(!inlinetex) { @@ -132,6 +135,15 @@ void texfile::prologue() } } } + +// Workaround Adobe Reader transparency artifact: + if(settings::pdf(texengine)) { + if(settings::xe(texengine)) + *out << "\\AddEverypageHook{\\special{pdf: put @thispage <</Group << /S /Transparency /I true /CS /DeviceRGB>> >>}}%" << newl; + else + *out << "\\pdfpageattr{/Group <</S /Transparency /I true /CS /DeviceRGB>>}%" << newl; + } + beginpage(); } |