Hi
I'm writing a small booklet that explain to kids our turtle environment and explian also some programming concepts. Previously I was using Word but I'm really fed up about that and started to use LaTeX. ( I hate it less than Word and Framemaker but still ;)).
For that, I would like to extract piece of Squeak environmnent as EPS I saw that I can ask a morph to print itself in PS (cool).
Now I would like to be able to select a part of the environment and save it as EPS, is there something already in Squeak for that.
In particular what does the copy postccript menu?
Then I would like to know if the trails made by the player can be saved as eps? For the moment I'm extracting a pict file converting it to eps, so this is ok one solution would that I produce directly latex for the figures the turtle does.
Any suggestions are welcome
Stef
By the way the pdf of the lectures are available: http://www.iam.unibe.ch/~ducasse/WebPages/Teaching.html#turtle
Stephane DUCASSE (ducasse@iam.unibe.ch) http://www.iam.unibe.ch/~ducasse/ "if you knew today was your last day on earth, what would you do different? ... especially if, by doing something different, today might not be your last day on earth" Calvin&Hobbes
University of Bern, Institut fuer informatik and Mathematik IAM-SCG, 10 neubruckstrasse, CH-3012 Bern, Switzerland.
On Fri, 31 Mar 2000, Stephane Ducasse wrote:
Now I would like to be able to select a part of the environment and save it as EPS, is there something already in Squeak for that.
You can only print whole morphs with the "Print PS to file" menu.
In particular what does the copy postccript menu?
It copies the PS code to the clipboard.
Then I would like to know if the trails made by the player can be saved as eps? For the moment I'm extracting a pict file converting it to eps, so this is ok one solution would that I produce directly latex for the figures the turtle does.
Turtle trails currently are not collected but painted onto the turtleTrailsForm. You could, however, change the PasteUpMorph's drawPenTrailFor:from:to: to use a Canvas instead, and if you pass a PostscriptCanvas, you get nice trails without pixel artifacts.
-Bert-
Stephane Ducasse wrote:
Now I would like to be able to select a part of the environment and save it as EPS, is there something already in Squeak for that.
No, but it is probably rather easy to make it generate the very litte extra stuff that turns PS into EPS. In particular, the subset of PS generated from morphs should require *very* little modification.
A quick'n'dirty way is to take the ps file and use Acrobat distiller to make a pdf file. Then use Acrobat itself to save the pdf as an EPS.
hope this helps, Henrik
squeak-dev@lists.squeakfoundation.org