void composite_box_rep::finalize () { int i, n= subnr (); lip= descend (ip, 0); rip= descend (ip, 1); for (i=0; i<n; i++) { path l= bs[i]->find_lip (); path r= bs[i]->find_rip (); /* cout << " i = " << i << "\n"; cout << " l = " << l << "\n"; cout << " r = " << r << "\n"; */ if (is_accessible (l) && is_accessible (r)) { if (is_decoration (lip) || path_less (reverse (l), reverse (lip))) lip= l; if (is_decoration (rip) || path_less (reverse (rip), reverse (r))) rip= r; } } /* cout << ((tree) (*((box_rep*) this))) << " " << ip << "\n"; cout << " lip= " << lip << "\n"; cout << " rip= " << rip << "\n"; */ }
void concater_rep::marker (path ip) { if (is_decoration (ip)) ip= path (0, ip); string fn_name= "cmr"; int sz= script (env->fn_size, env->index_level); font gfn (tex_font (fn_name, sz, (int) (env->magn*env->dpi))); box b= text_box (ip->next, ip->item, "", gfn, blue); a << line_item (MARKER_ITEM, OP_SKIP, b, HYPH_INVALID); }
inline bool box_rep::decoration () { return is_decoration (find_lip ()); }