[pstricks] Re: pstricks digest, Vol 1 #65 - 2 msgs
juan antonio jimenez martinez
jajimenezhgo at hotmail.com
Fri Apr 5 04:36:26 CEST 2002
Hi, what I do under linux is convert the dvi file to ps and then to pdf, I
think that you know how to convert from dvi to ps, in linux there is a
command that convert ps files to pdf, you should type in your command line
something like this:
ps2pdf file.ps file.pdf
and the result is a pdf file more small
I hope it would be usefull
Juan Antonio
>From: pstricks-request at tug.org
>Reply-To: pstricks at tug.org
>To: pstricks at tug.org
>Subject: pstricks digest, Vol 1 #65 - 2 msgs
>Date: Wed, 3 Apr 2002 13:00:35 +0200
>
>Send pstricks mailing list submissions to
> pstricks at tug.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://tug.org/mailman/listinfo/pstricks
>or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
>You can reach the person managing the list at
> pstricks-admin at tug.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of pstricks digest..."
>
>
>Today's Topics:
>
> 1. Defining and using Postscript procedures with pstricks? (Remi
>Coulom)
> 2. Re: Defining and using Postscript procedures with pstricks? (Denis
>Girou)
>
>--__--__--
>
>Message: 1
>Date: Mon, 01 Apr 2002 21:01:13 +0200
>From: Remi Coulom <Remi.Coulom at free.fr>
>To: pstricks at tug.org
>Subject: [pstricks] Defining and using Postscript procedures with pstricks?
>
>Hi,
>
>In a very big automatically generated pstricks figure I made, I have
>thousands
>of pslines that all have the same pstricks options and the same structure:
>\psline(x0,y0)(x1,y1)
>\psline(x1,y1)(x2,y2)
>
>My problem is that it generates a huge postscript file. What I would like
>to do
>is replace the long code generated by pstricks by more compact postscript.
>For
>instance, it would be nice to have some code like
>x0 y0 x1 y1 x2 y2 /MyMacro
>in the ps file. I believe it would make my file about 10 times smaller,
>which
>would be very nice.
>
>I'd appreciate very much if someone could give me indications on how to do
>this.
>
>Thanks,
>
>Rémi
>
>--__--__--
>
>Message: 2
>Date: Tue, 2 Apr 2002 22:05:03 +0200
>To: PSTricks mailing list <pstricks at tug.org>
>Subject: Re: [pstricks] Defining and using Postscript procedures with
>pstricks?
>From: Denis Girou <Denis.Girou at idris.fr>
>
> >>>>> "Remi.Coulom" == Remi Coulom <Remi.Coulom at free.fr> writes:
>
> Remi.Coulom> In a very big automatically generated pstricks figure I
>made, I have thousands
> Remi.Coulom> of pslines that all have the same pstricks options and
>the same structure:
> Remi.Coulom> \psline(x0,y0)(x1,y1)
> Remi.Coulom> \psline(x1,y1)(x2,y2)
>
> Remi.Coulom> My problem is that it generates a huge postscript file.
>What I would like to do
> Remi.Coulom> is replace the long code generated by pstricks by more
>compact postscript. For
> Remi.Coulom> instance, it would be nice to have some code like
> Remi.Coulom> x0 y0 x1 y1 x2 y2 /MyMacro
> Remi.Coulom> in the ps file. I believe it would make my file about 10
>times smaller, which
> Remi.Coulom> would be very nice.
>
> You are right: using thousands of \psline commands will create very huge
>and specially not optimized files.
>
> The alternative is simple: you have rather to use the \lineto macro,
>fixing at the beginning the first point with the \moveto macro.
>They must be used both inside a \pscustom macro. See pages 32, 36 and 39
>of the manual and the following basic example.
>
> On this test, we have a ratio of 8.6.
>
> If you really need to still decrease the resulting file, you can easily
>suppress some characters for each point: rather than the PostScript
>operator
>"lineto", use the "L" alias that PSTricks define. You will replace six
>characters by only one, which give you 5 x N characters less. On my test,
>we got this time your expected ratio of 10...
>
>
>\documentclass[a4paper]{article}
>
>\usepackage{multido}
>\usepackage{pstricks}
>
>\pagestyle{empty}
>
>\begin{document}
>
>% Resulting file: 1300 KB
>% \multido{\i=1+1}{5000}{\psline(1,1)(2,2)}
>
>
>% Resulting file: 150 KB
>%\pscustom{%
>% \moveto(1,1)
>% \multido{\i=1+1}{5000}{\lineto(2,2)}}
>
>
>% Resulting file: 130 KB
>
>% D.G. modification begin - Apr. 2, 2002
>% \def\lineto{\pst at onecoor{lineto}}%
>% D.G. modification end
>
>\makeatletter
>\pscustom{%
> \def\lineto{\pst at onecoor{L}}%
> \moveto(1,1)
> \multido{\i=1+1}{5000}{\lineto(2,2)}}
>\makeatother
>
>\end{document}
>
>
>D.G.
>
>
>--__--__--
>
>_______________________________________________
>pstricks mailing list
>pstricks at tug.org
>http://tug.org/mailman/listinfo/pstricks
>
>
>End of pstricks Digest
_________________________________________________________________
Con MSN Hotmail súmese al servicio de correo electrónico más grande del
mundo. http://www.hotmail.com/ES
More information about the PSTricks
mailing list