Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350630 - media-gfx/inkscape-0.48.0 LaTeX formula render extension doesn't work
Summary: media-gfx/inkscape-0.48.0 LaTeX formula render extension doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 499518 533842 (view as bug list)
Depends on: 587828
Blocks:
  Show dependency tree
 
Reported: 2011-01-05 04:19 UTC by Angelo Arrifano (RETIRED)
Modified: 2017-05-23 15:27 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
textext-0.4.4.ebuild (textext-0.4.4.ebuild,660 bytes, text/plain)
2015-01-22 20:14 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angelo Arrifano (RETIRED) gentoo-dev 2011-01-05 04:19:13 UTC
Extension available in "Extensions" -> "Render" -> "LaTeX formula" doesn't work.
When entering a valid formula like $s_0$, the extension fails with a python backtrace. By inspecting the LaTeX temporary files that were created, I got the following error in eq.out:
"Unsupported output format plot-svg"

This error is outputted by pstoedit which doesn't recognize the svg format. Re-emerging media-gfx/pstoedit-3.50 with the plotutils use flag enabled fixes the problem and allows the LaTeX render extension to function properly.

Please make inkscape depend on media-gfx/pstoedit[plotutils] or something like that.
Comment 1 Jonas Stein gentoo-dev 2014-01-28 00:06:55 UTC
can not reproduce the bug in inkscape 0.48.4 anymore. Perhaps it is fixed or was caused by external code?
Comment 2 Michael Orlitzky gentoo-dev 2015-01-22 19:29:35 UTC
*** Bug 499518 has been marked as a duplicate of this bug. ***
Comment 3 Michael Orlitzky gentoo-dev 2015-01-22 19:30:39 UTC
*** Bug 533842 has been marked as a duplicate of this bug. ***
Comment 4 Michael Orlitzky gentoo-dev 2015-01-22 19:44:15 UTC
This issue still exists. Per the recently duped bugs, I think Inkscape should have a USE=latex flag which pulls in all of these packages. We need at least:

  * media-gfx/pstoedit[plotutils]

    Without USE=plotutils, we get the crash and the python backtrace
    reported in this bug. The option won't even be available on the
    menu without pstoedit.

  * app-text/dvipsk

    Without the 'dvips' binary, Inkscape will hide the option from
    the tools menu: http://wiki.inkscape.org/wiki/index.php/LaTeX

  * dev-texlive/texlive-latex-2012

    Without the 'latex' binary, no menu option. See above.


The textext extension (which is nicer than the built-in feature IMO) ADDITIONALLY requires,

  * dev-python/lxml
Comment 5 Michael Orlitzky gentoo-dev 2015-01-22 19:45:19 UTC
No particular version of dev-texlive/texlive-latex is needed. Copy/paste error.
Comment 6 Michael Orlitzky gentoo-dev 2015-01-22 20:14:19 UTC
Created attachment 394652 [details]
textext-0.4.4.ebuild

Here's an ebuild for the textext extension, which could be pulled in along with USE=latex if so desired. Written and tested in about 30 seconds, but it seems to work.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2016-06-10 15:44:27 UTC
(In reply to Michael Orlitzky from comment #4)
> This issue still exists. Per the recently duped bugs, I think Inkscape
> should have a USE=latex flag which pulls in all of these packages. We need
> at least:
> 
>   * media-gfx/pstoedit[plotutils]
> 
>     Without USE=plotutils, we get the crash and the python backtrace
>     reported in this bug. The option won't even be available on the
>     menu without pstoedit.
> 
>   * app-text/dvipsk
> 
>     Without the 'dvips' binary, Inkscape will hide the option from
>     the tools menu: http://wiki.inkscape.org/wiki/index.php/LaTeX
> 
>   * dev-texlive/texlive-latex-2012
> 
>     Without the 'latex' binary, no menu option. See above.

I took the liberty of adding the deps with a latex useflag in 91-r2.
Comment 8 Felix Janda 2016-06-13 09:01:15 UTC
The new 0.91-r2 ebuild has dropped ~arm keyword.
Comment 9 Felix Janda 2016-10-22 00:28:25 UTC
It seems that now the ~arm keyword could be savely restored. (Sorry for
hijacking this bug, but it seems that a keyword request should have
been filed when dropping the keyword.)
Comment 10 Jonas Stein gentoo-dev 2016-12-03 13:26:43 UTC
Thank you, dilfridge for the use flag.
Can we copy and paste this solution to the other ebuilds and close the bug as fixed?
Comment 11 Jonas Stein gentoo-dev 2017-05-23 15:27:31 UTC
fixed in 0.91