GNOME Bugzilla – Bug 380302
export to pstricks outdated
Last modified: 2008-07-16 22:01:55 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",
Adding the unit measure, but for the -pos->y part, please compare bug #304974 and come to an agreement on what is right:)
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!