summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/plain.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/plain.asy')
-rw-r--r--Build/source/utils/asymptote/base/plain.asy13
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/base/plain.asy b/Build/source/utils/asymptote/base/plain.asy
index 14715bad918..e6097408194 100644
--- a/Build/source/utils/asymptote/base/plain.asy
+++ b/Build/source/utils/asymptote/base/plain.asy
@@ -280,3 +280,16 @@ if(settings.autoimport != "") {
}
cputime();
+
+// Workaround Adobe Reader transparency artifact:
+if(pdf()) {
+ if(settings.tex == "xelatex") {
+ texpreamble("\usepackage{everypage}");
+ tex("\AddEverypageHook{%
+\makeatletter%
+\special{pdf: put @thispage <</Group << /S /Transparency /I true /CS /DeviceRGB>> >>}%
+\makeatother%
+}%");
+ } else
+ tex("\pdfpageattr{/Group <</S /Transparency /I true /CS /DeviceRGB>>}");
+}