Michael J Gruber
2016-01-30 16:52:11 UTC
Hi there,
I've been experimenting with PyX graphics included in beamer
presentations (the ubiquitious "beamer" LaTeX class), and noticed an
issue with fonts.
Typically, you want the same fonts in your included graphics that you
have in the surrounding document. The simplest way of achieving that is
using the same document class and font related preamble commands for PyX
that you use in your main document. Given how much font wrangling
beamer.cls does, that also seems to be the only realistic option (rather
than trying to emulate the font setup).
The attached beamer.tex includes a pdf generated from beamerpyx.py and
compares the result - the two lines should be identical, especially the
last part where the fon wrangling of beamer.cls becomes important.
The PyX file compiles only when I ask PyX to ignore (or merely warn
about) certain errors. Specifically:
begindoc
========
I can quell the message about the nav-file using texmessage.no_nav but
that leaves the stuff from hyperref, EveryShipOut and geometry.
Is there a reason not to ignore "nav"-warnings by default?
Can we maybe ignore the others by default, too, or at least provide a
default parser?
run
===
I have no clue why texmessage.load_def doesn't catch the fd-file messages.
specials
========
Is there a way to silence those warnings about ignored specials (other
than changing the overall logger level)?
Cheers
Michael
P.S.: The proper approach would be to create the slides from within PyX,
of course. :)
I've been experimenting with PyX graphics included in beamer
presentations (the ubiquitious "beamer" LaTeX class), and noticed an
issue with fonts.
Typically, you want the same fonts in your included graphics that you
have in the surrounding document. The simplest way of achieving that is
using the same document class and font related preamble commands for PyX
that you use in your main document. Given how much font wrangling
beamer.cls does, that also seems to be the only realistic option (rather
than trying to emulate the font setup).
The attached beamer.tex includes a pdf generated from beamerpyx.py and
compares the result - the two lines should be identical, especially the
last part where the fon wrangling of beamer.cls becomes important.
The PyX file compiles only when I ask PyX to ignore (or merely warn
about) certain errors. Specifically:
begindoc
========
I can quell the message about the nav-file using texmessage.no_nav but
that leaves the stuff from hyperref, EveryShipOut and geometry.
Is there a reason not to ignore "nav"-warnings by default?
Can we maybe ignore the others by default, too, or at least provide a
default parser?
run
===
I have no clue why texmessage.load_def doesn't catch the fd-file messages.
specials
========
Is there a way to silence those warnings about ignored specials (other
than changing the overall logger level)?
Cheers
Michael
P.S.: The proper approach would be to create the slides from within PyX,
of course. :)