source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Crudely accomodate for matrices by way of adjacent tables.
@ 2014-09-28 14:06 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2014-09-28 14:06 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-28 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28 14:06 mdocml: Crudely accomodate for matrices by way of adjacent tables kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).