Re: using preview.sty

2002-07-02 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Tuesday 02 July 2002 2:22 pm, David Kastrup wrote: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > On Tuesday 02 July 2002 2:13 pm, David Kastrup wrote: > > > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > > > For now, this works well enough a

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 12:18 pm, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > On Tuesday 02 July 2002 11:06 am, Andre Poenitz wrote: > > > > I've tried to define a converter that can be used by both the batch > > > > processor and by the image loader. Ie, it'll work for bo

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 2:22 pm, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > On Tuesday 02 July 2002 2:13 pm, David Kastrup wrote: > > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > > For now, this works well enough and is pretty fast: > > > > pngtopnm trial004.

Re: using preview.sty

2002-07-02 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Tuesday 02 July 2002 2:13 pm, David Kastrup wrote: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > For now, this works well enough and is pretty fast: > > > pngtopnm trial004.png | pnmcrop - > trial004.ppm > > > > > > (It has the additional adv

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 2:13 pm, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > 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 > > nativ

Re: using preview.sty

2002-07-02 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > 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 ;-) No. If you are

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Tue, Jul 02, 2002 at 01:25:36PM +0100, Angus Leeming wrote: > Attached is a prototype PreviewQueue class. Currently it does no more than > compile, but I believe it's fairly complete. Looks good. > Note that I iterate over all MATHMACROs when I dump the preamble so we'll get > previews of "

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 12:25 pm, Andre Poenitz wrote: > On Tue, Jul 02, 2002 at 01:13:26PM +0200, David Kastrup wrote: > > Well, if you have any mechanisms for xdviing/ghostviewing just part of > > a document, "local" defines will fail anyway if not included in such > > a region. I would class o

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Tue, Jul 02, 2002 at 01:13:26PM +0200, David Kastrup wrote: > Well, if you have any mechanisms for xdviing/ghostviewing just part of > a document, "local" defines will fail anyway if not included in such > a region. I would class operation of previews similarly: defs > relevant to a preview sh

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Tue, Jul 02, 2002 at 01:07:48PM +0200, David Kastrup wrote: > > Cosmetics. Make it a black background and call it a feature ;-) > > Don't underestimate cosmetics. On non-Fridays smileys may have a meaning on lyx-devel... Andre' -- Those who desire to give up Freedom in order to gain Securi

Re: using preview.sty

2002-07-02 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Tuesday 02 July 2002 11:06 am, Andre Poenitz wrote: > > > I've tried to define a converter that can be used by both the batch > > > processor and by the image loader. Ie, it'll work for both multiple and > > > single images. > > > > Fine. > > Hmmm.

Re: using preview.sty

2002-07-02 Thread David Kastrup
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Tue, Jul 02, 2002 at 10:45:02AM +0100, Angus Leeming wrote: > > I'm of the same opinion; we need this only when a document is > > loaded. But we still need to dump the preamble if we're to get > > user-defined macros et al. > > I though Herbert did

Re: using preview.sty

2002-07-02 Thread David Kastrup
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Mon, Jul 01, 2002 at 08:06:34PM +0100, Angus Leeming wrote: > > > I'm trying to use David's preview.sty so that we can generate all > > the previews in one go when the document is loaded. Much quicker > > than running a script on each one. > > Actua

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Tue, Jul 02, 2002 at 11:05:45AM +0100, Angus Leeming wrote: > > As I said, local defines would break that scheme. But I think we currently > > don't have the infrastructure to work around this problem. > > Because math-macros are dumped into the LaTeX file after the begin{document}. Not just

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 11:18 am, Herbert Voss wrote: > it is very easy to add an additional bool only_header. > Just the same like nice_file. Very neat solution. Note that math-macros are still a problem. A

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 11:06 am, Andre Poenitz wrote: > > I've tried to define a converter that can be used by both the batch > > processor and by the image loader. Ie, it'll work for both multiple and > > single images. > > Fine. Hmmm. Here "gs" seems very slow now that is has the color info to

Re: using preview.sty

2002-07-02 Thread Herbert Voss
On Tue, 2 Jul 2002, Andre Poenitz wrote: > On Tue, Jul 02, 2002 at 10:45:02AM +0100, Angus Leeming wrote: > > I'm of the same opinion; we need this only when a document is loaded. But we > > still need to dump the preamble if we're to get user-defined macros et al. > > I though Herbert did some w

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Tue, Jul 02, 2002 at 10:45:02AM +0100, Angus Leeming wrote: > I'm of the same opinion; we need this only when a document is loaded. But we > still need to dump the preamble if we're to get user-defined macros et al. I though Herbert did some work on that part. Note that "the preamble" is not

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Tuesday 02 July 2002 6:52 am, Andre Poenitz wrote: > On Mon, Jul 01, 2002 at 08:06:34PM +0100, Angus Leeming wrote: > > I'm trying to use David's preview.sty so that we can generate all the > > previews in one go when the document is loaded. Much quicker than running > > a script on each one.

Re: using preview.sty

2002-07-02 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Monday 01 July 2002 8:37 pm, David Kastrup wrote: > > One solution: after loading the package preview, issue > > \AtBeginDocument{\AtBeginDvi{% > > \special{!userdict begin/bop-hook{//bop-hook exec > > <343434656565>{255 div}forall setrgbcolor

Re: using preview.sty

2002-07-02 Thread Andre Poenitz
On Mon, Jul 01, 2002 at 08:06:34PM +0100, Angus Leeming wrote: > I'm trying to use David's preview.sty so that we can generate all the > previews in one go when the document is loaded. Much quicker than running a > script on each one. Actually I think that's the only time we need to batch thing

Re: using preview.sty

2002-07-02 Thread Angus Leeming
On Monday 01 July 2002 8:37 pm, David Kastrup wrote: > One solution: after loading the package preview, issue > \AtBeginDocument{\AtBeginDvi{% > \special{!userdict begin/bop-hook{//bop-hook exec > <343434656565>{255 div}forall setrgbcolor > clippath fill setrgbcolor}bind def end}}} > >

Re: using preview.sty

2002-07-02 Thread David Kastrup
Herbert Voss <[EMAIL PROTECTED]> writes: > Herbert Voss wrote: > > > shown with the attached gif. A simple sed-command in the > > shell-script > > > second try with use of gs. first image the old one, the second the > gs-one Well, the bright fringes are gone, but whatever happened to the prim

Re: using preview.sty

2002-07-02 Thread Herbert Voss
Herbert Voss wrote: > shown with the attached gif. A simple sed-command in the > shell-script second try with use of gs. first image the old one, the second the gs-one HErbert -- http://www.lyx.org/help/

Re: using preview.sty

2002-07-01 Thread David Kastrup
Herbert Voss <[EMAIL PROTECTED]> writes: > Herbert Voss wrote: > > > Angus Leeming wrote: > > > >> The only two things I'd still like to do are be able to set the > >> colors of foreground/background to be the same as LyX's and to set > >> the font size to be the same as LyX's. > >> As you can

Re: using preview.sty

2002-07-01 Thread Herbert Voss
Herbert Voss wrote: > Angus Leeming wrote: > >> The only two things I'd still like to do are be able to set the colors >> of foreground/background to be the same as LyX's and to set the font >> size to be the same as LyX's. >> As you can see, I've been unable to set the colors. > > > > shou

Re: using preview.sty

2002-07-01 Thread David Kastrup
Herbert Voss <[EMAIL PROTECTED]> writes: > Angus Leeming wrote: > > > The only two things I'd still like to do are be able to set the > > colors of foreground/background to be the same as LyX's and to set > > the font size to be the same as LyX's. As you can see, I've been > > unable to set the

Re: using preview.sty

2002-07-01 Thread Herbert Voss
Angus Leeming wrote: > The only two things I'd still like to do are be able to set the colors of > foreground/background to be the same as LyX's and to set the font size to be > the same as LyX's. > > As you can see, I've been unable to set the colors. should be a simple change of the "whit

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > The only two things I'd still like to do are be able to set the > colors of foreground/background to be the same as LyX's and to set > the font size to be the same as LyX's. Colors: see separate post. Sorry for not thinking this through before, that's

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Monday 01 July 2002 6:51 pm, Andre Poenitz wrote: > > Is that solved by some snippet David sent a few days ago? > > Hmm. Probably. I can't get them to work. See below. > > One thing I have noticed from your screenshot is that the colors are > > off

Re: using preview.sty

2002-07-01 Thread Angus Leeming
On Monday 01 July 2002 8:11 pm, Herbert Voss wrote: > Angus Leeming wrote: > > On Monday 01 July 2002 8:00 pm, Herbert Voss wrote: > >>trial.lyx (reLyX) with the stuff from André > >> > >>Herbert > > > > Sorry, Herbert. This message is too cryptic for me. What are you saying > > you've done? > > I

Re: using preview.sty

2002-07-01 Thread Herbert Voss
Angus Leeming wrote: > On Monday 01 July 2002 8:00 pm, Herbert Voss wrote: > >>trial.lyx (reLyX) with the stuff from André >> >>Herbert >> > > Sorry, Herbert. This message is too cryptic for me. What are you saying > you've done? I only wanted to know, how your trial.tex looks with the stuf

Re: using preview.sty

2002-07-01 Thread Angus Leeming
On Monday 01 July 2002 8:00 pm, Herbert Voss wrote: > trial.lyx (reLyX) with the stuff from André > > Herbert Sorry, Herbert. This message is too cryptic for me. What are you saying you've done? A

Re: using preview.sty

2002-07-01 Thread Herbert Voss
trial.lyx (reLyX) with the stuff from André Herbert -- http://www.lyx.org/help/

Re: using preview.sty

2002-07-01 Thread Angus Leeming
On Monday 01 July 2002 6:51 pm, Andre Poenitz wrote: > Is that solved by some snippet David sent a few days ago? Hmm. Probably. I can't get them to work. See below. > > One thing I have noticed from your screenshot is that the

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > 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

Re: using preview.sty

2002-07-01 Thread David Kastrup
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Mon, Jul 01, 2002 at 07:00:05PM +0200, David Kastrup wrote: > > Usually, this means that text math and short phrases and horizontal > > material get a "tight" bounding box horizontally, whereas larger > > paragraph-mode based stuff (like displayed eq

Re: using preview.sty

2002-07-01 Thread Andre Poenitz
On Mon, Jul 01, 2002 at 06:16:11PM +0100, Angus Leeming wrote: > 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*forgro

Re: using preview.sty

2002-07-01 Thread Andre Poenitz
On Mon, Jul 01, 2002 at 07:00:05PM +0200, David Kastrup wrote: > Usually, this means that text math and short phrases and horizontal > material get a "tight" bounding box horizontally, whereas larger > paragraph-mode based stuff (like displayed equations) gets a line > width bounding box. [Note t

Re: using preview.sty

2002-07-01 Thread Angus Leeming
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 > ope

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > Using the file I posted together with > latex trial > dvips -o trial.ps trial.dvi > gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -sOutputFile=trial%03d.png > -r300 trial.ps Oh, I forgot: you usually would want antialiasing: add -dGraphicsAlphaBit=4

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > One more question. > > Using the file I posted together with > latex trial > dvips -o trial.ps trial.dvi > gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -sOutputFile=trial%03d.png > -r300 trial.ps > > Results in the following file (attached). > >

Re: using preview.sty

2002-07-01 Thread Angus Leeming
On Monday 01 July 2002 5:12 pm, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > David, > > > > I've beem trying to use preview.sty on the attached latex file. (This is > > using the preview.sty that comes with preview-latex-0.7.2b rather than > > CVS.) > > > > Any clues about

Re: using preview.sty

2002-07-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > David, > > I've beem trying to use preview.sty on the attached latex file. (This is > using the preview.sty that comes with preview-latex-0.7.2b rather than CVS.) > Any clues about what I'm doing wrong? > Angus You need to specify the dvips option t