bool stared(string const & s)
{
- unsigned const n = s.size();
+ string::size_type const n = s.size();
return n && s[n - 1] == '*';
}
&& s.cat() == t.cat() && s.cs() == t.cs();
}
-bool operator!=(Token const & s, Token const & t)
-{
- return !(s == t);
-}
+// Angus' compiler says this is not needed
+//bool operator!=(Token const & s, Token const & t)
+//{
+// return !(s == t);
+//}
ostream & operator<<(ostream & os, Token const & t)
{
return false;
}
- int const cols = p->ncols();
+ MathInset::col_type const cols = p->ncols();
// save global variables
bool const saved_num = curr_num_;
curr_label_.erase();
// reading a row
- for (int col = 0; col < cols; ++col) {
+ for (MathInset::col_type col = 0; col < cols; ++col) {
//lyxerr << "reading cell " << row << " " << col << "\n";
parse_into(p->cell(col + row * cols), FLAG_BLOCK);
string const name = getArg('{', '}');
+ if (name == "math") {
+ matrix = MathAtom(new MathHullInset(LM_OT_SIMPLE));
+ parse_into(matrix->cell(0), 0);
+ return true;
+ }
+
if (name == "equation" || name == "equation*" || name == "displaymath") {
curr_num_ = (name == "equation");
curr_label_.erase();
else if (t.cat() == catParameter) {
Token const & n = getToken();
- array.push_back(MathAtom(new MathMacroArgument(n.character() - '0')));
+ array.push_back(MathAtom(new MathMacroArgument(n.character()-'0', code)));
}
else if (t.cat() == catBegin) {
return;
}
-/*
// Disabled
+#if 0
else if (t.cs() == "mbox") {
array.push_back(createMathInset(t.cs()));
// slurp in the argument of mbox
MathBoxInset * p = array.back()->asBoxInset();
//lyx::assert(p);
}
-*/
+#endif
+
else if (t.cs().size()) {
latexkeys const * l = in_word_set(t.cs());