>> Its in ofer 90% the exact value in pt. So my reversion keeps the size the
>> users wanted.
>
> I don't understand. How can you find out the exact value of \baselineskip if
> the font size and linespread are defined in a class file? This is not
> possible.

That's why I wrote in 90%. Usually you have single line space and nearly all document classes use 1.2 for the baselineskip then.

>> > Why don't you revert to ERT and keep the \baselineskip value?
>>
>> This is impossible since you can use baselineskip in all insets and
>> settings with a length combo.  Take for example the attached LyX file.
>
> Of course it is possible, You need to scan for the baselineskip value and do
> the appropriate conversion.

But all insets have different syntax. That would mean that I have to write a detection routine foe every inst. E.g. when I find baselineskip in a box I need to revert the whole box as TeX-code. This is a horror.
What I can do is to check also for the set line spacing. baselineskip is then

baselineskip  = fontsize * 1.2 * line spacing

This is then correct for far over 90% of all cases.

> Anyway, I think \baselineskip should not be
> offered everywhere. I think it only makes sense in vertical dimensions.

I think the user should decides where he want to use this length. If he for some some strange reason prefers to have an image with a width of 4\baselineskip, why should we forbid this?

regards Uwe

Reply via email to