tex2lyx: support rotated algorithm floats

LyX knows algorithm floats since ages. tex2lyx's support for rotated algorithm floats has simply been forgotten.
This commit is contained in:
Uwe Stöhr 2017-04-11 00:36:00 +02:00
parent d2ac0d2cf4
commit 818373ce4f

View File

@ -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";