app-office/abiword, when built with latex support, allows to insert equation as a LaTeX formula. However, to see the inserted equation properly, user needs to install media-fonts/texcm-ttf package by hand. This should be done automatically whether latex USE flag is selected. Reproducible: Always Steps to Reproduce: 1. USE=latex emerge app-office/abiword 2. Open abiword 3. Select menu item "Insert/Equation/From LaTeX..." 4. Enter "\sqrt{\pi}" into "LaTeX equation" field. Actual Results: Some gibberish gets inserted Expected Results: \sqrt{\pi}
We should probably ask texlive maintainers if this is the only package providing this. Could you provide the output of abiword when you see the problem by starting it from a terminal ?
(In reply to comment #1) First, I am sorry as I was wrong about use flag which enables inserting equations into documents. It is not "latex" but combination of "plugins" and "math". "latex" probably provides latex filter for saving documents and has nothing to do with this bug. Second, here is the requested output: ---------------------------------------------------------------------- [MathView] *** Warning[1:1]: configuration file /usr/share/abiword-2.8/math/gtkmathview.conf.xml explicitly specified but not found [MathView] *** Warning[1:1]: configuration file /home/demidov/.AbiSuite/math/gtkmathview.conf.xml explicitly specified but not found [MathView] *** Info[2:2]: parsing time: 1ms [MathView] *** Info[2:2]: parsing time: 0ms [MathView] *** Info[2:2]: parsing time: 0ms [MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary.xml' does not exist [MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary-combining.xml' does not exist [MathView] *** Warning[1:2]: dictionary `/usr/share/abiword-2.8/math/dictionary-local.xml' does not exist [MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary.xml' does not exist [MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary-combining.xml' does not exist [MathView] *** Warning[1:2]: dictionary `/home/demidov/.AbiSuite/math/dictionary-local.xml' does not exist [MathView] *** Info[2:2]: build time: 0ms [MathView] *** Info[2:2]: parsing time: 0ms [MathView] *** Info[2:2]: build time: 0ms [MathView] *** Info[2:2]: formatting time: 15ms [MathView] *** Info[2:2]: build time: 0ms [MathView] *** Info[2:2]: parsing time: 0ms [MathView] *** Info[2:2]: build time: 0ms [MathView] *** Info[2:2]: formatting time: 0ms [MathView] *** Info[2:2]: rendering time: 0ms [MathView] *** Info[2:2]: rendering time: 0ms ---------------------------------------------------------------------- I don't think it has anything to do with texlive. What is needed is a font with math symbols in it. AbiWord V2.4.0 Release Notes says: "Note that while standard symbol fonts can be used to render equations, the best results are achieved when the Computer Modern fonts are installed". I did try installing fonts from $(eix -C media-fonts -S math), such as mathematica-fonts or stix-fonts (and explicitly specifying those for an equation), but with no results.
so there is a chance that there is more than one font that could solve this issue ? If so that'll complicate the resolution of this bug.
I've looked into the abiword's source code, and it seems that abiword uses x11-libs/gtkmathview for rendering equations. The latter supports different fonts or shapers (http://helm.cs.unibo.it/mml-widget/qna.html), but it looks like only computer modern family fully supports math symbols. Also there are several headers for different shapers in abiword mathview plugin source tree. So, computer modern fonts are not strictly required to display math (at least some simple formulas). Thus, media-fonts/texcm-ttf probably should not be installed for every user. But a friendly note in the ebuild would be a great help for those who do need to display equations with math symbols. Something along the lines: "Hey, you enabled math plugin. That is best used with media-fonts/texcm-ttf".
shouldn't that be a change in gtkmathview then ?
(In reply to comment #5) That does make sense. May be gtkmathview needs a "cm" use flag to optionally depend on texcm-ttf. Should I open new bug then?
Do we agree on depending on it when USE="mathml" USE flah for gtkmathview is set?
+ 04 Feb 2011; Pacho Ramos <pacho@gentoo.org> gtkmathview-0.8.0.ebuild, + metadata.xml: + Install additional fonts for proper mathml support (bug #344665 by Denis + Demidov). +