Math accent placement poor with default font

Joseph Wright avatarJoseph Wright created an issue

As description: example

$\tilde M$ $\dot u$ $\hat T$

This is basically a font issue, as the standard choice by beamer does not work that well. Possible solutions would be either to (1) sort out the font or (2) choose a different default font. The later is not necessarily so easy: we are not exactly inundated with free sans serif math fonts (though see for choices). On option (1), this seems attractive but might not be so easy!

(I also note that one can argue that math has to be in a serif font, as font shape conveys mathematical meaning. However, most beamer users seem happy to bend the rules a bit here!)

Comments (10)

  1. Vedran Miletić

    I vote for (1) as a long-term goal.

    While sans math does convey meaning, it also looks a lot better on presentations than serif, so we should stick to it. And as you say, our users don't complain about it, and there is an option to change it.

  2. Anonymous

    It doesn't have to be long-term: I actually posted this as a question on (and Joseph was so nice to open the issue here). In the meantime I've written a patch for the cmssi font metrics (and for beamerbasefont.sty):

    I think it looks quite OK; maybe this can be used directly. Since the patch in the font metrics don't imply any changes in the output except the better positioning of the accents, I don't see any problems. Feedback is highly appreciated! (Here or on tex.stackexchange.)

  3. Joseph Wright

    Okay, the solution on {TeX} works nicely. Just one issue: the way the Mercurial repository is currently structured, there is no obvious place to put it :-) Most of the files need to go in texmf/fonts. How do you want to handle this (as I don't do the release, I'm not really fussed). For example, we could do a simple separate package 'beamerfontsupport' and require that.

  4. Anonymous

    As I wrote, I don't really know anything about encodings. The only important thing is that the modified font metrics are used whatever the encoding is.

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.