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 380302 - export to pstricks outdated
export to pstricks outdated
Status: RESOLVED INCOMPLETE
Product: dia
Classification: Other
Component: exports
0.95.1
Other All
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-28 21:48 UTC by Daniel Wolk
Modified: 2008-07-16 22:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Wolk 2006-11-28 21:48:01 UTC
Please describe the problem:
I found 3 errors when trying to export to TeX PSTricks macros (*.tex):

1) should output \psscalebox instead of \scalebox
2) linewidth should have a length specification (pt)
3) should not be a "-pos->y" but simply "pos->y

Steps to reproduce:
1. open file
2. file --> export -->
3. choose format "TeX PSTricks macros (*tex)"


Actual results:
You get error messages when try to compile in latex

Expected results:


Does this happen every time?
Yes

Other information:
I indeed fixed the problem by making changes in "render_pstricks.c".  I am enclosing the patch file.  I renamed the original "render_pstricks.c.orig" (probably not the standard way to do it, but I am not a developer).  Here it is:

259c259
<     fprintf(renderer->file, "\\psset{linewidth=%spt}\n",
---
>     fprintf(renderer->file, "\\psset{linewidth=%s}\n",
790c790
<     fprintf(renderer->file,"(%s,%s){\\psscalebox{1 -1}{%s}}\n",
---
>     fprintf(renderer->file,"(%s,%s){\\scalebox{1 -1}{%s}}\n",
792c792
<           pstricks_dtostr(py_buf,pos->y),
---
>           pstricks_dtostr(py_buf,-pos->y),
964c964
<     fprintf(renderer->file,"\\psscalebox{%s %s}{\n",
---
>     fprintf(renderer->file,"\\scalebox{%s %s}{\n",
Comment 1 Lars Clausen 2006-12-01 20:05:39 UTC
Adding the unit measure, but for the -pos->y part, please compare bug #304974 and come to an agreement on what is right:)
Comment 2 André Klapper 2008-07-16 22:01:55 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!