summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/plain.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/plain.asy')
-rw-r--r--Master/texmf-dist/asymptote/plain.asy13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/plain.asy b/Master/texmf-dist/asymptote/plain.asy
index 14715bad918..e6097408194 100644
--- a/Master/texmf-dist/asymptote/plain.asy
+++ b/Master/texmf-dist/asymptote/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>>}");
+}