pre-defined converters

2002-06-26 Thread Andre Poenitz
How do I add a converter script for formats a->b to lib/scripts that will always be found? 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: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 03:45:25PM +0900, R. Lahaye wrote: > Aha, let me give a last shot: > when I replace the body of readSymbols::math_factory.C by simply "return;", > LyX seems to keep running like a charm. > > Aparently the use of variables in that particular body of readSymbols > makes the

Re: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread R. Lahaye
Andre Poenitz wrote: > > There happens nothing special. Only destructors of the automatic variables > are run. As I said, I guess your heap is corrupted already when you come > there, so the problem might be at any point before that time. Aha, let me give a last shot: when I replace the body of

Re: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 11:10:43AM +0900, R. Lahaye wrote: > What happens at the end of readSymbols::math_factory.C and why only > on my FreeBSD PC does this end with a SIGSEGV? There happens nothing special. Only destructors of the automatic variables are run. As I said, I guess your heap is cor

Re: preview, part II

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 11:49:56PM +0200, David Kastrup wrote: > Background: see separate post with PostScript code. Yes, I just did not do that yet. > How do you generate the LaTeX that you run through for the preview? I use the same function as I use for the "ordinary LaTeX export". Of course

Re: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread R. Lahaye
Andre Poenitz wrote: > > Try to configure --with-included-strings No, that doesn't help !?! When I do "configure --with-included-strings", the output says: [...] checking whether the included std::string should be used... checking ... no checking whether the systems std::string is really

Re: po/POTFILES.in

2002-06-26 Thread Michael A. Koziarski
Lars Gullik Bjønnes wrote: >Andre Poenitz <[EMAIL PROTECTED]> writes: > >| should this be aded to .cvsignore? > > >| It always shows up in cvs diff, even after a clean >| checkout/autogen/configure > >I guess something in it changed then... > > > It changes all the time. Every build it seems

Re: preview, part II

2002-06-26 Thread David Kastrup
Andre Poenitz <[EMAIL PROTECTED]> writes: > Sort of finished. > > If you have '\preview true' in your preferences, math insets will get > 'previewed' unless the cursor is in the inset. In the latter case we get > the usual mathed behaviour. > > ### NOTE

Re: LyX 1.3.0 CVS compile failures on two platforms

2002-06-26 Thread Kayvan A. Sylvan
Anyone look into this? I don't know enough about the make process... On Wed, Jun 26, 2002 at 01:37:18AM -0700, Kayvan A. Sylvan wrote: > On Linux, using "make rpmdist": > > g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem > +/usr/X11R6/include -O2 -m486 -fno-strength-reduce

Re[2]: insetcite.C

2002-06-26 Thread Soeren Pietsch
Dekel> On Wed, Jun 26, 2002 at 06:39:19PM +0200, Andre Poenitz wrote: >> On Wed, Jun 26, 2002 at 05:25:45PM +0100, Angus Leeming wrote: >> > I think that LaTeX falls over if there is space /between/ keys: >> > key1, key2, key3 >> >> I think it does. I seem to remember Konni complaining about

preview, part II

2002-06-26 Thread Andre Poenitz
Sort of finished. If you have '\preview true' in your preferences, math insets will get 'previewed' unless the cursor is in the inset. In the latter case we get the usual mathed behaviour. ### NOTE # previewUpdate() which will start the pdfla

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 6:16 pm, Andre Poenitz wrote: > On Wed, Jun 26, 2002 at 05:59:24PM +0100, Angus Leeming wrote: > > > I have a cached 'BufferView *' already anyway. > > > > Which becomes unsafe as soon as we start creating and destroying multiple > > buferviews? > > Probably. > > > Hence

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 05:59:24PM +0100, Angus Leeming wrote: > > I have a cached 'BufferView *' already anyway. > > Which becomes unsafe as soon as we start creating and destroying multiple > buferviews? Probably. > Hence my thoughts on using a signal to invoke the update... And I still hav

Re: insetcite.C

2002-06-26 Thread Dekel Tsur
On Wed, Jun 26, 2002 at 06:39:19PM +0200, Andre Poenitz wrote: > On Wed, Jun 26, 2002 at 05:25:45PM +0100, Angus Leeming wrote: > > I think that LaTeX falls over if there is space /between/ keys: > > key1, key2, key3 > > I think it does. I seem to remember Konni complaining about it once...

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 5:47 pm, Andre Poenitz wrote: > > See my mail to the lyx-devel list: > > "Getting rid of BufferView * current_view from InsetGraphics" > > for some thoughts on getting rid of current_view in such a context. > > I have a cached 'BufferView *' already anyway. Which bec

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 05:41:23PM +0100, Angus Leeming wrote: > As soon as the formula changes though you should generate a new graphics > file... Sure. Thanks for your help. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 5:47 pm, Andre Poenitz wrote: > as this tries to copy-construct the Loader member which is > boost::non_copy_something. You're just ahead of me that's all. Why not define FormulaInset::FormulaInset(FormulaInset: const & other) : loader(other.loader.filename()) {

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 05:29:27PM +0100, Angus Leeming wrote: > Each FormulaInset will generate one graphic file I guess, right? One graphic > file, one grfx::Loader, so yes, I think that you should have a grfx::Loader > member variable in FormulaInset. But that's not possible in the presense

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 5:12 pm, Andre Poenitz wrote: > On Wed, Jun 26, 2002 at 04:53:59PM +0100, Angus Leeming wrote: > > Does this compile? > > Not tried but I am sure it does. > > I've currently f*ed up my source tree... Ok, I'll try and replace those auto_ptr<> const pimpl_ instances with

Re: insetcite.C

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 05:25:45PM +0100, Angus Leeming wrote: > I think that LaTeX falls over if there is space /between/ keys: > key1, key2, key3 I think it does. I seem to remember Konni complaining about it once... Andre' -- Those who desire to give up Freedom in order to gain Securi

Re: insetcite.C

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 5:32 pm, Soeren Pietsch wrote: > Hi, > > Agnus could you tell why we need the following? > 2001-08-01 Angus Leeming <[EMAIL PROTECTED]> > > * insetcite.C (latex): Paranoia check. Make sure that there is no > whitespace between the citation keys. > > // Paranoia check:

insetcite.C

2002-06-26 Thread Soeren Pietsch
Hi, Agnus could you tell why we need the following? 2001-08-01 Angus Leeming <[EMAIL PROTECTED]> * insetcite.C (latex): Paranoia check. Make sure that there is no whitespace between the citation keys. // Paranoia check: make sure that there is no whitespace in here string content;

Re[2]: graphic files and converter

2002-06-26 Thread Soeren Pietsch
Herbert> at this time only the File->Export->Latex works in your way, all Herbert> filenames are exported without extension. Herbert> LyX do not need an extension to recognize the correct file-format. Herbert> it maybe an option to pass _all_ files without the extension to Herbert> latex. Herbert>

Getting rid of BufferView * current_view from InsetGraphics

2002-06-26 Thread Angus Leeming
InsetGraphics currently contains the following code: extern BufferView * current_view; void InsetGraphics::statusChanged() { current_view->updateInset(this, false); } InsetGraphics::statusChanged() is connected to the signal grfx::Loader::statusChanged, emitted when the graphics file is

Re: lyx-devel src/frontends/: ChangeLog screen.C src/frontends/xfo ...

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 04:53:59PM +0100, Angus Leeming wrote: > Does this compile? Not tried but I am sure it does. I've currently f*ed up my source tree... And I can't see how to use the loader. Do I have to make a Loader member for FormulaInset? If so, how does (FormulaInset's) clone work wi

Re: funny stuff

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 05:41:41PM +0200, Lars Gullik Bjønnes wrote: > Well it is some years since I wrote this now... > (I am not sure that I did it even ...) I was not suggesting it was your code. > I'd probably use > > return file.isOK() && file.isRegular() && file.readable(); > > now.

Re: funny stuff

2002-06-26 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Wed, Jun 26, 2002 at 04:01:43PM +0200, Lars Gullik Bjønnes wrote: >> | // Is a file readable ? >> | bool IsFileReadable (string const & path) >> | { >> |FileInfo file(path); >> |if (file.isOK() && file.isRegular() && file.readable()) >> |

Re: po/POTFILES.in

2002-06-26 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | should this be aded to .cvsignore? > | It always shows up in cvs diff, even after a clean | checkout/autogen/configure I guess something in it changed then... -- Lgb

Re: funny stuff

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 04:01:43PM +0200, Lars Gullik Bjønnes wrote: > | // Is a file readable ? > | bool IsFileReadable (string const & path) > | { > | FileInfo file(path); > | if (file.isOK() && file.isRegular() && file.readable()) > | return true; > | else > |

Re: preview lyx

2002-06-26 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Wednesday 26 June 2002 3:18 pm, David Kastrup wrote: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > > André, how does it work for you??? > > > > > > I get stacks of these messages because /tmp/lyx does not exist. > > > > > > aleem@pneumon:src-> wr

Re: preview lyx

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 3:18 pm, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > André, how does it work for you??? > > > > I get stacks of these messages because /tmp/lyx does not exist. > > > > aleem@pneumon:src-> writing '$D'$' to '/tmp/lyx/EcEeHcEc.eps' > > /tmp/lyx/: No

Re: preview lyx

2002-06-26 Thread Angus Leeming
André, how does it work for you??? I get stacks of these messages because /tmp/lyx does not exist. Angus aleem@pneumon:src-> writing '$D'$' to '/tmp/lyx/EcEeHcEc.eps' /tmp/lyx/: No such file or directory file '/tmp/lyx/EcEeHcEc.eps' registered writing '$D'$' to '/tmp/lyx/EcEeHcEc.eps' file '/t

Re: boost signals question

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 3:00 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | On Wednesday 26 June 2002 2:22 pm, Lars Gullik Bjønnes wrote: > >> Angus Leeming <[EMAIL PROTECTED]> writes: > >> | Lars, > >> | > >> | I find that there's no problem in using boost::bind

Re: funny stuff

2002-06-26 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | from filetools.C: > | // Is a file readable ? | bool IsFileReadable (string const & path) | { | FileInfo file(path); | if (file.isOK() && file.isRegular() && file.readable()) | return true; | else | return f

Re: boost signals question

2002-06-26 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Wednesday 26 June 2002 2:22 pm, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | Lars, >> | >> | I find that there's no problem in using boost::bind on a class that is >> | NOT derived from boost::trackable. So what's the

funny stuff

2002-06-26 Thread Andre Poenitz
from filetools.C: // Is a file readable ? bool IsFileReadable (string const & path) { FileInfo file(path); if (file.isOK() && file.isRegular() && file.readable()) return true; else return false; }

Re: boost signals question

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 2:22 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | Lars, > | > | I find that there's no problem in using boost::bind on a class that is > | NOT derived from boost::trackable. So what's the point of > | boost::trackable? > > That you can re

Re: boost signals question

2002-06-26 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars, > | I find that there's no problem in using boost::bind on a class that is NOT | derived from boost::trackable. So what's the point of boost::trackable? That you can remove/delete the object from the trackable class and have this reflected in th

boost signals question

2002-06-26 Thread Angus Leeming
Lars, I find that there's no problem in using boost::bind on a class that is NOT derived from boost::trackable. So what's the point of boost::trackable? Angus

Re: lyx-devel src/mathed/: formula.C formula.h preview.C preview.h

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 2:03 pm, Andre Poenitz wrote: > On Wed, Jun 26, 2002 at 01:43:52PM +0100, Angus Leeming wrote: > > I don't think so. Which comments aren't you happy with. > > The big one in the beginning of GraphicsCacheItem.h. ;-) Should be a little clearer now. Angus

Re: lyx-devel src/mathed/: formula.C formula.h preview.C preview.h

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 01:43:52PM +0100, Angus Leeming wrote: > I don't think so. Which comments aren't you happy with. The big one in the beginning of GraphicsCacheItem.h. > If you aren't interested in such niceties then lose the "connect" step and > just use > if (loader.image()->getP

Re: lyx-devel src/mathed/: formula.C formula.h preview.C preview.h

2002-06-26 Thread Angus Leeming
On Tuesday 25 June 2002 7:28 pm, Andre Poenitz wrote: > On Tue, Jun 25, 2002 at 08:21:17PM +, [EMAIL PROTECTED] wrote: > > first shot at preview. It crashes. Don't know why. To see it work a > > bit, change formula.C:191, to see it crash remove the comment further > > down. > > Act

Re: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 06:27:11PM +0900, R. Lahaye wrote: > I noticed that my configure output says: > checking whether the systems std::string is really good... no > Is that of any relevance? Maybe. Try to configure --with-included-strings > The output from "lyx -dbg MATHED" is then: > > [..

Re: LyX 1.2.0 strips double {{ }} in math

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 11:28:39AM +0200, Jan Sykora wrote: > It makes problems also in the standard article class - maybe the cause > is in the amsmath package... No the problem is the math parser being overly clever (and or the math tex export being overly stupid). The number of {} should not

Lyx 1.2 - Badvalue id:24 error - could be X server color depth related]

2002-06-26 Thread Surinder S. Dio
Hi, I originally posted this question to lyx-users; but on consideration it might be better suited for lyx-developers. if it's not I apologize. Rgds Surinder - Forwarded message from "Surinder S. Dio" <[EMAIL PROTECTED]> - Date: Tue, 25 Jun 2002 11:37:29 +0100 From: "Surinder S. Dio" <

Re: Request for docbook (insetgraphics).

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 11:54 am, José Abílio Oliveira Matos wrote: > Hi, > would it be too difficult for inset graphics to know about it complete > file path? > > I need this in validate, that doesn't have the buffer information, so I > can't use the same trick used in exporting lat

Request for docbook (insetgraphics).

2002-06-26 Thread José Abílio Oliveira Matos
Hi, would it be too difficult for inset graphics to know about it complete file path? I need this in validate, that doesn't have the buffer information, so I can't use the same trick used in exporting latex. The inset include that is related with this one, since both insert ext

Re: preview-latex is go!

2002-06-26 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Wednesday 26 June 2002 10:52 am, Andre Poenitz wrote: > > On Wed, Jun 26, 2002 at 08:56:41AM +0100, Angus Leeming wrote: > > > > Sure thing. Check out dvipng from the preview-latex CVS: antialiased > > > > bitmaps which you can request in daemon mod

Re: LyX 1.2.0 strips double {{ }} in math

2002-06-26 Thread Herbert Voss
On Wed, 26 Jun 2002, Jan Sykora wrote: > It makes problems also in the standard article class - maybe the cause > is in the amsmath package... > == > ! Undefined control sequence. > \mathaccentV #1#2#3#4#5->\ifmmode \gdef \macc@tmp I do not get any error message. here is my filelist:

Re: preview-latex is go!

2002-06-26 Thread David Kastrup
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Wed, Jun 26, 2002 at 08:56:41AM +0100, Angus Leeming wrote: > > > Sure thing. Check out dvipng from the preview-latex CVS: > > > antialiased bitmaps which you can request in daemon mode (page > > > selection and stuff via pipe instead of command li

Re: preview-latex is go!

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 10:52 am, Andre Poenitz wrote: > On Wed, Jun 26, 2002 at 08:56:41AM +0100, Angus Leeming wrote: > > > Sure thing. Check out dvipng from the preview-latex CVS: antialiased > > > bitmaps which you can request in daemon mode (page selection and > > > stuff via pipe instead

Re: margins with a4 paper

2002-06-26 Thread Juergen Spitzmueller
Claus Hentschel wrote: > If you do use A4 paper as your default papersize and you decide to make own > margin settings in Layout->Document then package geometry will be called in > the tex file. But those values you do have set manually will not be used in > any output format, i.e. dvi, pdf or ps.

Re: preview-latex is go!

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 08:56:41AM +0100, Angus Leeming wrote: > > Sure thing. Check out dvipng from the preview-latex CVS: antialiased > > bitmaps which you can request in daemon mode (page selection and > > stuff via pipe instead of command line). That should be hellishly > > fast. I'll get b

Re: [1]+ Illegal instruction lyx-CVS

2002-06-26 Thread geof
On Wednesday 26 June 2002 08:06, you wrote: > On Wed, Jun 26, 2002 at 01:22:44AM +0200, geof wrote: > > In fact, I'm running a ppc (G3 500Mhz). > > Is it possible that there is some specific intel code in the cvs > > repository? > > I doubt so. I'd rather think your compiler is given a wrong optio

Re: CVS: SIGSEGV when inserting math env.

2002-06-26 Thread R. Lahaye
Andre Poenitz wrote: > > Other things to try: > > - add an empty line at the back of lib/symbols > - check for empty string 'line' after getline in math_factory.C:189 > ( if (line.empty()) > continue; >just beofre the contruction of the istringstream Done that, to no avail. I notic

Re: LyX 1.2.0 strips double {{ }} in math

2002-06-26 Thread Jan Sykora
It makes problems also in the standard article class - maybe the cause is in the amsmath package... tex file: = \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{bm} \usepackage{babel} \begin{document} $\bm {\hat{\ta

Re: Fw: Win32 patch

2002-06-26 Thread Andre Poenitz
On Wed, Jun 26, 2002 at 10:47:47AM +0200, Claus Hentschel wrote: > Because I neither haven't got an answer from JMarc nor have found the win32 > announcement at lyx.org I do forward my Win32 patch to this list directly. It looks as if this does not touch any non-Win32-specific code. Is this true?

margins with a4 paper

2002-06-26 Thread Claus Hentschel
I'd a problem to control the margins with Lyx 1.2.0 some days ago (and a quick and dirty(?)fix for it): If you do use A4 paper as your default papersize and you decide to make own margin settings in Layout->Document then package geometry will be called in the tex file. But those values you do hav

Fw: Win32 patch

2002-06-26 Thread Claus Hentschel
Because I neither haven't got an answer from JMarc nor have found the win32 announcement at lyx.org I do forward my Win32 patch to this list directly. - Original Message - From: "Claus Hentschel" <[EMAIL PROTECTED]> To: "Jean-Marc Lasgouttes" <[EMAIL PROTECTED]> Sent: Friday, June 21, 200

Re: preview-latex is go!

2002-06-26 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > I don't anticipate adding png support to xforms will be t > hard. What may be harder is getting it into a released version of > the library, judging from the current lack of response to other > patches I've thrown their way. Toolkit independence is

LyX 1.3.0 CVS compile failures on two platforms

2002-06-26 Thread Kayvan A. Sylvan
On Linux, using "make rpmdist": g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem +/usr/X11R6/include -O2 -m486 -fno-strength-reduce -W -Wall -c formula.C +-Wp,-MD,.deps/formula.TPlo In file included from ../../src/bufferparams.h:24, from ../../src/lyxrc.h:19

Re: preview-latex is go!

2002-06-26 Thread Angus Leeming
On Wednesday 26 June 2002 9:17 am, David Kastrup wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > On Tuesday 25 June 2002 10:21 pm, David Kastrup wrote: > > > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > > On Tue, Jun 25, 2002 at 06:15:57PM +0200, David Kastrup wrote: > > > > > Considerin

Re: preview-latex is go!

2002-06-26 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Tuesday 25 June 2002 10:21 pm, David Kastrup wrote: > > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > On Tue, Jun 25, 2002 at 06:15:57PM +0200, David Kastrup wrote: > > > > Considering the title of this thread and my complete lack of knowledge > >

Re: preview-latex is go!

2002-06-26 Thread Angus Leeming
On Tuesday 25 June 2002 10:21 pm, David Kastrup wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > On Tue, Jun 25, 2002 at 06:15:57PM +0200, David Kastrup wrote: > > > Considering the title of this thread and my complete lack of knowledge > > > what this might be about, do you consider it like