Lines Matching refs:bp
51 eqn_box(struct termp *p, const struct eqn_box *bp)
55 if (bp->type == EQN_LIST ||
56 (bp->type == EQN_PILE && (bp->prev || bp->next)) ||
57 (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {
58 if (bp->parent->type == EQN_SUBEXPR && bp->prev != NULL)
60 term_word(p, bp->left != NULL ? bp->left : "(");
63 if (bp->font != EQNFONT_NONE)
64 term_fontpush(p, fontmap[(int)bp->font]);
66 if (bp->text != NULL)
67 term_word(p, bp->text);
69 if (bp->pos == EQNPOS_SQRT) {
72 eqn_box(p, bp->first);
73 } else if (bp->type == EQN_SUBEXPR) {
74 child = bp->first;
77 term_word(p, bp->pos == EQNPOS_OVER ? "/" :
78 (bp->pos == EQNPOS_SUP ||
79 bp->pos == EQNPOS_TO) ? "^" : "_");
84 if (bp->pos == EQNPOS_FROMTO ||
85 bp->pos == EQNPOS_SUBSUP) {
95 child = bp->first;
96 if (bp->type == EQN_MATRIX && child->type == EQN_LIST)
100 bp->type == EQN_PILE &&
108 if (bp->font != EQNFONT_NONE)
110 if (bp->type == EQN_LIST ||
111 (bp->type == EQN_PILE && (bp->prev || bp->next)) ||
112 (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {
114 term_word(p, bp->right != NULL ? bp->right : ")");
115 if (bp->parent->type == EQN_SUBEXPR && bp->next != NULL)
119 if (bp->top != NULL) {
121 term_word(p, bp->top);
123 if (bp->bottom != NULL) {