Attached is a patch to support framed and shaded notes in in tex2lyx.
OK for branch?

regards Uwe
Index: text.cpp
===================================================================
--- text.cpp	(revision 21763)
+++ text.cpp	(working copy)
@@ -786,6 +786,26 @@
 		p.skip_spaces();
 	}
 
+	else if (name == "framed") {
+		eat_whitespace(p, os, parent_context, false);
+		parent_context.check_layout(os);
+		begin_inset(os, "Note Framed\n");
+		os << "status open\n";
+		parse_text_in_inset(p, os, FLAG_END, outer, parent_context);
+		end_inset(os);
+		p.skip_spaces();
+	}
+
+	else if (name == "shaded") {
+		eat_whitespace(p, os, parent_context, false);
+		parent_context.check_layout(os);
+		begin_inset(os, "Note Shaded\n");
+		os << "status open\n";
+		parse_text_in_inset(p, os, FLAG_END, outer, parent_context);
+		end_inset(os);
+		p.skip_spaces();
+	}
+
 	else if (!parent_context.new_layout_allowed)
 		parse_unknown_environment(p, name, os, FLAG_END, outer,
 					  parent_context);

Reply via email to