+2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
+ * table.C (parse_table): recognize tex "\\cr" line ending
+
2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
else if (t.cs() == "ss")
os << "ß";
+ else if (t.cs() == "cr") {
+ // lyx can't handle \\cr
+ cerr << "Warning: Converting TeX '\\cr' to LaTeX '\\\\'."
+ << endl;
+ os << "\\\\";
+ }
+
else
os << t.asInput();
p.skip_spaces();
}
- else if (t.cs() == "tabularnewline" || t.cs() == "\\") {
+ else if (t.cs() == "tabularnewline" || t.cs() == "\\" ||
+ t.cs() == "cr") {
+ if (t.cs() == "cr")
+ cerr << "Warning: Converting TeX '\\cr' to LaTeX '\\\\'."
+ << endl;
// stuff before the line break
// and look ahead for stuff after the line break
os << HLINE << hlines << HLINE << LINE << read_hlines(p) << HLINE;