Hi list,
I can't make heads nor tails of this weird problem I'm seeing while trying to
use newtx fonts. Here's a minimized example that causes the problem for me:
from pyx import *
text.set(cls=text.LatexRunner)
text.preamble(r'''\usepackage{newtxtext,newtxmath}''')
c = canvas.canvas()
c.text(0, 0, r"Remove the period to make this work: $12.45$")
c.writePDFfile("test")
If I run this, at the final line I get "RuntimeError: missing font information
for 'txmi'; check fontmapping file(s)". If I remove the period, everything
works great - no problem with numbers. It also works fine if I don't use math
mode. I did notice that if I replace the numbers with "$\alpha$" the problem
comes back, but I haven't found a pattern to the behaviour (e.g. "$\in$" is
fine).
Perhaps it's just my installation/distribution that has a problem. (I'm using
Debian testing, for what it's worth.) The error message says "check
fontmapping file(s)", but I have no clue where to start! I'm already in way
over my head with TeX's font system, so insight is much appreciated. :)
Peace,
Brendon
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user