PREVIEW code: upgrade to preview.sty 0.73

2002-09-03 Thread Angus Leeming
Ok all. I have removed support for preview.sty 0.72b. >From now on we'll be using the lyx support built into preview.sty 0.73. So, upgrade preview.sty or lose your previews! Angus On Tuesday 03 September 2002 4:52 pm, [EMAIL PROTECTED] wrote: > CVSROOT: /usr/local/lyx/cvsroot &g

Re: New CVS version of preview.sty (one for Angus)

2002-07-29 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Monday 29 July 2002 1:22 am, David Kastrup wrote: > > Sorry, we are still in the 0.7.3 cleanup and redocumentation cycle and > > have not yet reached release maturity. In the course of that, I have > > tried figuring out what goes wrong with things

Re: New CVS version of preview.sty (one for Angus)

2002-07-29 Thread Angus Leeming
On Monday 29 July 2002 1:22 am, David Kastrup wrote: > Sorry, we are still in the 0.7.3 cleanup and redocumentation cycle and > have not yet reached release maturity. In the course of that, I have > tried figuring out what goes wrong with things like seminar.sty. > Well, they set \mag. Ugh. > >

New CVS version of preview.sty (one for Angus)

2002-07-28 Thread David Kastrup
Sorry, we are still in the 0.7.3 cleanup and redocumentation cycle and have not yet reached release maturity. In the course of that, I have tried figuring out what goes wrong with things like seminar.sty. Well, they set \mag. Ugh. This is now fixed: the tightpage option now takes DVI magnifica

Re: bug in preview.sty

2002-07-24 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Wednesday 24 July 2002 9:39 am, Herbert Voss wrote: > > this seems to be a bug in preview.sty. > > the relevant latex code is > > > > \begin{eqnarray} > > y & = & d\label{eq:2}\\ > > y & = &a

Re: bug in preview.sty

2002-07-24 Thread David Kastrup
Herbert Voss <[EMAIL PROTECTED]> writes: > this seems to be a bug in preview.sty. > the relevant latex code is > > \begin{eqnarray} > y & = & d\label{eq:2}\\ > y & = & cx+d\\ > y & = & bx^{2}+cx+d\\ > y & = & ax^{3}+bx^{2}+cx+d\lab

Re: bug in preview.sty

2002-07-24 Thread Angus Leeming
On Wednesday 24 July 2002 9:39 am, Herbert Voss wrote: > this seems to be a bug in preview.sty. > the relevant latex code is > > \begin{eqnarray} > y & = & d\label{eq:2}\\ > y & = & cx+d\\ > y & = & bx^{2}+cx+d\\ > y & = & ax^{3}+bx^{2}+cx+

bug in preview.sty

2002-07-24 Thread Herbert Voss
this seems to be a bug in preview.sty. the relevant latex code is \begin{eqnarray} y & = & d\label{eq:2}\\ y & = & cx+d\\ y & = & bx^{2}+cx+d\\ y & = & ax^{3}+bx^{2}+cx+d\label{eq:5} \end{eqnarray} HErbert -- http://www.lyx.org/help/

Re: preview.sty

2002-07-19 Thread Andre Poenitz
On Thu, Jul 18, 2002 at 02:40:49PM +0100, Angus Leeming wrote: > > This is what I'm using. See if it works for you. > > Angus > > well.. ??? Well... I have a talk to prepare... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve

Re: preview.sty

2002-07-18 Thread Andre Poenitz
On Thu, Jul 18, 2002 at 02:40:49PM +0100, Angus Leeming wrote: > > This is what I'm using. See if it works for you. > > Angus > > well.. ??? Real Life is keeping me busy... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, eit

Re: preview.sty

2002-07-18 Thread Angus Leeming
On Thursday 18 July 2002 12:11 pm, Angus Leeming wrote: > On Thursday 18 July 2002 10:00 am, Andre Poenitz wrote: > > And I'd prefer if you did it as I lost the touch with the preview stuff > > and it currently "does not work" for me... > > This is what I'm using. See if it works for you. > Angus

Re: preview.sty

2002-07-18 Thread Angus Leeming
On Thursday 18 July 2002 10:00 am, Andre Poenitz wrote: > And I'd prefer if you did it as I lost the touch with the preview stuff and > it currently "does not work" for me... This is what I'm using. See if it works for you. Angus preview-latex.tar.gz Description: GNU Zip compressed data

Re: preview.sty

2002-07-18 Thread Andre Poenitz
On Thu, Jul 18, 2002 at 11:45:27AM +0100, Angus Leeming wrote: > > So does the configure stuff recognize preview.sty already? > > No. Why should it? So that we can disable preview if preview.sty does not > exist or if the existing version is too old? Well, so kind of warning tha

Re: preview.sty

2002-07-18 Thread Angus Leeming
igure stuff recognize preview.sty already? > > Andre' No. Why should it? So that we can disable preview if preview.sty does not exist or if the existing version is too old? Angus

Re: preview.sty

2002-07-18 Thread Andre Poenitz
On Thu, Jul 18, 2002 at 11:02:17AM +0200, Herbert Voss wrote: > there is no need that lyx stores these files, it depends to the > latex stuff and there it should be, in the latex-tree ... So does the configure stuff recognize preview.sty already? Andre' -- Those who desire to give

Re: preview.sty

2002-07-18 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 18 July 2002 9:33 am, Andre Poenitz wrote: > >>Can't we put preview.sty into lib/tex? >> >>Andre' >> > > Sure. It's GPL code. But it's one more file to maintain. > > When 0.73 is released in the

Re: preview.sty

2002-07-18 Thread Andre Poenitz
ork in progress' and as long the LyX preview failes silently if something is wrong... > When 0.73 is released in the next week or so, I'll strip out a chunk of the > code in our Preview files and make greater use of the log file generated by > preview.sty. > > Maybe,

Re: preview.sty

2002-07-18 Thread Angus Leeming
On Thursday 18 July 2002 9:33 am, Andre Poenitz wrote: > Can't we put preview.sty into lib/tex? > > Andre' Sure. It's GPL code. But it's one more file to maintain. When 0.73 is released in the next week or so, I'll strip out a chunk of the code in our Preview

preview.sty

2002-07-18 Thread Andre Poenitz
Can't we put preview.sty into lib/tex? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)

Re: Preview.sty weirdness with labels

2002-07-10 Thread David Kastrup
onment, so it gets inconsistent markup and spacing as compared with other math (perhaps AMSLaTeX should actively disable those LaTeX constructs it does not support). Since the mechanisms for equation labels differ for AMSLaTeX and plain LaTeX, and since preview.sty has to cater in different ways for both,

Re: Preview.sty weirdness with labels

2002-07-10 Thread Herbert Voss
Herbert Voss wrote: > Angus Leeming wrote: > >> Sometimes the labels are at the front, sometimes at the back. See >> attached LaTeX file and resultant bitmaps. >> \documentclass[english]{amsart} > > > > amsxxx has the equation numbers on the left side forget it, do not read the mail well .

Re: Preview.sty weirdness with labels

2002-07-10 Thread Herbert Voss
Angus Leeming wrote: > Sometimes the labels are at the front, sometimes at the back. See attached > LaTeX file and resultant bitmaps. > \documentclass[english]{amsart} amsxxx has the equation numbers on the left side Herbert -- http://www.lyx.org/help/

Preview.sty weirdness with labels

2002-07-10 Thread Angus Leeming
Sometimes the labels are at the front, sometimes at the back. See attached LaTeX file and resultant bitmaps. David, have you any ideas about this? Has Kornel found a bug? Regards, Angus 0lyxpreview002.png Description: PNG image 0lyxpreview001.png Description: PNG image \batchmode %% LyX 1

Re: Possible preview.sty feature request

2002-07-09 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > David, > > I wonder if it would be possible to add an option to preview.sty so that, > when using "showlabels", equation labels are displayed as (#)? > > Attached are two screen shots of what happens now. > &g

Re: Possible preview.sty feature request

2002-07-09 Thread Angus Leeming
On Tuesday 09 July 2002 11:47 am, Herbert Voss wrote: > Angus Leeming wrote: > > I wonder if it would be possible to add an option to preview.sty so that, > > when using "showlabels", equation labels are displayed as (#)? > > what for? when I use showlabels I want

Re: Possible preview.sty feature request

2002-07-09 Thread Herbert Voss
Angus Leeming wrote: > I wonder if it would be possible to add an option to preview.sty so that, > when using "showlabels", equation labels are displayed as (#)? what for? when I use showlabels I want to see the label and not the (#) which gives the user only the information t

Possible preview.sty feature request

2002-07-09 Thread Angus Leeming
David, I wonder if it would be possible to add an option to preview.sty so that, when using "showlabels", equation labels are displayed as (#)? Attached are two screen shots of what happens now. preview1.png. I load an existing file into LyX. The labels already exist. Both snippet

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
an-Åke. I am > really mad at not yet having the preview-latex infrastructure > finished for making use of it. Only problem up to now is that it has > just integral shrink factors, but once I have got it in, I will take > a stab of changing this, too. I guess that the "ideal&q

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 >

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

Re: using preview.sty

2002-07-02 Thread David Kastrup
y and cryptic (ok, it probably is not intended for human consumption, anyway). I think that eventually we will have a proper interface for the basic color setup in preview.sty (I would want to avoid using color.sty if possible, although trying not to interfere with its operation in case the document

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 on

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
ptic for me. What are you saying > > you've done? > > I only wanted to know, how your trial.tex looks with > > the stuff from André. That's all ... > > Herbert Well sure, it looks just fine. I'm trying to use David's preview.sty so that we can generate all

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
by such constructs. The information TeX has available about the boxes does not make it into DVI files. b) if you "crop" displayed equations for the sake of smaller graphics, they don't line up any more. The result is that, for example, equation numbers get a ragged right outline in

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

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 Yo

using preview.sty

2002-07-01 Thread Angus Leeming
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.) This file was exported from LyX but I've stripped out the body to leave just the math environment stuff. I've