zorder seems to cause problems when embed python in latex files

View: New views
8 Messages — Rating Filter:   Alert me  

zorder seems to cause problems when embed python in latex files

by chris-218 :: Rate this Message:

| View Threaded | Show Only this Message

LaTeX can accept embedded Python code with a python.sty file.

This is handy to dynamically generate plots with Matplotlib for a LaTeX slide
presentation.

I successfully embedded lots of matplotlib plot code into my slides
and then had problems with zorder.

For some reason zorder seems to mess up the footer of my Beamer/LaTeX slides.
(For some reason zorder setting make the footer shrink in size.)

Is there any weirdness or side effects about zorder I should be aware of that
would explain this?

Chris

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: zorder seems to cause problems when embed python in latex files

by Michael Droettboom-3 :: Rate this Message:

| View Threaded | Show Only this Message

chris@... wrote:

> LaTeX can accept embedded Python code with a python.sty file.
>
> This is handy to dynamically generate plots with Matplotlib for a LaTeX slide
> presentation.
>
> I successfully embedded lots of matplotlib plot code into my slides
> and then had problems with zorder.
>
> For some reason zorder seems to mess up the footer of my Beamer/LaTeX slides.
> (For some reason zorder setting make the footer shrink in size.)
>
> Is there any weirdness or side effects about zorder I should be aware of that
> would explain this?
>  
My best guess is that when the elements of the plot are in a particular
order, the "last drawn" element has some setting that is not getting
reverted back when going back to the LaTeX part of the slide.  In
general, matplotlib doesn't explicitly try to be careful about state in
its output since it is really the embedding applications job (in this
case Beamer/LaTeX) that is supposed to ensure that anything it embeds
does not have external side effects.

But I've never tried this combination of python.sty/Beamer/LaTeX
personally.  Can you send us the output of your plot on its own (ps or
pdf...)?

Mike

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: zorder seems to cause problems when embed python in latex files

by chris-218 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, Oct 14, 2008 at 08:21:08AM -0400, Michael Droettboom wrote:
> But I've never tried this combination of python.sty/Beamer/LaTeX
> personally.  Can you send us the output of your plot on its own (ps or
> pdf...)?

Mike

Wow thanks.  I was afraid no one would respond.  I suppose if Matplotlib is so
mature that we are left worrying about bugs when embedding it in Latex then it
has come a long way. :)

I created a tiny test.tex that shows the problem.  Just type

pdflatex -shell-escape test.tex ; xpdf test.pdf

in the same directory with the 2 files test.tex and python.sty below and
attached.  I also attached the final PDF since you asked for it.

\documentclass{beamer}
\usepackage{beamerthemesplit}
\usepackage{graphicx}
\usepackage{python}
\begin{document}
\title[Example of zorder trouble]{Example of zorder trouble}
\author[Matplotlib fan]{Matplotlib fan}
\date{}
\setbeamertemplate{navigation symbols}{}
\frame{\titlepage}

\begin{frame}[fragile]\frametitle{No zorder - notice footer ok}
\begin{python}
import pylab
pylab.plot(range(10), range(10))
pylab.scatter([5], [5])
pylab.savefig('plot1.pdf')
print r'\includegraphics[width=200pt]{plot1.pdf}'
\end{python}
\end{frame}

\begin{frame}[fragile]\frametitle{zorder - notice footer messed up}
\begin{python}
import pylab
pylab.plot(range(10), range(10), zorder = 1)
pylab.scatter([5], [5], zorder = 9)
pylab.savefig('plot2.pdf')
print r'\includegraphics[width=200pt]{plot2.pdf}'
\end{python}
\end{frame}

\end{document}






%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License
%% as published by the Free Software Foundation; either version 2
%% of the License, or (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%% GNU General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program; if not, write to the Free Software
%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
%%
%% Author: Martin R. Ehmsen, ehmsen@....
%% Department of Mathematics and Computer Science,
%% University of Southern Denmark, DK
%%
%% You can find an online copy of the GPL at
%% http://www.gnu.org/copyleft/gpl.html .
%%
%% Note: shell-escape needs to be activated for this to work.
%% This can either be done by passing -shell-escape as an option to
%% latex or by adding/changing "shell_escape = t" in your texmf.cnf .

% 0.2 -> 0.21: Moved \newwrite\@module from \@writemodule and out, since
% no more than 15 \newwrites are allowed (and the previous version created a new
% every time \@writemodule was called.

\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{python}[2007/06/07 v0.21 Python in LaTeX]

\newwrite\@out
\newwrite\@module

\begingroup \catcode `|=0 \catcode `[=1
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
\catcode`\\=12 |gdef|@xpython#1\end{python}[|immediate|write|@out[#1]|end[python]]
|endgroup

\def\python{\kernel@ifnextchar [{\@python}{\@python[]}}

\def\@python[#1]{%
\gdef\@pythoninclude{#1}
\immediate\openout\@out=\jobname.py
\newlinechar='15
\begingroup \catcode`\^^M=12 %
\let\do\@makeother\dospecials\obeyspaces%
\@xpython}

\def\endpython{%
\endgroup
\immediate\closeout\@out
\@writemodule
\immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2> \jobname.py.err}
\immediate\input\jobname.py.out}
%\immediate\write{\begin{verbatim}}
%\immediate\input\jobname.py.err
%\immediate\write{\end{verbatim}}}

\def\@writemodule{%
\immediate\openout\@module=latex.py
\immediate\write\@module{jobname="\jobname"}
\immediate\closeout\@module}

% BUGS:
% 1. If anything gets send to stderr then it should be included
% in \begin{verbatim}...\end{verbatim} to be properly displayed
%
% \immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2>\jobname.py.err}
%
% 2. Watch out for indentation done by aucTeX in Emacs
%
% 3. Let the package accept a "final version" option, such
% that the output of each python run is saved such that it can be
% inserted into the document by hand
% (conference, journals are not likely to compile with
% shell_escape or have python).
%
% \gdef\@prepython{}
% \def\prepython#1{%
% \gdef\@prepython{#1}
% }
% sed -e 's/^  //g' cluster.py
% \immediate\write18{\@prepython\space\jobname.py > \


\documentclass{beamer}
\usepackage{beamerthemesplit}
\usepackage{graphicx}
\usepackage{python}
\begin{document}
\title[Example of zorder trouble]{Example of zorder trouble}
\author[Matplotlib fan]{Matplotlib fan}
\date{}
\setbeamertemplate{navigation symbols}{}
\frame{\titlepage}

\begin{frame}[fragile]\frametitle{No zorder - notice footer ok}
\begin{python}
import pylab
pylab.plot(range(10), range(10))
pylab.scatter([5], [5])
pylab.savefig('plot1.pdf')
print r'\includegraphics[width=200pt]{plot1.pdf}'
\end{python}
\end{frame}

\begin{frame}[fragile]\frametitle{zorder - notice footer messed up}
\begin{python}
import pylab
pylab.plot(range(10), range(10), zorder = 1)
pylab.scatter([5], [5], zorder = 9)
pylab.savefig('plot2.pdf')
print r'\includegraphics[width=200pt]{plot2.pdf}'
\end{python}
\end{frame}

\end{document}



%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License
%% as published by the Free Software Foundation; either version 2
%% of the License, or (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%% GNU General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program; if not, write to the Free Software
%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
%%
%% Author: Martin R. Ehmsen, ehmsen@....
%% Department of Mathematics and Computer Science,
%% University of Southern Denmark, DK
%%
%% You can find an online copy of the GPL at
%% http://www.gnu.org/copyleft/gpl.html .
%%
%% Note: shell-escape needs to be activated for this to work.
%% This can either be done by passing -shell-escape as an option to
%% latex or by adding/changing "shell_escape = t" in your texmf.cnf .

% 0.2 -> 0.21: Moved \newwrite\@module from \@writemodule and out, since
% no more than 15 \newwrites are allowed (and the previous version created a new
% every time \@writemodule was called.

\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{python}[2007/06/07 v0.21 Python in LaTeX]

\newwrite\@out
\newwrite\@module

\begingroup \catcode `|=0 \catcode `[=1
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
\catcode`\\=12 |gdef|@xpython#1\end{python}[|immediate|write|@out[#1]|end[python]]
|endgroup

\def\python{\kernel@ifnextchar [{\@python}{\@python[]}}

\def\@python[#1]{%
\gdef\@pythoninclude{#1}
\immediate\openout\@out=\jobname.py
\newlinechar='15
\begingroup \catcode`\^^M=12 %
\let\do\@makeother\dospecials\obeyspaces%
\@xpython}

\def\endpython{%
\endgroup
\immediate\closeout\@out
\@writemodule
\immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2> \jobname.py.err}
\immediate\input\jobname.py.out}
%\immediate\write{\begin{verbatim}}
%\immediate\input\jobname.py.err
%\immediate\write{\end{verbatim}}}

\def\@writemodule{%
\immediate\openout\@module=latex.py
\immediate\write\@module{jobname="\jobname"}
\immediate\closeout\@module}

% BUGS:
% 1. If anything gets send to stderr then it should be included
% in \begin{verbatim}...\end{verbatim} to be properly displayed
%
% \immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2>\jobname.py.err}
%
% 2. Watch out for indentation done by aucTeX in Emacs
%
% 3. Let the package accept a "final version" option, such
% that the output of each python run is saved such that it can be
% inserted into the document by hand
% (conference, journals are not likely to compile with
% shell_escape or have python).
%
% \gdef\@prepython{}
% \def\prepython#1{%
% \gdef\@prepython{#1}
% }
% sed -e 's/^  //g' cluster.py
% \immediate\write18{\@prepython\space\jobname.py > \



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

test.pdf (56K) Download Attachment

Re: zorder seems to cause problems when embed python in latex files

by Michael Droettboom-3 :: Rate this Message:

| View Threaded | Show Only this Message

With the file you sent, I can see the messed up footer in xpdf, but not
in acroread.  There are a number of times that I have seen xpdf not
completely support the PDF spec, and this may be one of them.

Creating my own files, however, I'm not able to reproduce this here.

When I compile your test.tex, I get an error, even though it seems to
have loaded the python.sty file.  Not sure why (see attached log).

When I generate the plots "offline", and then hack test.tex to simply
include the files, everything works fine, and I don't see a problem with
the footers with either xpdf or acroread.

There was a recent bug discovered in matplotlib where PDF files weren't
always getting flushed completely.  I don't *think* that's the cause of
this, but if you could reproduce what I did (generate the plots
independently of TeX and then load them), and that works for you, that
might point to something like that.

There was also a bug a few months back where xpdf didn't like the way
matplotlib handled reusing the same graphic multiple times (which is
used for markers).  That may be why you're seeing the footer bug and I'm
not -- you didn't mention which version of matplotlib you're running, so
it's hard to say.

Here's my versions of all the various moving pieces:
> pdfTeX (Web2C 7.4.5) 3.14159-1.10b
> kpathsea version 3.4.5
> Copyright (C) 1997-2003 Han The Thanh.
Beamer 3.00
python 2.5.2
matplotlib SVN (today)
Acroread 8.1.1
xpdf 3.00

That python.sty stuff looks really cool, by the way.  I haven't come
across it before.

Mike

chris@... wrote:

> On Tue, Oct 14, 2008 at 08:21:08AM -0400, Michael Droettboom wrote:
>  
>> But I've never tried this combination of python.sty/Beamer/LaTeX
>> personally.  Can you send us the output of your plot on its own (ps or
>> pdf...)?
>>    
>
> Mike
>
> Wow thanks.  I was afraid no one would respond.  I suppose if Matplotlib is so
> mature that we are left worrying about bugs when embedding it in Latex then it
> has come a long way. :)
>
> I created a tiny test.tex that shows the problem.  Just type
>
> pdflatex -shell-escape test.tex ; xpdf test.pdf
>
> in the same directory with the 2 files test.tex and python.sty below and
> attached.  I also attached the final PDF since you asked for it.
>
> \documentclass{beamer}
> \usepackage{beamerthemesplit}
> \usepackage{graphicx}
> \usepackage{python}
> \begin{document}
> \title[Example of zorder trouble]{Example of zorder trouble}
> \author[Matplotlib fan]{Matplotlib fan}
> \date{}
> \setbeamertemplate{navigation symbols}{}
> \frame{\titlepage}
>
> \begin{frame}[fragile]\frametitle{No zorder - notice footer ok}
> \begin{python}
> import pylab
> pylab.plot(range(10), range(10))
> pylab.scatter([5], [5])
> pylab.savefig('plot1.pdf')
> print r'\includegraphics[width=200pt]{plot1.pdf}'
> \end{python}
> \end{frame}
>
> \begin{frame}[fragile]\frametitle{zorder - notice footer messed up}
> \begin{python}
> import pylab
> pylab.plot(range(10), range(10), zorder = 1)
> pylab.scatter([5], [5], zorder = 9)
> pylab.savefig('plot2.pdf')
> print r'\includegraphics[width=200pt]{plot2.pdf}'
> \end{python}
> \end{frame}
>
> \end{document}
>
>
>
>
>
>
> %% This program is free software; you can redistribute it and/or
> %% modify it under the terms of the GNU General Public License
> %% as published by the Free Software Foundation; either version 2
> %% of the License, or (at your option) any later version.
> %%
> %% This program is distributed in the hope that it will be useful,
> %% but WITHOUT ANY WARRANTY; without even the implied warranty of
> %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> %% GNU General Public License for more details.
> %%
> %% You should have received a copy of the GNU General Public License
> %% along with this program; if not, write to the Free Software
> %% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
> %%
> %% Author: Martin R. Ehmsen, ehmsen@....
> %% Department of Mathematics and Computer Science,
> %% University of Southern Denmark, DK
> %%
> %% You can find an online copy of the GPL at
> %% http://www.gnu.org/copyleft/gpl.html .
> %%
> %% Note: shell-escape needs to be activated for this to work.
> %% This can either be done by passing -shell-escape as an option to
> %% latex or by adding/changing "shell_escape = t" in your texmf.cnf .
>
> % 0.2 -> 0.21: Moved \newwrite\@module from \@writemodule and out, since
> % no more than 15 \newwrites are allowed (and the previous version created a new
> % every time \@writemodule was called.
>
> \NeedsTeXFormat{LaTeX2e}[1994/12/01]
> \ProvidesPackage{python}[2007/06/07 v0.21 Python in LaTeX]
>
> \newwrite\@out
> \newwrite\@module
>
> \begingroup \catcode `|=0 \catcode `[=1
> \catcode`]=2 \catcode `\{=12 \catcode `\}=12
> \catcode`\\=12 |gdef|@xpython#1\end{python}[|immediate|write|@out[#1]|end[python]]
> |endgroup
>
> \def\python{\kernel@ifnextchar [{\@python}{\@python[]}}
>
> \def\@python[#1]{%
> \gdef\@pythoninclude{#1}
> \immediate\openout\@out=\jobname.py
> \newlinechar='15
> \begingroup \catcode`\^^M=12 %
> \let\do\@makeother\dospecials\obeyspaces%
> \@xpython}
>
> \def\endpython{%
> \endgroup
> \immediate\closeout\@out
> \@writemodule
> \immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2> \jobname.py.err}
> \immediate\input\jobname.py.out}
> %\immediate\write{\begin{verbatim}}
> %\immediate\input\jobname.py.err
> %\immediate\write{\end{verbatim}}}
>
> \def\@writemodule{%
> \immediate\openout\@module=latex.py
> \immediate\write\@module{jobname="\jobname"}
> \immediate\closeout\@module}
>
> % BUGS:
> % 1. If anything gets send to stderr then it should be included
> % in \begin{verbatim}...\end{verbatim} to be properly displayed
> %
> % \immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2>\jobname.py.err}
> %
> % 2. Watch out for indentation done by aucTeX in Emacs
> %
> % 3. Let the package accept a "final version" option, such
> % that the output of each python run is saved such that it can be
> % inserted into the document by hand
> % (conference, journals are not likely to compile with
> % shell_escape or have python).
> %
> % \gdef\@prepython{}
> % \def\prepython#1{%
> % \gdef\@prepython{#1}
> % }
> % sed -e 's/^  //g' cluster.py
> % \immediate\write18{\@prepython\space\jobname.py > \
>  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5) (format=pdflatex 2007.11.14)  14 OCT 2008 14:46
\write18 enabled.
**test.tex
(./test.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/home/mdroe/texmf/tex/latex/beamer/base/beamer.cls
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasercs.sty
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres
entations (rcs-revision 1.70)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasemodes.sty
Package: beamerbasemodes 2007/01/28 (rcs-revision 1.22)
\beamer@tempbox=\box26
\beamer@tempcount=\count79
\c@beamerpauses=\count80

(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasedecode.sty
Package: beamerbasedecode 2007/01/28 (rcs-revision 1.20)
\beamer@slideinframe=\count81
\beamer@minimum=\count82
)
\beamer@commentbox=\box27
\beamer@modecount=\count83
)
\headheight=\dimen102
\headdp=\dimen103
\footheight=\dimen104
\sidebarheight=\dimen105
\beamer@tempdim=\dimen106
\beamer@finalheight=\dimen107
\beamer@animht=\dimen108
\beamer@animdp=\dimen109
\beamer@animwd=\dimen110
\beamer@leftmargin=\dimen111
\beamer@rightmargin=\dimen112
\beamer@leftsidebar=\dimen113
\beamer@rightsidebar=\dimen114
\beamer@boxsize=\dimen115
\beamer@vboxoffset=\dimen116
\beamer@descdefault=\dimen117
\beamer@descriptionwidth=\dimen118
\beamer@lastskip=\skip41
\beamer@areabox=\box28
\beamer@animcurrent=\box29
\beamer@animshowbox=\box30
\beamer@sectionbox=\box31
\beamer@logobox=\box32
\beamer@linebox=\box33
\beamer@sectioncount=\count84
\beamer@subsubsectionmax=\count85
\beamer@subsectionmax=\count86
\beamer@sectionmax=\count87
\beamer@totalheads=\count88
\beamer@headcounter=\count89
\beamer@partstartpage=\count90
\beamer@sectionstartpage=\count91
\beamer@subsectionstartpage=\count92
\beamer@animationtempa=\count93
\beamer@animationtempb=\count94
\beamer@xpos=\count95
\beamer@ypos=\count96
\beamer@showpartnumber=\count97
\beamer@currentsubsection=\count98
\beamer@coveringdepth=\count99
\beamer@sectionadjust=\count100
\beamer@tocsectionnumber=\count101

(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseoptions.sty
Package: beamerbaseoptions 2007/01/28 (rcs-revision 1.8)

(/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
))
(/home/mdroe/texmf/tex/latex/pgf/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/share/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 80.

(/usr/share/texmf/tex/latex/graphics/pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\Gread@gobject=\count102
))
\Gin@req@height=\dimen119
\Gin@req@width=\dimen120
)
(/home/mdroe/texmf/tex/latex/pgf/latex/pgf/systemlayer/pgfsys.sty
(/home/mdroe/texmf/tex/latex/pgf/latex/pgf/utilities/pgfrcs.sty
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/utilities/pgfrcs.code.tex
Package: pgfrcs 2005/11/14 v1.01 (rcs-revision 1.8)
))
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgfsys.code.tex
Package: pgfsys 2005/10/18 v1.01 (rcs-revision 1.9)
\pgf@x=\dimen121
\pgf@y=\dimen122
\pgf@xa=\dimen123
\pgf@ya=\dimen124
\pgf@xb=\dimen125
\pgf@yb=\dimen126
\pgf@xc=\dimen127
\pgf@yc=\dimen128

(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgf.cfg
File: pgf.cfg 2005/06/29 (rcs-revision 1.1.1.1)
)
Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 759.

(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgfsys-pdftex.def
File: pgfsys-pdftex.def 2005/10/06 (rcs-revision 1.4)

(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgfsys-common-pdf.def
File: pgfsys-common-pdf.def 2005/10/18 (rcs-revision 1.4)
)))
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgfsyssoftpath.code.te
x
File: pgfsyssoftpath.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/systemlayer/pgfsysprotocol.code.te
x
File: pgfsysprotocol.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
)) (/home/mdroe/texmf/tex/latex/xcolor/xcolor.sty
Package: xcolor 2004/07/04 v2.00 LaTeX color extensions (UK)

(/usr/share/texmf/tex/latex/config/color.cfg
File: color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: pdftex.def on input line 136.
Package xcolor Info: Color model `cmy' added on input line 972.
Package xcolor Info: Color model `hsb' added on input line 980.
Package xcolor Info: Color model `HTML' added on input line 1000.
Package xcolor Info: Color model `HSB' added on input line 1006.
Package xcolor Info: Color model `Gray' added on input line 1012.
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcore.code.tex
Package: pgfcore 2005/10/25 v1.01 (rcs-revision 1.3)

(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcoremath.code.tex
File: pgfcoremath.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
\c@pgf@counta=\count103
\c@pgf@countb=\count104
\c@pgf@countc=\count105
\c@pgf@countd=\count106
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepoints.code.tex
File: pgfcorepoints.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
\pgf@picminx=\dimen129
\pgf@picmaxx=\dimen130
\pgf@picminy=\dimen131
\pgf@picmaxy=\dimen132
\pgf@pathminx=\dimen133
\pgf@pathmaxx=\dimen134
\pgf@pathminy=\dimen135
\pgf@pathmaxy=\dimen136
\pgf@tempdim=\dimen137
\c@pgf@tempcount=\count107
\pgf@xx=\dimen138
\pgf@xy=\dimen139
\pgf@yx=\dimen140
\pgf@yy=\dimen141
\pgf@zx=\dimen142
\pgf@zy=\dimen143
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathconstruct.co
de.tex
File: pgfcorepathconstruct.code.tex 2005/10/25 (rcs-revision 1.1)
\pgf@path@lastx=\dimen144
\pgf@path@lasty=\dimen145
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathusage.code.t
ex
File: pgfcorepathusage.code.tex 2005/07/17 (rcs-revision 1.2)
\pgf@shorten@end@additional=\dimen146
\pgf@shorten@start@additional=\dimen147
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorescopes.code.tex
File: pgfcorescopes.code.tex 2005/11/15 (rcs-revision 1.12)
\pgfpic=\box34
\pgf@hbox=\box35
\pgf@layerbox@main=\box36
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcoregraphicstate.cod
e.tex
File: pgfcoregraphicstate.code.tex 2005/09/21 (rcs-revision 1.3)
\pgflinewidth=\dimen148
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcoretransformations.
code.tex
File: pgfcoretransformations.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
\pgf@pt@x=\dimen149
\pgf@pt@y=\dimen150
\pgf@pt@temp=\dimen151
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorequick.code.tex
File: pgfcorequick.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcoreobjects.code.tex
File: pgfcoreobjects.code.tex 2005/06/29 (rcs-revision 1.1.1.1)
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathprocessing.c
ode.tex
File: pgfcorepathprocessing.code.tex 2005/10/03 (rcs-revision 1.2)
)
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcorearrows.code.tex
File: pgfcorearrows.code.tex 2005/07/10 (rcs-revision 1.2)
) (/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfcoreshade.code.tex
File: pgfcoreshade.code.tex 2005/07/17 (rcs-revision 1.3)
\pgf@max=\dimen152
\pgf@sys@shading@range@num=\count108
))) (/home/mdroe/texmf/tex/latex/pgf/latex/pgf/basiclayer/pgfbaseimage.sty
(/home/mdroe/texmf/tex/latex/pgf/generic/pgf/basiclayer/pgfbaseimage.code.tex
Package: pgfbaseimage 2005/07/06 v1.01 (rcs-revision 1.2)
)) (/home/mdroe/texmf/tex/latex/pgf/latex/pgf/utilities/xxcolor.sty
Package: xxcolor 2003/10/24 ver 0.1
\XC@nummixins=\count109
\XC@countmixins=\count110
)
(/usr/share/texmf/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2002/01/22 v2.2d

(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2001/10/25 v2.2f
\@emptytoks=\toks15
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 132.
))
(/usr/share/texmf/tex/latex/misc/geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
\Gm@cnth=\count111
\Gm@cntv=\count112
\c@Gm@tempcnt=\count113
\Gm@bindingoffset=\dimen153
\Gm@wd@mp=\dimen154
\Gm@odd@mp=\dimen155
\Gm@even@mp=\dimen156
\Gm@dimlist=\toks16

(/usr/share/texmf/tex/latex/config/geometry.cfg
File: geometry.cfg 2001/06/05 v1.0 teTeX (uncustomised setup)
))
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
Package: hyperref 2003/01/22 v6.73n Hypertext links for LaTeX
\@linkdim=\dimen157
\Hy@linkcounter=\count114
\Hy@pagecounter=\count115

(/usr/share/texmf/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2003/01/22 v6.73n Hyperref: PDFDocEncoding definition (HO)
)
(/usr/share/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
)
Package hyperref Info: Option `bookmarks' set `true' on input line 1744.
Package hyperref Info: Option `bookmarksopen' set `true' on input line 1744.
Package hyperref Info: Option `implicit' set `false' on input line 1744.
Package hyperref Info: Hyper figures OFF on input line 1792.
Package hyperref Info: Link nesting OFF on input line 1797.
Package hyperref Info: Hyper index ON on input line 1800.
Package hyperref Info: Plain pages ON on input line 1805.
Package hyperref Info: Backreferencing OFF on input line 1812.

Implicit mode OFF; no redefinition of LaTeX internals
Package hyperref Info: Bookmarks ON on input line 1916.
(/usr/share/texmf/tex/latex/html/url.sty
Package: url 1999/03/02  ver 1.4  Verb mode for urls, email addresses, and file
 names
)
LaTeX Info: Redefining \url on input line 2055.
\Fld@menulength=\count116
\Field@Width=\dimen158
\Fld@charsize=\dimen159
\Choice@toks=\toks17
\Field@toks=\toks18
Package hyperref Info: Hyper figures OFF on input line 2513.
Package hyperref Info: Link nesting OFF on input line 2518.
Package hyperref Info: Hyper index ON on input line 2521.
Package hyperref Info: backreferencing OFF on input line 2528.
Package hyperref Info: Link coloring OFF on input line 2533.

Hyperref stopped early
)
*hyperref using default driver hpdftex*
(/usr/share/texmf/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2003/01/22 v6.73n Hyperref driver for pdfTeX

(/usr/share/texmf/tex/latex/psnfss/pifont.sty
Package: pifont 2002/09/08 PSNFSS-v9.0a Pi font support (SPQR)
LaTeX Font Info:    Try loading font information for U+pzd on input line 62.

(/usr/share/texmf/tex/latex/psnfss/upzd.fd
File: upzd.fd 2001/06/04 font definitions for U/pzd.
)
LaTeX Font Info:    Try loading font information for U+psy on input line 63.

(/usr/share/texmf/tex/latex/psnfss/upsy.fd
File: upsy.fd 2001/06/04 font definitions for U/psy.
))
\Fld@listcount=\count117
\@outlinefile=\write3
)
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasecompatibility.sty
Package: beamerbasecompatibility 2007/01/28  (rcs-revision 1.63)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasefont.sty
Package: beamerbasefont 2007/01/28  (rcs-revision 1.16)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasemisc.sty
Package: beamerbasemisc 2007/01/28  (rcs-revision 1.24)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasetwoscreens.sty
Package: beamerbasetwoscreens 2007/01/28  (rcs-revision 1.7)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseoverlay.sty
Package: beamerbaseoverlay 2007/01/28  (rcs-revision 1.50)
\beamer@argscount=\count118
\beamer@lastskipcover=\skip42
\beamer@trivlistdepth=\count119
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasetitle.sty
Package: beamerbasetitle 2007/01/28  (rcs-revision 1.25)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasesection.sty
Package: beamerbasesection 2007/01/28  (rcs-revision 1.21)
\c@lecture=\count120
\c@part=\count121
\c@section=\count122
\c@subsection=\count123
\c@subsubsection=\count124
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseframe.sty
Package: beamerbaseframe 2007/01/28  (rcs-revision 1.60)
\beamer@framebox=\box37
\beamer@frametitlebox=\box38
\beamer@zoombox=\box39
\beamer@zoomcount=\count125
\beamer@zoomframecount=\count126
\beamer@frametextheight=\dimen160
\c@subsectionslide=\count127
\beamer@frametopskip=\skip43
\beamer@framebottomskip=\skip44
\beamer@frametopskipautobreak=\skip45
\beamer@framebottomskipautobreak=\skip46
\beamer@envbody=\toks19
\c@framenumber=\count128
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseverbatim.sty
Package: beamerbaseverbatim 2007/01/28  (rcs-revision 1.8)
\beamer@verbatimfileout=\write4
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseframesize.sty
Package: beamerbaseframesize 2007/01/28  (rcs-revision 1.18)
\beamer@splitbox=\box40
\beamer@autobreakcount=\count129
\beamer@autobreaklastheight=\dimen161
\beamer@frametitletoks=\toks20
\beamer@framesubtitletoks=\toks21
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseframecomponents.sty
Package: beamerbaseframecomponents 2007/01/28  (rcs-revision 1.41)
\beamer@footins=\box41
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasecolor.sty
Package: beamerbasecolor 2007/01/28  (rcs-revision 1.42)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasenotes.sty
Package: beamerbasenotes 2007/01/28  (rcs-revision 1.23)
\beamer@frameboxcopy=\box42
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasetoc.sty
Package: beamerbasetoc 2007/01/28  (rcs-revision 1.21)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasetemplates.sty
Package: beamerbasetemplates 2007/01/28  (rcs-revision 1.51)
\beamer@sbttoks=\toks22

(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseauxtemplates.sty
Package: beamerbaseauxtemplates 2007/01/28  (rcs-revision 1.28)

(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaseboxes.sty
Package: beamerbaseboxes 2007/03/11  (rcs-revision 1.32)
\bmb@box=\box43
\bmb@colorbox=\box44
\bmb@boxshadow=\box45
\bmb@boxshadowball=\box46
\bmb@boxshadowballlarge=\box47
\bmb@temp=\dimen162
\bmb@dima=\dimen163
\bmb@dimb=\dimen164
\bmb@prevheight=\dimen165
)
\beamer@blockheadheight=\dimen166
))
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty
Package: beamerbaselocalstructure 2007/01/28  (rcs-revision 1.53)

(/usr/share/texmf/tex/latex/tools/enumerate.sty
Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)
\@enLab=\toks23
)
\c@figure=\count130
\c@table=\count131
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasenavigation.sty
Package: beamerbasenavigation 2007/01/28  (rcs-revision 1.36)
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasetheorems.sty
Package: beamerbasetheorems 2007/01/28  (rcs-revision 1.10)

(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip49

For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01

(/usr/share/texmf/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks24
\ex@=\dimen167
))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen168
)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count132
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count133
\leftroot@=\count134
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count135
\DOTSCASE@=\count136
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box48
\strutbox@=\box49
\big@size=\dimen169
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count137
\c@MaxMatrixCols=\count138
\dotsspace@=\muskip10
\c@parentequation=\count139
\dspbrk@lvl=\count140
\tag@help=\toks25
\row@=\count141
\column@=\count142
\maxfields@=\count143
\andhelp@=\toks26
\eqnshift@=\dimen170
\alignsep@=\dimen171
\tagshift@=\dimen172
\tagwidth@=\dimen173
\totwidth@=\dimen174
\lineht@=\dimen175
\@envbody=\toks27
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks28
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/usr/share/texmf/tex/latex/amscls/amsthm.sty
Package: amsthm 2000/10/26 v2.08
\thm@style=\toks29
\thm@bodyfont=\toks30
\thm@headfont=\toks31
\thm@notefont=\toks32
\thm@headpunct=\toks33
\thm@preskip=\skip52
\thm@postskip=\skip53
\thm@headsep=\skip54
\dth@everypar=\toks34
)
\c@theorem=\count144
)
(/home/mdroe/texmf/tex/latex/beamer/base/beamerbasethemes.sty
Package: beamerbasethemes 2007/01/28  (rcs-revision 1.10)
)
(/home/mdroe/texmf/tex/latex/beamer/themes/theme/beamerthemedefault.sty
Package: beamerthemedefault 2007/01/28  (rcs-revision 1.7)

(/home/mdroe/texmf/tex/latex/beamer/themes/font/beamerfontthemedefault.sty
Package: beamerfontthemedefault 2007/01/28  (rcs-revision 1.13)
)
(/home/mdroe/texmf/tex/latex/beamer/themes/color/beamercolorthemedefault.sty
Package: beamercolorthemedefault 2007/01/28  (rcs-revision 1.28)
)
(/home/mdroe/texmf/tex/latex/beamer/themes/inner/beamerinnerthemedefault.sty
Package: beamerinnerthemedefault 2007/01/28  (rcs-revision 1.20)
\beamer@dima=\dimen176
\beamer@dimb=\dimen177
)
(/home/mdroe/texmf/tex/latex/beamer/themes/outer/beamerouterthemedefault.sty
Package: beamerouterthemedefault 2007/01/28  (rcs-revision 1.14)
)))
(/home/mdroe/texmf/tex/latex/beamer/themes/theme/compatibility/beamerthemesplit
.sty
Package: beamerthemesplit 2007/01/28  (rcs-revision 1.9)
 (/home/mdroe/texmf/tex/latex/beamer/themes/color/beamercolorthemewhale.sty
Package: beamercolorthemewhale 2007/01/28  (rcs-revision 1.4)
) (/home/mdroe/texmf/tex/latex/beamer/themes/outer/beamerouterthemesplit.sty
Package: beamerouterthemesplit 2007/01/28  (rcs-revision 1.5)
)
(/home/mdroe/texmf/tex/latex/beamer/themes/font/beamerfontthemestructurebold.st
y
Package: beamerfontthemestructurebold 2007/01/28  (rcs-revision 1.3)
)) (./python.sty
Package: python 2007/06/07 v0.21 Python in LaTeX
\@out=\write5
\@module=\write6
) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
 (/usr/share/texmf/tex/context/base/supp-pdf.tex (/usr/share/texmf/tex/context/
base/supp-mis.tex
loading : Context Support Macros / Missing
\protectiondepth=\count145
\scratchcounter=\count146
\scratchtoks=\toks35
\scratchdimen=\dimen178
\scratchskip=\skip55
\scratchmuskip=\muskip11
\scratchbox=\box50
\scratchread=\read1
\scratchwrite=\write7
\zeropoint=\dimen179
\minusone=\count147
\thousandpoint=\dimen180
\emptytoks=\toks36
\nextbox=\box51
\nextdepth=\dimen181
\everyline=\toks37
\!!counta=\count148
\!!countb=\count149
\recursecounter=\count150
)
loading : Context Support Macros / PDF
\nofMPsegments=\count151
\nofMParguments=\count152
\everyMPtoPDFconversion=\toks38
)
-------------------- Geometry parameters
paper: user defined
landscape: --
twocolumn: --
twoside: --
asymmetric: --
h-parts: 28.45274pt, 307.28987pt, 28.45274pt
v-parts: 0.0pt, 273.14662pt, 0.0pt
hmarginratio: --
vmarginratio: --
lines: --
heightrounded: --
bindingoffset: 0.0pt
truedimen: --
includehead: true
includefoot: true
includemp: --
driver: pdftex
-------------------- Page layout dimensions and switches
\paperwidth  364.19536pt
\paperheight 273.14662pt
\textwidth  307.28987pt
\textheight 244.6939pt
\oddsidemargin  -43.81725pt
\evensidemargin -43.81725pt
\topmargin  -72.26999pt
\headheight 14.22636pt
\headsep    0.0pt
\footskip   14.22636pt
\marginparwidth 4.0pt
\marginparsep   10.0pt
\columnsep  10.0pt
\skip\footins  10.0pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
-----------------------
Package hyperref Info: Link coloring OFF on input line 5.
 (/usr/share/texmf/tex/latex/hyperref/nameref.sty
Package: nameref 2001/01/27 v2.19 Cross-referencing by name of section
\c@section@level=\count153
)
LaTeX Info: Redefining \ref on input line 5.
LaTeX Info: Redefining \pageref on input line 5.
 (./test.out) (./test.out)
\openout3 = `test.out'.

LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/cmss/m/n on input line 5.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 5.
\symnumbers=\mathgroup6
\sympureletters=\mathgroup7
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'
(Font)                  OT1/cmss/m/n --> OT1/cmr/m/n on input line 5.
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 5.
LaTeX Font Info:    Redeclaring math alphabet \mathsf on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> OT1/cmss/m/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/cmss/m/n on input line 5.
LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/cmss/m/it on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/cmss/m/it on input line 5.
LaTeX Font Info:    Redeclaring math alphabet \mathtt on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> OT1/cmtt/m/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> OT1/cmtt/m/n on input line 5.
LaTeX Font Info:    Overwriting symbol font `numbers' in version `bold'
(Font)                  OT1/cmss/m/n --> OT1/cmss/bx/n on input line 5.
LaTeX Font Info:    Overwriting symbol font `pureletters' in version `bold'
(Font)                  OT1/cmss/m/it --> OT1/cmss/bx/it on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/cmr/bx/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/cmss/bx/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/m/n --> OT1/cmss/bx/n on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmss/m/it --> OT1/cmss/bx/it on input line 5.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> OT1/cmtt/bx/n on input line 5.

(./test.nav)

Package hyperref Warning: Option `pdfauthor' has already been used,
(hyperref)                setting the option has no effect on input line 7.


LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <4> not available
(Font)              size <5> substituted on input line 10.


LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font)              size <5> substituted on input line 10.

[1

{/usr/share/texmf/dvips/config/pdftex.map}]
\openout4 = `test.vrb'.

 (./test.vrb
! Undefined control sequence.
\python ->\kernel@ifnextchar
                             [{\@python }{\@python []}
l.2 \begin{python}
                 
? X
 
Here is how much of TeX's memory you used:
 7659 strings out of 95437
 137262 string characters out of 1190232
 211820 words of memory out of 1000001
 10424 multiletter control sequences out of 10000+50000
 6730 words of font info for 24 fonts, out of 500000 for 1000
 14 hyphenation exceptions out of 1000
 41i,15n,45p,341b,545s stack positions out of 1500i,500n,5000p,200000b,5000s
 27 PDF objects out of 300000
 4 named destinations out of 131072
 36 words of extra memory for PDF output out of 65536
! pdfTeX warning (dest): name{Navigation3} has been referenced but does not exi
st, replaced by a fixed one

{/usr/share/texmf/dvips/tetex/f7b6d320.enc}</usr/share/texmf/fonts/type1/bluesk
y/cm/cmssbx10.pfb></usr/share/texmf/fonts/type1/bluesky/cm/cmss10.pfb></usr/sha
re/texmf/fonts/type1/bluesky/cm/cmss12.pfb>
Output written on test.pdf (1 page, 15392 bytes).


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

test.tex (557 bytes) Download Attachment

Re: zorder seems to cause problems when embed python in latex files

by Jouni K. Seppänen :: Rate this Message:

| View Threaded | Show Only this Message

chris@... writes:

> I also attached the final PDF since you asked for it.

You didn't mention your matplotlib version, but the embedded pdf file
seems to come from matplotlib 0.91.2. That version had a bug where the
graphics context was not always restored properly, which could very well
be the cause of your problem:

  2008-03-23 Fix a pdf backend bug which sometimes caused the outermost
             gsave to not be balanced with a grestore. - JKS
    ...
  2008-01-06 Released 0.91.2 at revision 4802

Can you upgrade to 0.91.4?

--
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: zorder seems to cause problems when embed python in latex files

by Jouni K. Seppänen :: Rate this Message:

| View Threaded | Show Only this Message

Jouni K. Seppänen <jks@...> writes:

>   2008-03-23 Fix a pdf backend bug which sometimes caused the outermost
>              gsave to not be balanced with a grestore. - JKS
>
> Can you upgrade to 0.91.4?

Here's the relevant patch, in case applying it is more convenient than
upgrading:


Index: lib/matplotlib/backends/backend_pdf.py
===================================================================
--- lib/matplotlib/backends/backend_pdf.py (revision 5017)
+++ lib/matplotlib/backends/backend_pdf.py (revision 5018)
@@ -1159,7 +1159,7 @@
         self.tex_font_map = None
 
     def finalize(self):
-        self.gc.finalize()
+        self.file.output(*self.gc.finalize())
 
     def check_gc(self, gc, fillcolor=None):
         orig_fill = gc._fillcolor


--
Jouni K. Seppänen
http://www.iki.fi/jks

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: zorder seems to cause problems when embed python in latex files

by chris-218 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, Oct 14, 2008 at 03:00:05PM -0400, Michael Droettboom wrote:
> With the file you sent, I can see the messed up footer in xpdf, but not
> in acroread.  There are a number of times that I have seen xpdf not
> completely support the PDF spec, and this may be one of them.

I installed acroread and I was also able to view everything fine with it
whereas xpdf and evince showed the bug.


> Creating my own files, however, I'm not able to reproduce this here.

Hmmm.  This would imply that your versions somehow do something that makes xpdf
happy.

> When I compile your test.tex, I get an error, even though it seems to
> have loaded the python.sty file.  Not sure why (see attached log).

Looks like it doesn't know what \begin{python} means.  Did you put python.sty
in the same directory as text.tex?

> When I generate the plots "offline", and then hack test.tex to simply
> include the files, everything works fine, and I don't see a problem with
> the footers with either xpdf or acroread.

I see the problem with xpdf when I simply include the plots which means that
python.sty was just a red herring.  python.sty isn't the problem.

> There was a recent bug discovered in matplotlib where PDF files weren't
> always getting flushed completely.  I don't *think* that's the cause of
> this, but if you could reproduce what I did (generate the plots
> independently of TeX and then load them), and that works for you, that
> might point to something like that.

xpdf still croaks for me.  Perhaps using the bleeding edge of matplotlib would
fix?  I'm using Ubuntu 8.04 which has python-matplotlib version
0.91.2-0ubuntu1.

> There was also a bug a few months back where xpdf didn't like the way
> matplotlib handled reusing the same graphic multiple times (which is
> used for markers).  That may be why you're seeing the footer bug and I'm
> not -- you didn't mention which version of matplotlib you're running, so
> it's hard to say.
>
> Here's my versions of all the various moving pieces:
>> pdfTeX (Web2C 7.4.5) 3.14159-1.10b
>> kpathsea version 3.4.5
>> Copyright (C) 1997-2003 Han The Thanh.
> Beamer 3.00
> python 2.5.2
> matplotlib SVN (today)
> Acroread 8.1.1
> xpdf 3.00

Here is what I got:

Beamer 3.07-1
python 2.5.2
matplotlib  0.91.2-0ubuntu1
Acroread 8.1.2_SU1
xpdf 3.02-1.3ubuntu1

Ironically, all my stuff is newer than yours except for matplotlib.  Sounds
like bleeding edge of matplotlib must be tried next.

> That python.sty stuff looks really cool, by the way.  I haven't come
> across it before.

Glad I could help!

cs

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: zorder seems to cause problems when embed python in latex files

by chris-218 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, Oct 14, 2008 at 11:21:58PM +0300, Jouni K. Sepp?nen wrote:

> Jouni K. Sepp?nen <jks@...> writes:
>
> >   2008-03-23 Fix a pdf backend bug which sometimes caused the outermost
> >              gsave to not be balanced with a grestore. - JKS
> >
> > Can you upgrade to 0.91.4?
>
> Here's the relevant patch, in case applying it is more convenient than
> upgrading:
>

> Index: lib/matplotlib/backends/backend_pdf.py
> ===================================================================
> --- lib/matplotlib/backends/backend_pdf.py (revision 5017)
> +++ lib/matplotlib/backends/backend_pdf.py (revision 5018)
> @@ -1159,7 +1159,7 @@
>          self.tex_font_map = None
>
>      def finalize(self):
> -        self.gc.finalize()
> +        self.file.output(*self.gc.finalize())
>
>      def check_gc(self, gc, fillcolor=None):
>          orig_fill = gc._fillcolor

Jouni

thanks! you 1 line change appears to fix all!

cs

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users