* Mike Speciner <ms@alum.mit.edu> [Nov 04. 2013 07:44]:
I'm guessing you are talking about compressing the bitmap, while Henry is talking about writing a program to generate the bitmap. Such a program is probably only a few hundred bytes in PostScript. As an irrelevant aside, I believe all the compression algorithms used by pdf are also available in PostScript.
--ms
[...]
No bitmaps anywhere here. See http://jjj.de/tmp-tmp/ for the 3 files in question. Reproduce with latex test.tex dvips test.dvi pdflatex test.tex Sure one could write (tiny!) postscript programs to create these pictures, but how many people would be able to do that, leave alone willing to do it? The following (paperfolding dragon) is from http://rosettacode.org/wiki/Dragon_curve --------------------------- %!PS-Adobe-3.0 %%BoundingBox 0 0 300 300 /+ { 90 rotate } def /- {-90 rotate } def /!1 { dup 1 sub dup 0 eq not } def /F { 180 0 rlineto } def /X { !1 { X + Y F + } if pop } def /Y { !1 { - F X - Y } if pop } def /dragon { gsave 270 580 moveto dup 1 sub { 1 2 div sqrt dup scale -45 rotate } repeat F X stroke grestore } def 1 1 16 { dragon showpage } for %%EOF --------------------------- This one gives the "terdragon", in a nice rendering (just cooked it up): --------------------------- %!PS-Adobe-3.0 %%BoundingBox 0 0 300 300 /+ { 60 rotate } def /- {-60 rotate } def /!1 { dup 1 sub dup 0 eq not } def /F { 150 0 rlineto } def /X { !1 { X F + F + X - F - F X } if pop } def /terdragon { gsave 70 280 moveto 90 rotate dup 1 sub { 1 3 div sqrt dup scale -30 rotate } repeat F X stroke grestore } def 1 1 16 { terdragon showpage } for %%EOF --------------------------- Regards, jj Not a P.S., just for my records: generated with stringsubst 4 R--R--R L --RL++LRL++LR--RL R RL++LR--RLR--RL++ + + - - \ | tail -1 | ./bin 6 3 0 > pic-test.tex && make dotex # R9-flake (A Lindenmeyer system and turtle graphics to generate a TeX picture)