commit 818373ce4f523c9cee6d369d750e43b0bdc24760 Author: Uwe Stöhr <uwesto...@lyx.org> Date: Tue Apr 11 00:36:00 2017 +0200
tex2lyx: support rotated algorithm floats LyX knows algorithm floats since ages. tex2lyx's support for rotated algorithm floats has simply been forgotten. --- src/tex2lyx/text.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 0f7fb8c..d28ed5a 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -1466,13 +1466,16 @@ void parse_environment(Parser & p, ostream & os, bool outer, } else if (unstarred_name == "sidewaysfigure" - || unstarred_name == "sidewaystable") { + || unstarred_name == "sidewaystable" + || unstarred_name == "sidewaysalgorithm") { eat_whitespace(p, os, parent_context, false); parent_context.check_layout(os); if (unstarred_name == "sidewaysfigure") begin_inset(os, "Float figure\n"); - else + else if (unstarred_name == "sidewaystable") begin_inset(os, "Float table\n"); + else if (unstarred_name == "sidewaysalgorithm") + begin_inset(os, "Float algorithm\n"); os << "wide " << convert<string>(is_starred) << "\nsideways true" << "\nstatus open\n\n";