Hence, the Intertext inset is simply written as \intertext. LyX 2.4 will read it and treat it as ERT, in effect. But LyX 2.5 will create an Intertext inset when it reads it.

Thanks, now I understand how the inset is saved. Indeed, LyX 2.5 file simply contains related TeX code, so there is no versioning issue.

Can you post some example .lyx file how to use this feature?
I tried to use your patch but when trying simplest document
latex won't compile.

I add an example LyX file with this mail (lyxformat 640).

Also I regularly get crash 
/usr/include/c++/12/bits/stl_vector.h:1230: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::back() [with _Tp = lyx::Row::Element; _Alloc = std::allocator<lyx::Row::Element>; reference = lyx::Row::Element&]: Assertion '!this->empty()' failed.
Aborted

It seems GuiInputMethod::initializePositions() can be related. If you didn’t intentionally input with the input method, GuiInputMethod::processPreedit() should immediately return (and such a call of this function seems to happen only on Linux), so something strange may be happening here.

I’m going to check with it.

Koji

Attachment: Test.lyx
Description: Binary data

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to