[XeTeX] TiKZ, XeTeX, semitransparent - Acrobat draws then erases (Jonathan Kew)

Matthew Leingang leingang at math.harvard.edu
Sat May 10 12:25:14 CEST 2008


On May 10, 2008, at 6:00 AM, xetex-request at tug.org wrote:

> Message: 2
> Date: Fri, 9 May 2008 20:43:00 +0100
> From: Jonathan Kew <jonathan_kew at sil.org>
> Subject: Re: [XeTeX] TiKZ, XeTeX,	semitransparent -  Acrobat draws
> 	then erases
> To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
> Cc: pgf-users at lists.sourceforge.net
> Message-ID: <5D315C90-26FE-4134-A948-81D9FF25DBB0 at sil.org>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> On 9 May 2008, at 7:25 pm, Matthew Leingang wrote:
>
>> Hi folks,
>>
>> I had a problem with a beamer presentation typeset with xelatex and
>> viewed with the Acrobat Reader.  On one of the slides, paging to it
>> would flash the correct slide, then suddenly half of the slide would
>> disappear.  I would get a dialog saying there's an error in the PDF,
>> then another dialog giving an error code of 14.
>>
>> I worked it down considerably to the following minimal example:
>>
>> %%!TEX TS-program = xelatex
>> \documentclass{article}
>> \usepackage{tikz}
>> \begin{document}
>> Is there a picture here?
>> \begin{tikzpicture}
>> \draw[semitransparent] (0,0) -- (1,0) node[opaque] {$z$};
>> \end{tikzpicture}
>> \end{document}
>>
>> Typeset with pdflatex, everything's fine.  Typeset with xelatex, it
>> looks fine in TeXShop's PDF viewer and Mac OS X's Preview
>> application.  In Acrobat Reader, however, the page draws then
>> disappears right away. This is on Acrobat Reader 8.1.2, but I've
>> viewed the same PDF on Acrobat Reader on another mac, and also on a
>> PC and gotten the same problem.
>>
>> If I remove the "semitransparent" option then the Acrobat problem
>> goes away.
>>
>> I can definitely get along without the option in my slideshow but I
>> have no idea what caused the problem. Thanks in advance for any  
>> ideas.
>
> Does this work with latex->dvi->dvipdfmx? My guess is that tikz's
> "semitransparent" feature is generating PDF code designed to work in
> conjunction with pdftex, and won't work with other output drivers.
>
> If it works reliably with latex+dvipdfmx, then we should try to
> establish what's different in the xelatex case.
>
> JK

Dear Johnathan,

Very interesting.  The latex->dvipdfmx route provides a third case.   
This time the semitransparent line is not drawn, but the rest of the  
page is.  So the disappearing page problem isn't there; rather, just  
an invisible line.

dvipdfmx produced a lot of warnings, and they might be hinting at  
your guess.

--Matt

--
** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfH{/pgfheight exch def 0.75  
setlinewidth [] 0...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfV{/pgfheight exch def 0.75  
setlinewidth [] 0...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfA{ /pgfdiff 8 index round cvi 8  
index round ...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfR1{ newpath dup dup dup 0 360 arc  
clip newpa...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfR2{ newpath 0.5 add pgfcircx  
pgfcircy 3 2 ro...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgfR{ /pgfdiff 8 index round cvi 8  
index round ...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->!  /pgfsc{}bind def/pgffc{}bind def/pgfstr 
{stroke}...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf1{gsave exec 1.0 pgfw 2.00002 0.0  
moveto -6....<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf2{gsave exec 1.0 pgfw 0.8 pgfw [ ]  
0.0 setda...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf3{gsave exec 1.0 pgfw [ ] 0.0  
setdash 0.0 -5...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf4{gsave exec 1.0 pgfw [ ] 0.0  
setdash -3.000...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf5{gsave exec 1.0 pgfw [ ] 0.0  
setdash -2.000...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf6{gsave exec 1.0 pgfw [ ] 0.0  
setdash -4.500...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf7{gsave exec 1.0 pgfw -2.50002 0.0  
translate...<--

** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /pgf8{gsave exec 1.0 pgfw [ ] 0.0  
setdash 1.0 0....<--

** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps: "
** WARNING ** Unknown token "pgfo"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: pgfo"
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unknown token "pgfw"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 0.3985 pgfw "
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 0.5 .pgfsetstrokeopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetstrokeopacityalpha <<
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 0.5 .pgfsetfillopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetfillopacityalpha <<
** WARNING ** Unknown token "pgfstr"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: pgfstr "
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 1.0 .pgfsetstrokeopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetstrokeopacityalpha <<
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 1.0 .pgfsetfillopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetfillopacityalpha <<
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 1.0 .pgfsetstrokeopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetstrokeopacityalpha <<
** WARNING ** Unkown PostScript operator.

Current input buffer is --><--

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: 1.0 .pgfsetfillopacityalpha "
** WARNING ** >> Reading special command stopped around  
 >>.pgfsetfillopacityalpha <<
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "save"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(254.765, 661.733)" (in PDF)
** WARNING ** >> xxx "ps:: save "
** WARNING ** Unknown token "pgfs"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: pgfs"
** WARNING ** Unknown token "pgfr"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: pgfr"
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "restore"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: restore "
** WARNING ** Unknown token "pgfc"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(280.576, 659.588)" (in PDF)
** WARNING ** >> xxx "ps:: pgfc"


--
Matthew Leingang
Preceptor in Mathematics
Harvard University

http://www.math.harvard.edu/~leingang/vCard.vcf





More information about the XeTeX mailing list