diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-09-28 14:06:09 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-09-28 14:06:09 +0000 |
commit | 5780c02f1388ea6049d16319ef3a305f1859680a (patch) | |
tree | 46da24b83ed593119bd30fc26341784d970bdce6 /eqn_html.c | |
parent | d6dd8aa69b82d133439dd5f648f21afc723ce7ef (diff) | |
download | mandoc-5780c02f1388ea6049d16319ef3a305f1859680a.tar.gz |
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.
Diffstat (limited to 'eqn_html.c')
-rw-r--r-- | eqn_html.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -88,6 +88,11 @@ eqn_box(struct html *p, const struct eqn_box *bp, int next) 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_box *bp, int next) * 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_box *bp, int next) 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); |