Andrew Corrigan wrote:
Thank you for the suggestion Sue. Although, unless I misunderstand, that solution isn't really sufficient for me. The specific problem I have with this behavior is that I'll often make a new line, choose its type (Lemma, Proof, Theorem, etc...) and then realize I want to copy and paste something from some other line and navigate away from the line which immediately causes it to be deleted, slowing me down a lot since I need to make the line again and choose its type.

I was hoping to reconfigure the present behavior of Lyx rather than to work around it.
There is no way of disabling this.
I think the rationale is, that allowing blank lines will tend to accumulate
blank lines here and there in documents.  And then some people will
be pissed off for having to clean up this manually, while others will
wonder why their blank lines don't print. For latex certainly won't
print them for you! Quite unlike other word processors, therefore LyX
removes the impossible line.

I occationally get the same problem, but I have a few workarounds:

Avoid by planning:
Don't create an environment when you're going to start with a paste.
Go copy stuff _first_. This allows a nice optimization - if you're
going to copy the first part of some Lemma, start marking at the
end of the previous line. That way, you copy the paragraph break
and Lemma environment itself, so you can paste it
without having to create any paragraph at all.  This speeds up editing!

If you can't use the speedup trick, just copy first, then create
the environment and paste into it.  Yes - this is a different way
of working from what you're used to, but it is just as fast
and you'll soon get used to it if you do it this way.

Another tip, you don't have to set the environment type
right away.  Just type enter, get a standard paragraph, type or paste.
If you end up having lyx eat your empty paragraph, you loose
much less time as you didn't waste time setting the environment. You can
do that later, when you actually have written/pasted something.

Avoid by workaround:
If the problem is unavoidable - type ctrl+space to insert a protected
space on the line as a placeholder. You may remove it later.  Or
type some word supposed to go before or after the stuff you're going to
paste.


Helge Hafting

Reply via email to