Am 26.07.2010 00:32, schrieb Richard Heck:

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.

I thought the worry was that there is no way to determine the fontsize. If it's 
default, which it is
in most cases by far, then, as Jurgen said, you can't sensibly approximate 
\baselineskip because the
font size and linespread are defined in the class file, not in LyX.

The class the defines the possible font sizes. You specify the font size in the 
document settings.
The problem is in my opinion not the lyx2lyx part. I only problems to look into BufferParam fontsize. But this is only my talentness.

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.

Why do you need to revert the whole box? I'm not sure I understand this.

What else should I do if the user sets e.g. a box height of 4\baselineskip?

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?

We don't forbid it. ERT would work perfectly well for that. But I'm not sure we 
want to offer every
possibility for every case. It just confuses people.

Why is this confusion? Users are already clever enough to understand that a box width of 13% text height is quite unuseful, although LyX offers this since ages.

I'm now in holidays and leave it to you to decide what to do with my patch.

regards Uwe

Reply via email to