Pavel Sanda wrote:
if you are working on this, please consider the following bug: http://bugzilla.lyx.org/show_bug.cgi?id=3095
Hi,
I can't remember if the latest rework of that patch, that was including regexp facilities, was working when searching for environments as well. If not, in principle it should be possible to easily adapt it, when only searching is wanted. If one wants to go further and allow for replacement, then it is probably not hard to do either, because you can imagine regexp-based replacement of `\1' or `#1' with the matching text, where the matching text was constrained (in my patch) to only be a "closed" text or LaTeX segment (with correctly matching {} braces). So, after replacement, you should end-up with a correct text or LaTeX segment to be reimported within LyX. Can anyone give me a hint on what to call, in the LyX code, in order to perform appropriately such an import action ? (I wouldn't like to invoke relyx for that) -- i.e., transform a LaTeX segment (or a text segment in case "ignore format" is selected) into a Text object. Thanx, bye, T.