[tex-live] possible bug in newtx

Zdenek Wagner zdenek.wagner at gmail.com
Tue Feb 19 15:45:19 CET 2013


2013/2/19 Heiko Bauke <heiko.bauke at snafu.de>:
> Hi,
>
> the recent update of the newtx package in texlive 2012 breaks
> Matplotlib 1.1 under Ubuntu 12.04.2, see http://matplotlib.org/.
> Plots are generated with
>
> import pylab
> import matplotlib
> matplotlib.rc('font', size=11)
> matplotlib.rc('font', family='serif')
> matplotlib.rc('text', usetex=True)
> matplotlib.rc('text.latex', preamble=[r'\usepackage{txfonts}'])
>
> and Python skripts crash with
>
> /usr/lib/pymodules/python2.7/matplotlib/dviread.pyc in _fnt_def(self, k, c, s, d, a, l, n)
>     362         tfm = _tfmfile(n[-l:])
>     363         if c != 0 and tfm.checksum != 0 and c != tfm.checksum:
> --> 364             raise ValueError, 'tfm checksum mismatch: %s'%n
>     365         # It seems that the assumption behind the following check is incorrect:
>
>     366         #if d != tfm.design_size:
>
>
> ValueError: tfm checksum mismatch: rtxmi
>
tfm checksum mismatch signals possible font inconsistencies. Does
Matplotlib use its own fonts independent of the TeX fonts? Can it be
configured to use the fonts installed in TeX Live? Or you can symlink
Matplotlib fonts to your texmf-local which has higher priority. TeX
will then use Matplotlib fonts. If the encoding did not change, it
should work.

> Similar errors are caused when \usepackage{txfonts} is replaced by
> \usepackage{newtxtext,newtxmath}.
>
> I am not able to decide if it is the new newtx package or matplotlib
> that is buggy.  Downgrading to newtx 28648, however, helped me to get
> rid of the described issues.  (Do not forget to clean
> .matplotlib/tex.cache when trying to reproduce these errors.)
>
> Is there a way to keep a particular package version, e.g, the mentioned
> newtx 28648, even when >>tlmgr update --all<< is called?
>
>
>         Heiko
>
>
> --
> -- Number Crunch Blog @ http://numbercrunch.de
> --  Cluster Computing @ http://www.clustercomputing.de
> --        Heiko Bauke @ http://www.mpi-hd.mpg.de/personalhomes/bauke
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



More information about the tex-live mailing list