After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581868 - dia -t tex file.dia does not export PStricks macros
dia -t tex file.dia does not export PStricks macros
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.96.1
Other All
: Normal normal
: 0.97.2
Assigned To: Dia maintainers
Dia maintainers
: 611303 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-08 13:59 UTC by ska
Modified: 2011-12-30 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Man page adjustment for pstricks-tex and pgf-tex (800 bytes, patch)
2011-12-29 22:33 UTC, Roland Stigge
committed Details | Review

Description ska 2009-05-08 13:59:01 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.
Comment 1 Hans Breuer 2009-05-08 14:22:38 UTC
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.
Comment 2 Hans Breuer 2009-09-19 20:42:35 UTC
Fixed as outlined above: http://git.gnome.org/cgit/dia/commit/?id=b3dbb950373b33fb7bc37d3874f570b2e4c97cc1
Comment 3 Hans Breuer 2010-02-27 17:12:28 UTC
*** Bug 611303 has been marked as a duplicate of this bug. ***
Comment 4 Hans Breuer 2011-01-07 12:13:33 UTC
Cherry-picked to dia-0-97 branch.
Comment 5 Roland Stigge 2011-12-29 20:44:58 UTC
The problem persists in 0.97.2
Comment 6 Hans Breuer 2011-12-29 21:38:09 UTC
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
Comment 7 Roland Stigge 2011-12-29 22:32:34 UTC
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!
Comment 8 Roland Stigge 2011-12-29 22:33:21 UTC
Created attachment 204331 [details] [review]
Man page adjustment for pstricks-tex and pgf-tex