+ if (defining()) {
+ drawStr(pi, texfont, x, y, name());
+ return;
+ }
+
+ if (editing()) {
+ int h = y - ascent() + 2 + expanded_.ascent();
+ drawStr(pi, font_, x + 3, h, name());
+
+ int const w = mathed_string_width(font_, name());
+ expanded_.draw(pi, x + w + 12, h);
+ h += expanded_.descent();
+
+ int lasc;
+ int ldes;
+ int lwid;
+ mathed_string_dim(font_, "#1: ", lasc, ldes, lwid);
+
+ for (idx_type i = 0; i < nargs(); ++i) {
+ MathXArray const & c = xcell(i);
+ h += max(c.ascent(), lasc) + 5;
+ c.draw(pi, x + lwid, h);
+ char str[] = "#1:";
+ str[1] += static_cast<char>(i);
+ drawStr(pi, texfont, x + 3, h, str);
+ h += max(c.descent(), ldes) + 5;
+ }
+ return;
+ }
+
+ expanded_.draw(pi, x, y);