This patch fixes one problem of bug 2420: tex2lyx does recognize greyed out notes, but it does not remove the definition of the lyxgreyedout environment. This patch changes that: The definition of the lyxgreyedout is now removed in the same way as the definitions of other LyX environments. This goes in now since it is uncontroversial.
Georg
Index: src/tex2lyx/preamble.C =================================================================== --- src/tex2lyx/preamble.C (Revision 14491) +++ src/tex2lyx/preamble.C (Arbeitskopie) @@ -406,7 +406,8 @@ LyXTextClass const parse_preamble(Parser ss << '{' << p.verbatim_item() << '}'; ss << '{' << p.verbatim_item() << '}'; if (name != "lyxcode" && name != "lyxlist" && - name != "lyxrightadress" && name != "lyxaddress") + name != "lyxrightadress" && + name != "lyxaddress" && name != "lyxgreyedout") h_preamble << ss.str(); }