From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Crudely accomodate for matrices by way of adjacent tables.
Date: Sun, 28 Sep 2014 10:06:09 -0400 (EDT) [thread overview]
Message-ID: <201409281406.s8SE69Eb031480@krisdoz.my.domain> (raw)
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
reply other threads:[~2014-09-28 14:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201409281406.s8SE69Eb031480@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).