On Monday 01 July 2002 6:00 pm, David Kastrup wrote:
> You presumably would want to have "white space" to the left of the
> equation cropped away.

Exactly.

> Since you would usually want to have the paragraph based stuff line
> up, this has turned out to be about the most desirable mode of
> operations for our application.

> I hope this makes sense.

It does. Would you entertain a "feature request" that you add an option to 
strip off the LHS whitespace for me? 

For now, this works well enough and is pretty fast:
        pngtopnm trial004.png | pnmcrop - > trial004.ppm

(It has the additional advantage that xforms won't currently load png 
natively, so we must do the conversion anyway ;-)

> Oh, I forgot: you usually would want antialiasing: add
> -dGraphicsAlphaBit=4 -dTextAlphaBits=4
> to those options, the results are quite nicer.

Ahhh. That's what they do. (I saw them in the preview documentation but 
didn't recognise them.

One more dumn question. Background and foreground colours. The gs docs say 
that these must be set as X11 resources. Is there a way of setting them 
temporarily. A sort of:

(Ghostscript*background #rrggbb, Ghostscript*forground=#rrggbb; gs ...)

If I can find a way of going from the LyX screen font size info to a gs "-r" 
option then I think that that's everything to do with the preview generation 
finished.

Angus

Reply via email to