diff options
author | Karl Berry <karl@freefriends.org> | 2014-04-28 21:56:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-04-28 21:56:53 +0000 |
commit | 5b8332d2aaee45fab5f70069bd22cadefbbe2c0b (patch) | |
tree | 07170bd7de701d9c21e8687a74824128fc2f09d4 /Build/source/utils/asymptote/texfile.cc | |
parent | c7f6b488255524d08fa08d46b801f39bfc25ad84 (diff) |
asy 2.27 sources
git-svn-id: svn://tug.org/texlive/trunk@33733 c570f23f-e606-0410-a88d-b1316a301751
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(); } |