Re: 1.4.2svn crash with view->postscript/dvi (export to latex?)

2006-05-24 Thread Bo Peng
The problem is at line 683, insetgraphics.C // source file is now full path /tmp/lyx_tmpdir20237FyBZGA/lyx_tmpbuf0/4_home_bpeng_simuPOP_doc_log_LDdecay.eps if (!runparams.nice && GetExtension(temp_file) != ext) { // The LaTeX compiler will not be able to d

1.4.2svn crash with view->postscript/dvi (export to latex?)

2006-05-24 Thread Bo Peng
Dear list, lyx 1.4.2 cvs crashes when I try to view a file with eps figure. Here is the gdb trace: Assertion triggered in void ExportData::addExternalFile(const std::string&, const std::string&, const std::string&) by failing check "lyx::support::AbsolutePath(sourceName)" in file exporter.C:322

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bo Peng
The result is that in the Preferences dialog, the right viewers/ editors show up as "auto" -- at least for the most part. However, there are some oddities, which lead me to question whether it's actually working as it should. Yes. This means canAutoOpenFile is working. 1. The generated lyxrc.d

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 03:27:13PM -0400, Bennett Helm wrote: > On May 24, 2006, at 3:04 PM, Enrico Forestieri wrote: > > Sorry, cannot help here. I can only say that pplatex should call > > latex passing to it any specified argument. > > Using "pplatex -src-specials $$i" as the LaTeX -> DVI con

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 24, 2006, at 12:28 PM, Bo Peng wrote: That at least compiles (thanks again!). What do I need to do to test to see if it's working correctly? Under windows, 1. if gsview and acrobad readers are available, you should see pdf (three of them) and ghostscript (dvi, html, update, view source

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 24, 2006, at 3:04 PM, Enrico Forestieri wrote: On Wed, May 24, 2006 at 09:39:00AM -0400, Bennett Helm wrote: OK. Simple stupidity, I guess: I had the dvi converter defined as latex rather than pplatex. Perhaps you are another victim of the way path_prefix is (not) handled. No. As i

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 09:39:00AM -0400, Bennett Helm wrote: > OK. Simple stupidity, I guess: I had the dvi converter defined as > latex rather than pplatex. Perhaps you are another victim of the way path_prefix is (not) handled. > Is this a change I should make to the default distribution?

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Martin Vermeer
On Wed, May 24, 2006 at 07:45:25PM +0200, Michael Gerz wrote: > Martin, > > given the fact that you are not allowed to revert logical deletions within > the inset (otherwise you run into an inconsistent state), I am tempted to > remove linebreaks without CT marking. I.e. setAutoBreakRow does not

Re: A debate topic: What can LyX still learn from scientific workplace?

2006-05-24 Thread Georg Baum
Jan Peters wrote: > 1) it should be possible to activate these without going into the text > files, why is there not View->Toolbars->Math,Extra,MiniBuffer,etc > menu which allows this? Because nobody implemented it. > 2) Why is it still a less pleasant experience to edit an equation in > LyX tha

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Michael Gerz
Martin, given the fact that you are not allowed to revert logical deletions within the inset (otherwise you run into an inconsistent state), I am tempted to remove linebreaks without CT marking. I.e. setAutoBreakRow does not consider the buffer's change tracking mode. Does this make sense to y

Re: A debate topic: What can LyX still learn from scientific workplace?

2006-05-24 Thread Jan Peters
Jan> Just my 2 cents: The LyX toolbars should be not repeats Word's Jan> mistakes but include nice equation editing feature like SWP or Jan> Mathtype which are currently "hidden" in the math panel (which Jan> either costs me half my screen or has to be activated every Jan> time). Practical math to

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Martin Vermeer
On Wed, May 24, 2006 at 08:19:33PM +0300, Martin Vermeer wrote: > On Wed, May 24, 2006 at 06:26:18PM +0200, Michael Gerz wrote: ... > In non-ct mode, you irreversibly lose the newlines. It would be nice to > mark them "blue" under ct. s/blue/red/ - martin pgp4c4CqndxJe.pgp Description: PGP s

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Georg Baum
Michael Gerz wrote: > Does it make sense that setAutoBreakRows marks linebreaks as (logically) > deleted if they are disallowed? Is the user allowed to revert the deletion > later? No, he is not. Actually I did not think about that case. > This may lead to inconsistent states. Yes. It should on

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Michael Gerz
I am asking because setAutoBreakRows calls Paragraph::erase() which requires a trackChanges flags in the new CT code. I guess that the buffer parameter (ct on/off) has to be passed to setAutoBreakRows but I would like to know your opinion first. Yes, it has to be passed. LyXText::autoBreakRows_

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Martin Vermeer
On Wed, May 24, 2006 at 06:26:18PM +0200, Michael Gerz wrote: > Hello, > > could somebody please tell me the purpose of method > InsetText::setAutoBreakRows? > > I am asking because setAutoBreakRows calls Paragraph::erase() which requires > a trackChanges flags in the new CT code. I guess that

Re: Question on InsetText::setAutoBreakRows

2006-05-24 Thread Georg Baum
Michael Gerz wrote: > Hello, > > could somebody please tell me the purpose of method > InsetText::setAutoBreakRows? It sets the corresponding flag of LyXText, but I guess you knew that. > I am asking because setAutoBreakRows calls Paragraph::erase() which > requires a trackChanges flags in the

Re: New (?) ct bug

2006-05-24 Thread Michael Gerz
Mea culpa. My previous fix for the numberless crashing bug reported by Jean-Marc was a little too simple ;-/ Attached a better one. I propose to only apply this to 1.4.x and leave 1.5 to Michael. Good idea :-) The above-mentioned.

Re: [PATCH] CT - Toolbar

2006-05-24 Thread Michael Gerz
On Wed, May 24, 2006 at 06:13:58PM +0200, Michael Gerz wrote: I would like to add a tool bar for tracking changes (in the personal branch at first). Do you agree with the attached patch? Looks OK. Great. I wonder if it could be made to pop up automatically if loading a document with change

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bo Peng
That at least compiles (thanks again!). What do I need to do to test to see if it's working correctly? Under windows, 1. if gsview and acrobad readers are available, you should see pdf (three of them) and ghostscript (dvi, html, update, view source) under view menu. 2. if gsview is uninstalled

Question on InsetText::setAutoBreakRows

2006-05-24 Thread Michael Gerz
Hello, could somebody please tell me the purpose of method InsetText::setAutoBreakRows? I am asking because setAutoBreakRows calls Paragraph::erase() which requires a trackChanges flags in the new CT code. I guess that the buffer parameter (ct on/off) has to be passed to setAutoBreakRows but I

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Bennett> After playing around a bit, I get the following errors, which > Bennett> I don't know enough to make sense of. > The code was really bogus. Try this one instead. This one will also fail to compile but I guess you know that now ;-) Leavi

Re: [PATCH] CT - Toolbar

2006-05-24 Thread John Levon
On Wed, May 24, 2006 at 06:13:58PM +0200, Michael Gerz wrote: > I would like to add a tool bar for tracking changes (in the personal branch > at first). Do you agree with the attached patch? Looks OK. I wonder if it could be made to pop up automatically if loading a document with changes to merg

[PATCH] CT - Toolbar

2006-05-24 Thread Michael Gerz
Hello,   I would like to add a tool bar for tracking changes (in the personal branch at first). Do you agree with the attached patch?   Michael ct-toolbar.patch Description: Binary data

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 24, 2006, at 11:46 AM, Angus Leeming wrote: Bennett Helm <[EMAIL PROTECTED]> writes: After playing around a bit, I get the following errors, which I don't know enough to make sense of. FSRef fileref = FSPathMakeRef((UInt8 *) filename.c_str(),

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Bennett Helm <[EMAIL PROTECTED]> writes: >> After playing around a bit, I get the following errors, which I >> don't know enough to make sense of. Angus> I cannot help with the error on line 152, but the other two Angus> will almos

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 24, 2006, at 11:35 AM, Angus Leeming wrote: Bennett Helm <[EMAIL PROTECTED]> writes: After playing around a bit, I get the following errors, which I don't know enough to make sense of. I cannot help with the error on line 152, but the other two will almost certainly be resolved by pr

Re: New (?) ct bug

2006-05-24 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> On Wed, 2006-05-24 at 10:14 +0200, Juergen Spitzmueller wrote: >> Martin Vermeer wrote: >> >> > My previous fix for the numberless crashing bug reported by >> Jean-Marc > was a little too simple ;-/ Attached a better one. >> >>

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> After playing around a bit, I get the following errors, which Bennett> I don't know enough to make sense of. The code was really bogus. Try this one instead. JMarc Index: src/support/os_unix.C =

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Angus Leeming
Bennett Helm <[EMAIL PROTECTED]> writes: > After playing around a bit, I get the following errors, which I don't > know enough to make sense of. > > FSRef fileref = FSPathMakeRef((UInt8 *) filename.c_str(), > filename.length(), NULL); http://developer.

Re: compress

2006-05-24 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> Why not adding it as an option when choosing "File->Save Enrico> As..."? A "Compressed LyX Document" could be added to the Enrico> "File type" combobox. Not really, since it is not another file we want to produce. It is the f

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Angus Leeming
Bennett Helm <[EMAIL PROTECTED]> writes: > After playing around a bit, I get the following errors, which I don't > know enough to make sense of. I cannot help with the error on line 152, but the other two will almost certainly be resolved by prepending outAppRef on lines 157, 162 with "&". LSGe

Another ct bug, or 2600 redux?

2006-05-24 Thread Paul A. Rubin
Hi, Not sure if this is another manifestation of bug 2600 or a new CT bug. Someone on the user list posted a beamer file (containing CT markup) that no longer opens. More specifically (using LyX 1.4.1): 1. Try to open the doc either by File->Open or drag-and-drop. Status line changes to "

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 23, 2006, at 10:33 AM, Jean-Marc Lasgouttes wrote: OK, I read the documentation and came up with the following patch, which is probably partly bogus. I think this is supposed to do what we need. Could you try to turn it into working code? JMarc After playing around a bit, I get the

Re: New (?) ct bug

2006-05-24 Thread Martin Vermeer
On Wed, 2006-05-24 at 10:14 +0200, Juergen Spitzmueller wrote: > Martin Vermeer wrote: > > > My previous fix for the numberless crashing bug reported by Jean-Marc > > was a little too simple ;-/ Attached a better one. > > works, thanks! > I didn't check if it fixes the other bug (your original pa

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Michael> Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. Michael> IIRC, isInsertedText() is not used at all. Do you know why? It is strange. I don't know. A lot of complicated things happen

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Bennett Helm
On May 23, 2006, at 7:35 PM, Enrico Forestieri wrote: On Tue, May 23, 2006 at 11:07:37AM -0400, Bennett Helm wrote: I have noticed that I can't see CT stuff in the output on Mac, though I haven't had time to figure out why. (I also have dvipost installed and can get it to work manually in

Re: [PATCH] CT 13

2006-05-24 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Michael> isDeletedText has been changed into a method of class > Michael> Paragraph (where it belongs). This is also more OO-like. > I think Lars prefers to have these kind of helper functions outside of > classes. We tend to have too many methods

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Gerz <[EMAIL PROTECTED]> writes: Michael> Hi Jean-Marc, >> I do not see why you remove isDeletedText and isInsertedText. These >> are typically helper functions and do not need to be methods at >> all. Michael> IIRC, isInsertedText() is not used at all. Do you know why

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. IIRC, isInsertedText() is not used at all. isDeletedText has been changed into a method of class Paragraph (where it belongs). This is also m

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> What is the final "latex" entry in the converter \converter It is a special flag telling to use the internal latex machinery. MJarc

Re: [Patch] Qt font caching fix

2006-05-24 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Andre Poenitz wrote: >> On Tue, May 23, 2006 at 12:52:14PM +0200, Jean-Marc Lasgouttes >> wrote: >>> I see no reason it would not work. If you want to check you could >>> add a lyxerr statement everytime a new QLFontIn

Re: [Patch] Qt font caching fix

2006-05-24 Thread Abdelrazak Younes
Andre Poenitz wrote: On Tue, May 23, 2006 at 12:52:14PM +0200, Jean-Marc Lasgouttes wrote: I see no reason it would not work. If you want to check you could add a lyxerr statement everytime a new QLFontInfo has to be created. I think you will see by yourself what happens. Seeing the confusion

Re: [Patch] Qt font caching fix

2006-05-24 Thread Abdelrazak Younes
Andre Poenitz wrote: On Tue, May 23, 2006 at 12:41:33PM +0200, Abdelrazak Younes wrote: So the trick was the '* &' instead of a simple '*'. Erm. Yes. I didn't know about that indeed and I actually _asked_ to the list what is the reason for the additional '&' but nobody answered. I've notic

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Angus Leeming
Enrico Forestieri <[EMAIL PROTECTED]> writes: > > What is the final "latex" entry in the converter > > \converter latex dvi2 "%%" "latex" > That's the extra flag thing. Thanks, Enrico. Angus

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 10:09:04AM +, Angus Leeming wrote: > What is the final "latex" entry in the converter > \converter latex dvi2 "%%" "latex" That's the extra flag thing. -- Enrico

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Angus Leeming
Joost Verburg <[EMAIL PROTECTED]> writes: > +if checkProg('DVI to DTL converter', ['dv2dt']) != ['', 'none'] and checkProg('DTL to DVI converter', > ['dt2dv']) != ['', 'none']: > + converter_entry = r'''\converter latex dvi2 "%%" "latex" > +\converter dvi2 dvi "python $$s/scripts/clean_dv

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 12:00:12PM +0200, Enrico Forestieri wrote: > On Wed, May 24, 2006 at 11:43:19AM +0200, Enrico Forestieri wrote: > > > Without pplatex, the dvi/ps > > output would be as if you had accepted all changes. > > Correction: without pplatex, the dvi/ps output would be a mess. >

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 11:43:19AM +0200, Enrico Forestieri wrote: > Without pplatex, the dvi/ps > output would be as if you had accepted all changes. Correction: without pplatex, the dvi/ps output would be a mess. What I said above is true when you uncheck "Show Changes in Output" *and* you have

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Jean-Marc, I think this one should go in. Shall I do it? I will Georg> send a revised version of my "autoview-logic" patch after this Georg> one is in, because it conflicts with this one. I really think Georg> that the "autoview-logic"

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 11:24:53AM +0200, Jean-Marc Lasgouttes wrote: > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > Enrico> It works perfectly for me. Remember that you have to install > Enrico> the .exe using two different names (symlinks are beyond > Enrico> Windows capa

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Gerz <[EMAIL PROTECTED]> writes: Michael> Hi, the attached patch adds trackChanges flags to various Michael> methods and includes some minor cleanups. Michael> The overall idea is that whenever you insert or erase text, Michael> you have to tell the corresponding method

Re: [patch] Windows: Add clean_dvi support to configure.py

2006-05-24 Thread Georg Baum
Joost Verburg wrote: > Angus Leeming wrote: >> Looks good. One quibble: the usual way to test if running on Windows is: >> >>if os.name == 'nt': >> >> Works irrespective of Windows flavour, apparently. > > OK. I changed that in the attached patch, makes no difference but looks > better. Je

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> It works perfectly for me. Remember that you have to install Enrico> the .exe using two different names (symlinks are beyond Enrico> Windows capabilities) the first one should be named Enrico> pplatex.exe and the second one dv

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> On Tue, May 23, 2006 at 02:25:53PM +0200, Jean-Marc Lasgouttes Enrico> wrote: >> What else is on the plate for 1.4.2? Enrico> It would be a real bonus to backport the fixed delimiters Enrico> patch. It is really a shame havin

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Enrico Forestieri
On Wed, May 24, 2006 at 10:16:51AM +0200, Edwin Leuven wrote: > Enrico Forestieri wrote: > > Hmm, this should not be necessary (just checked). Please, can you try > > the binary I am currently successfully using? You can find it in the > > attached gzipped tar archive. > > gives the same result a

Re: Towards LyX 1.4.2 [status update #1]

2006-05-24 Thread Edwin Leuven
Enrico Forestieri wrote: Hmm, this should not be necessary (just checked). Please, can you try the binary I am currently successfully using? You can find it in the attached gzipped tar archive. gives the same result as the executable i compiled using your patch (thanks for that one!!) the pr

Re: New (?) ct bug

2006-05-24 Thread Juergen Spitzmueller
Martin Vermeer wrote: > My previous fix for the numberless crashing bug reported by Jean-Marc > was a little too simple ;-/ Attached a better one. works, thanks! I didn't check if it fixes the other bug (your original patch fixed), though. Jürgen