Re: InseetExternal can now preview stuff too

2003-10-30 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: Fantastic effort! That should be said with irony, since I had no idea what I was doing... However, the stuff within the LaTeXblock looks wrong. 1. Is the UpdateResult really $$Basename.pstex_t? that's what I mean... my brain was seriously fuddled

Re: InseetExternal can now preview stuff too

2003-10-30 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: http://wiki.lyx.org/pmwiki.php/ExternalTemplates/ExternalTemplates Well I've made a start, but really I think that this info should go in the external_templates file

Re: InseetExternal can now preview stuff too

2003-10-30 Thread Angus Leeming
Christian Ridderström wrote: that's what I mean... my brain was seriously fuddled when I did However, this patch has been tested with an tgif-figure. The template allows: - Viewing in LyX - View DVI - View PDF - View PdfLaTeX with a small caveat: The size of the figure will be

Re: InseetExternal can now preview stuff too

2003-10-30 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: > Fantastic effort! That should be said with irony, since I had no idea what I was doing... > However, the stuff within the LaTeXblock looks wrong. > 1. Is the UpdateResult really "$$Basename.pstex_t"? that's what I mean... my brain was seriously

Re: InseetExternal can now preview stuff too

2003-10-30 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: > Christian Ridderström wrote: > > > On Thu, 23 Oct 2003, Angus Leeming wrote: > > > http://wiki.lyx.org/pmwiki.php/ExternalTemplates/ExternalTemplates > > Well I've made a start, but really I think that this info should go in > the external_templates

Re: InseetExternal can now preview stuff too

2003-10-30 Thread Angus Leeming
Christian Ridderström wrote: > that's what I mean... my brain was seriously fuddled when I did > However, this patch has been tested with an tgif-figure. > > The template allows: > - Viewing in LyX > - View DVI > - View PDF > - View PdfLaTeX > > with a small caveat: > The size of the

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
This patch allows me to see external tgif insets on screen and as dvi. An annoying problem was that you are not allowed to have comments inside items... i.e. it breaks if you have something like: Template Tgif # a comment GuiName Tgif: $$Basename ... /Christian -- Christian

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Angus Leeming
Christian Ridderström wrote: This patch allows me to see external tgif insets on screen and as dvi. Fantastic effort! However, the stuff within the LaTeXblock looks wrong. 1. Is the UpdateResult really $$Basename.pstex_t? 2. '\input' doesn't require 'InputOrWarn' or 'WarnNotFound'.

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: I guess that one of these templates needs extensive in-place documentation (to act as a template for the template?) I created an area where you can add some documentation/comments on the templates...

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: I guess that one of these templates needs extensive in-place documentation (to act as a template for the template?) I created an area where you can add some documentation/comments on the templates...

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: Well I've made a start, but really I think that this info should go in the external_templates file itself. Oh, I agree, but since I couldn't get comments inside a template that seemed difficult right now... /Christian -- Christian Ridderström

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
This patch allows me to see external tgif insets on screen and as dvi. An annoying problem was that you are not allowed to have comments inside items... i.e. it breaks if you have something like: Template Tgif # a comment GuiName "Tgif: $$Basename" ... /Christian -- Christian

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Angus Leeming
Christian Ridderström wrote: > This patch allows me to see external tgif insets on screen and as > dvi. Fantastic effort! However, the stuff within the LaTeXblock looks wrong. 1. Is the UpdateResult really "$$Basename.pstex_t"? 2. '\input' doesn't require 'InputOrWarn' or 'WarnNotFound'.

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > I guess that one of these templates needs extensive in-place > documentation (to act as a template for the template?) I created an area where you can add some documentation/comments on the templates...

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > >> I guess that one of these templates needs extensive in-place >> documentation (to act as a template for the template?) > > I created an area where you can add some documentation/comments on > the templates... > >

Re: InseetExternal can now preview stuff too

2003-10-29 Thread Christian Ridderström
On Wed, 29 Oct 2003, Angus Leeming wrote: > Well I've made a start, but really I think that this info should go in > the external_templates file itself. Oh, I agree, but since I couldn't get comments inside a template that seemed difficult right now... /Christian -- Christian Ridderström

Re: InseetExternal can now preview stuff too

2003-10-28 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Garst R. Reese wrote: Looks like a good candidate for examples to show how you did that :) No more than * create a figure using xfig. * open LyX. * open the preferences dialog, turn on preview generation. I did the following, is that what you

Re: InseetExternal can now preview stuff too

2003-10-28 Thread Angus Leeming
Christian Ridderström wrote: I did the following, is that what you meant? Preferences-LookFeel/Misc-Instant_Preview=On * new file. * Insert-File-External Material Select the xfig template choose the file select the display in LyX checkbutton set the

Re: InseetExternal can now preview stuff too

2003-10-28 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > Garst R. Reese wrote: > > > Looks like a good candidate for examples to show how you did that :) > > No more than > * create a figure using xfig. > * open LyX. > * open the preferences dialog, turn on preview generation. I did the following, is that

Re: InseetExternal can now preview stuff too

2003-10-28 Thread Angus Leeming
Christian Ridderström wrote: > I did the following, is that what you meant? > Preferences->Look/Misc->Instant_Preview=On > >> * new file. >> * Insert-File->External Material >> Select the xfig template >> choose the file >> select the display in LyX checkbutton >>

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Garst R. Reese wrote: Looks like a good candidate for examples to show how you did that :) No more than * create a figure using xfig. * open LyX. * open the preferences dialog, turn on preview generation. * new file. * Insert-File-External Material Select the xfig template

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Garst R. Reese wrote: Looks like a good candidate for examples to show how you did that :) Maybe Garst is thinking about the External Material template? I'm feeling an itch to see if I can get this working for TGif... is this stuff comitted to

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: Maybe Garst is thinking about the External Material template? I'm feeling an itch to see if I can get this working for TGif... is this stuff comitted to latest CVS? Yes. See lib/external_templates for what you will need to write. I guess that one of these

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: No more than * create a figure using xfig. * open LyX. * open the preferences dialog, turn on preview generation. * new file. * Insert-File-External Material Select the xfig template choose the file select the display in

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: No more than * create a figure using xfig. * open LyX. * open the preferences dialog, turn on preview generation. * new file. * Insert-File-External Material Select the xfig template choose the file

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Hmm... lyx-xforms crashes by just trying to insert an External Xfig template (i.e. regardless of preview settings etc). /Christian -- Christian Ridderström http://www.md.kth.se/~chr

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: Hmm... lyx-xforms crashes by just trying to insert an External Xfig template (i.e. regardless of preview settings etc). Then I've f**ked up. Apologies for that. Does the same happen with the Qt frontend? Do you have

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Nope. Could you provide a backtrace? Sure... how do I do that? (You don't mean debug the output of some debug options I take it) /Christian -- Christian Ridderström http://www.md.kth.se/~chr

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Andre Poenitz
On Thu, Oct 23, 2003 at 12:20:11PM +0200, Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Nope. Could you provide a backtrace? Sure... how do I do that? (You don't mean debug the output of some debug options I take it) No. The

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Nope. Could you provide a backtrace? Sure... how do I do that? (You don't mean debug the output of some debug options I take it) Run lyx from within gdb. $ cd $BUILD_TREE}/src $ gdb

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Hmm... lyx-xforms crashes by just trying to insert an External Xfig template (i.e. regardless of preview settings etc). Then I've f**ked up. Apologies for that. Does the same happen with the Qt frontend? Do you

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Nope. Could you provide a backtrace? Is it the output of: gdb --core=core backtrace that you want? /Christian (who had compiled without debug information and is compiling again) -- Christian

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Nope. Could you provide a backtrace? Is it the output of: gdb --core=core backtrace that you want? Its better to do it in-place rather than try and extract info from a core.

Producing backtrace (was Re: InseetExternal can now preview stuff too)

2003-10-23 Thread Christian Ridderström
Just to make it easier for the next person wondering how to produce a backtrace... Run lyx from within gdb. $ cd ${BUILD_TREE}/src $ gdb ./lyx-xforms (gdb) r [lyx is launched, make it crash.] (gdb) bt I've put these instructions here as well:

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
It would be best if you first turned off optimisation in the relevant parts of the code. Eg $ cd ${SOURCE_TREE}/src $ (cd insets touch render_*.C insetexternal.C External*.C) $ (cd frontends/xforms touch FormExternal.C forms/form_external.fd) $ (cd frontends/qt2 touch QExternal.C

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: On Thu, 23 Oct 2003, Angus Leeming wrote: Christian Ridderström wrote: Hmm... lyx-xforms crashes by just trying to insert an External Xfig template (i.e. regardless of preview settings etc). Then I've f**ked up. Apologies for that. Does the same happen

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: $ cd ${SOURCE_TREE}/src $ (cd insets touch render_*.C insetexternal.C External*.C) $ (cd frontends/xforms touch FormExternal.C forms/form_external.fd) $ (cd frontends/qt2 touch QExternal.C ui/QExternal*.ui) $ make CXXFLAGS='-g -W -Wall' Ok, I did the above,

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Garst R. Reese wrote: > Looks like a good candidate for examples to show how you did that :) No more than * create a figure using xfig. * open LyX. * open the preferences dialog, turn on preview generation. * new file. * Insert-File->External Material Select the xfig template

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > Garst R. Reese wrote: > > > Looks like a good candidate for examples to show how you did that :) > Maybe Garst is thinking about the External Material template? I'm feeling an itch to see if I can get this working for TGif... is this stuff comitted

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > Maybe Garst is thinking about the External Material template? > > I'm feeling an itch to see if I can get this working for TGif... is > this stuff comitted to latest CVS? Yes. See lib/external_templates for what you will need to write. I guess that one of these

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > No more than > * create a figure using xfig. > * open LyX. > * open the preferences dialog, turn on preview generation. > * new file. > * Insert-File->External Material > Select the xfig template > choose the file > select the

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > >> No more than >> * create a figure using xfig. >> * open LyX. >> * open the preferences dialog, turn on preview generation. >> * new file. >> * Insert-File->External Material >> Select the xfig template >>

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: Hmm... lyx-xforms crashes by just trying to insert an External Xfig template (i.e. regardless of preview settings etc). /Christian -- Christian Ridderström http://www.md.kth.se/~chr

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > > Hmm... lyx-xforms crashes by just trying to insert an External Xfig > template (i.e. regardless of preview settings etc). Then I've f**ked up. Apologies for that. Does the same happen with the Qt frontend? Do you

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > Christian Ridderström wrote: > > Nope. Could you provide a backtrace? Sure... how do I do that? (You don't mean debug the output of some debug options I take it) /Christian -- Christian Ridderström

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Andre Poenitz
On Thu, Oct 23, 2003 at 12:20:11PM +0200, Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > > > Christian Ridderström wrote: > > > > Nope. Could you provide a backtrace? > > Sure... how do I do that? (You don't mean debug the output of some > debug options I take it)

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > >> Christian Ridderström wrote: >> >> Nope. Could you provide a backtrace? > > Sure... how do I do that? (You don't mean debug the output of some > debug options I take it) Run lyx from within gdb. $ cd

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > Christian Ridderström wrote: > > > > Hmm... lyx-xforms crashes by just trying to insert an External Xfig > > template (i.e. regardless of preview settings etc). > > Then I've f**ked up. Apologies for that. Does the same happen with > the Qt

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
On Thu, 23 Oct 2003, Angus Leeming wrote: > Christian Ridderström wrote: > > Nope. Could you provide a backtrace? Is it the output of: gdb --core=core backtrace that you want? /Christian (who had compiled without debug information and is compiling again) -- Christian

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > >> Christian Ridderström wrote: >> >> Nope. Could you provide a backtrace? > > Is it the output of: > gdb --core=core > backtrace > that you want? Its better to do it in-place rather than try and extract info from a

Producing backtrace (was Re: InseetExternal can now preview stuff too)

2003-10-23 Thread Christian Ridderström
Just to make it easier for the next person wondering how to produce a backtrace... > Run lyx from within gdb. > $ cd ${BUILD_TREE}/src > $ gdb ./lyx-xforms > (gdb) r > [lyx is launched, make it crash.] > (gdb) bt I've put these instructions here as well:

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Christian Ridderström
> It would be best if you first turned off optimisation in the relevant > parts of the code. Eg > > $ cd ${SOURCE_TREE}/src > $ (cd insets && touch render_*.C insetexternal.C External*.C) > $ (cd frontends/xforms && touch FormExternal.C forms/form_external.fd) > $ (cd frontends/qt2 && touch

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: > On Thu, 23 Oct 2003, Angus Leeming wrote: > >> Christian Ridderström wrote: >> > >> > Hmm... lyx-xforms crashes by just trying to insert an External >> > Xfig template (i.e. regardless of preview settings etc). >> >> Then I've f**ked up. Apologies for that. Does

Re: InseetExternal can now preview stuff too

2003-10-23 Thread Angus Leeming
Christian Ridderström wrote: >> $ cd ${SOURCE_TREE}/src >> $ (cd insets && touch render_*.C insetexternal.C External*.C) >> $ (cd frontends/xforms && touch FormExternal.C >> forms/form_external.fd) $ (cd frontends/qt2 && touch QExternal.C >> ui/QExternal*.ui) $ make CXXFLAGS='-g -W -Wall' > >

InseetExternal can now preview stuff too

2003-10-22 Thread Angus Leeming
The preview code is starting to show its age and needs a clean-up but the inset's interface with it is starting to look Ok. Attached is a screen shot for any xfig users out there... -- Angusattachment: snapshot7.png

Re: InseetExternal can now preview stuff too

2003-10-22 Thread Garst R. Reese
Looks like a good candidate for examples to show how you did that :) Garst Angus Leeming wrote: The preview code is starting to show its age and needs a clean-up but the inset's interface with it is starting to look Ok. Attached is a screen shot for any xfig users out there... --

InseetExternal can now preview stuff too

2003-10-22 Thread Angus Leeming
The preview code is starting to show its age and needs a clean-up but the inset's interface with it is starting to look Ok. Attached is a screen shot for any xfig users out there... -- Angus<>

Re: InseetExternal can now preview stuff too

2003-10-22 Thread Garst R. Reese
Looks like a good candidate for examples to show how you did that :) Garst Angus Leeming wrote: > > The preview code is starting to show its age and needs a clean-up but > the inset's interface with it is starting to look Ok. > > Attached is a screen shot for any xfig users out there... > >