From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s8SE69nm018501 for ; Sun, 28 Sep 2014 10:06:09 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s8SE69Eb031480; Sun, 28 Sep 2014 10:06:09 -0400 (EDT) Date: Sun, 28 Sep 2014 10:06:09 -0400 (EDT) Message-Id: <201409281406.s8SE69Eb031480@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Crudely accomodate for matrices by way of adjacent tables. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Crudely accomodate for matrices by way of adjacent tables. We don't do this nicely right now because eqn uses column ordering. Also add from/to support and to support. Modified Files: -------------- mdocml: eqn_html.c Revision Data ------------- Index: eqn_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/eqn_html.c,v retrieving revision 1.5 retrieving revision 1.6 diff -Leqn_html.c -Leqn_html.c -u -p -r1.5 -r1.6 --- eqn_html.c +++ eqn_html.c @@ -88,6 +88,11 @@ eqn_box(struct html *p, const struct eqn pilet = print_otag(p, TAG_MTR, 0, NULL); print_otag(p, TAG_MTD, 0, NULL); } + if (NULL != bp->parent && bp->parent->type == EQN_MATRIX) { + pilet = print_otag(p, TAG_MTABLE, 0, NULL); + print_otag(p, TAG_MTR, 0, NULL); + print_otag(p, TAG_MTD, 0, NULL); + } /* * If we're establishing a pile, start the table mode now. @@ -107,6 +112,8 @@ eqn_box(struct html *p, const struct eqn * single or double following expression. */ switch (bp->pos) { + case (EQNPOS_TO): + /* FALLTHROUGH */ case (EQNPOS_SUP): post = print_otag(p, TAG_MSUP, 0, NULL); break; @@ -118,6 +125,8 @@ eqn_box(struct html *p, const struct eqn case (EQNPOS_OVER): post = print_otag(p, TAG_MFRAC, 0, NULL); break; + case (EQNPOS_FROMTO): + /* FALLTHROUGH */ case (EQNPOS_SUBSUP): /* This requires two elements. */ post = print_otag(p, TAG_MSUBSUP, 0, NULL); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv