GNOME Bugzilla – Bug 581868
dia -t tex file.dia does not export PStricks macros
Last modified: 2011-12-30 12:28:16 UTC
Please describe the problem: The man page claims that the command exports the file into TeX pstricks macros, but it exports to PGF macros. Steps to reproduce: 1. dia -t tex file.dia 2. 3. Actual results: file.tex with PGF \usepackage{tikz} macros are created Expected results: file.tex with \usepackage{pstricks} macros Does this happen every time? yes Other information: Both plugins use ".tex" as extension and dia uses the extension solely for considering the file format. The man page claims that PStricks macros are created. I file this bug, because I need to create a pstricks tex file from a Makefile; but I guess others will need PGF macros, so both plugins should be selectable individually on export.
That should be easy: just disable the tex plug-in you don't want to use via File/Plug-Ins (uncheck Load at Startup). With some small code change in both plug-ins, i.e. setting DiaExportFilter::unique_name one could differntiate them from command line, evne when both are loaded.
Fixed as outlined above: http://git.gnome.org/cgit/dia/commit/?id=b3dbb950373b33fb7bc37d3874f570b2e4c97cc1
*** Bug 611303 has been marked as a duplicate of this bug. ***
Cherry-picked to dia-0-97 branch.
The problem persists in 0.97.2
If you refer to 'dia -t tex file.dia' being able to only select _one_ of the tex formats, yes that's to be expected.But if you give 'dia -t pstricks-tex file.dia' that should work as descibed in the commit log: http://git.gnome.org/browse/dia/commit/?id=3a597237b567b353bbb5a19657df92a008b2bcc2
Thank you and sorry - could have seen that earlier. Proposing attached patch to fix ambiguous man page. BTW: Why do we duplicate work in doc/en and doc/eu? Thanks!
Created attachment 204331 [details] [review] Man page adjustment for pstricks-tex and pgf-tex
Review of attachment 204331 [details] [review]: http://git.gnome.org/browse/dia/commit/?id=30f66257cda7701d645d95f45f02b805f0062083