[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: pstricks export: why linewidth in centimeters?
- From: Lars Ræder Clausen <lars raeder dk>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: pstricks export: why linewidth in centimeters?
- Date: Tue, 11 Nov 2008 09:35:23 +0100
On Mon, 2008-11-10 at 23:06 +0100, Albert Zihlmann wrote:
> I don't understand why dia puts the unit "cm" behind its linewidth
> declaration at pstricks export. If I want to scale the image by adding
> the statement "\psset{unit=0.5cm}" before the image file input the image
> shrinks well but all the lines keep their thickness. If I delete
> manually the "cm" from the exported file scaling works fine.
>
> a) Is there a way to turn off this unit output at pstricks export?
Apply the attached (untested) patch and recompile.
> b) Or does anyone know an other way to scale such an imported image in a
> latex document?
\resizebox{width}{height}{contents} is what I use for resizing included
postscript. One of width and height can be replaced with ! to keep
aspect ratio.
-Lars
Index: render_pstricks.c
===================================================================
--- render_pstricks.c (revision 4138)
+++ render_pstricks.c (working copy)
@@ -258,7 +258,7 @@
gchar d_buf[DTOSTR_BUF_SIZE];
- fprintf(renderer->file, "\\psset{linewidth=%scm}\n",
+ fprintf(renderer->file, "\\psset{linewidth=%s}\n",
pstricks_dtostr(d_buf, (gdouble) linewidth) );
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]