version 1.1, 2011/07/22 10:50:46 |
version 1.3, 2011/07/23 22:57:13 |
|
|
#include "out.h" |
#include "out.h" |
#include "term.h" |
#include "term.h" |
|
|
static void eqn_box(struct termp *p, const struct eqn_box *); |
static void eqn_box(struct termp *, const struct eqn_box *); |
static void eqn_box_post(struct termp *p, const struct eqn_box *); |
static void eqn_box_post(struct termp *, const struct eqn_box *); |
static void eqn_box_pre(struct termp *p, const struct eqn_box *); |
static void eqn_box_pre(struct termp *, const struct eqn_box *); |
static void eqn_text(struct termp *p, const struct eqn_box *); |
static void eqn_text(struct termp *, const struct eqn_box *); |
|
|
void |
void |
term_eqn(struct termp *p, const struct eqn *ep) |
term_eqn(struct termp *p, const struct eqn *ep) |
|
|
eqn_box_pre(struct termp *p, const struct eqn_box *bp) |
eqn_box_pre(struct termp *p, const struct eqn_box *bp) |
{ |
{ |
|
|
if (EQN_LIST == bp->type) |
|
term_word(p, "{"); |
|
if (bp->left) |
if (bp->left) |
term_word(p, bp->left); |
term_word(p, bp->left); |
} |
} |
|
|
eqn_box_post(struct termp *p, const struct eqn_box *bp) |
eqn_box_post(struct termp *p, const struct eqn_box *bp) |
{ |
{ |
|
|
if (EQN_LIST == bp->type) |
|
term_word(p, "}"); |
|
if (bp->right) |
if (bp->right) |
term_word(p, bp->right); |
term_word(p, bp->right); |
if (bp->above) |
|
term_word(p, "|"); |
|
} |
} |
|
|
static void |
static void |