Re: possible [patch] for bug 5909

2009-05-22 Thread Jürgen Spitzmüller
> > Actually, I have thought some more about it, and I think it is a > > fileformat > > > change. > > As mentioned yesterday, we simply change the output of files that use > the > nomencl.cfg file for setting the width. > > Why should anybody have changed the nomencl.cfg file? One need admin > pe

Re: possible [patch] for bug 5909

2009-05-22 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > This patch can also go to LyX 1.6.4 since it is no fileformat change (and > because I need this for my thesis ;-) ). Attached is furthermore a small > LyX testfile to show that and how our solution works. Actually, I have thought some more about it, and I think it is a fileform

Re: possible [patch] for bug 5909

2009-05-21 Thread Uwe Stöhr
> Well, you have added a Buffer option to latex(). Because I needed the buffer for nomenclWidest. I wasn't aware that buffer() can always be called > This cannot work, since InsetCommand::latex() has no such option. That's why I miss documentation how InsetCommand works. > the nomenclWidest >

Re: possible [patch] for bug 5909

2009-05-21 Thread Jürgen Spitzmüller
uwestoehr wrote: > Yes, see the attached patch. Well, you have added a Buffer option to latex(). This cannot work, since InsetCommand::latex() has no such option. Try the attached patch. I have also fixed some other things (the nomenclWidest only considered the first inset in a paragraph. This

Re: possible [patch] for bug 5909

2009-05-21 Thread Uwe Stöhr
>> > InsetPrintNomencl is an InsetCommand. So if latex is not implemented in >> > InsetPrintNomencl itself, InsetCommand::latex is called >> >> But latex is implemented in InsetPrintNomencl but it is still not called. > > Did you change the function to an int? Yes, see the attached patch. regard

Re: possible [patch] for bug 5909

2009-05-21 Thread Jürgen Spitzmüller
> > InsetPrintNomencl is an InsetCommand. So if latex is not implemented in > > > InsetPrintNomencl itself, InsetCommand::latex is called > > But latex is implemented in InsetPrintNomencl but it is still not called. Did you change the function to an int? > > If I got you right, you probably nee

Re: possible [patch] for bug 5909

2009-05-20 Thread Uwe Stöhr
>> The only problem that remains is that I don't know where to call >> InsetPrintNomencl::latex >> so that this code appears in the LaTeX output before the command >> \printnomenclature. >> >> I thought I could do the same as for >> InsetPrintIndex::latex >> but I can't find out where this routine

Re: possible [patch] for bug 5909

2009-05-20 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > Attached is a patch that calculates the nomenclature width automatically > and exactly. > > The only problem that remains is that I don't know where to call > InsetPrintNomencl::latex > so that this code appears in the LaTeX output before the command > \printnomenclature. > > I t

possible [patch] for bug 5909

2009-05-20 Thread Uwe Stöhr
Attached is a patch that calculates the nomenclature width automatically and exactly. The only problem that remains is that I don't know where to call InsetPrintNomencl::latex so that this code appears in the LaTeX output before the command \printnomenclature. I thought I could do the same as f