private void _Traverse(DelimitedBox db) { // FIXME: this is wrong according to TeXbook: whole delimitedbox should become one atom of type Inner. But that only applies to \left \right // formulations; not clear should apply to all uses of parens, and right now there may even be issues with function call spacing. Need to // look at this more. BoxPath dbpath = B; B = dbpath.Clone(); B.P.Add(new DelimitedBoxLink(db, DelimitedBoxLink.Which.Left)); Traverse(db.Left); B = dbpath.Clone(); B.P.Add(new DelimitedBoxLink(db, DelimitedBoxLink.Which.Contents)); Traverse(db.Contents); B = dbpath.Clone(); B.P.Add(new DelimitedBoxLink(db, DelimitedBoxLink.Which.Right)); Traverse(db.Right); }
public DelimitedBoxLink(DelimitedBox db, Which piece) : base(db) { _piece = piece; }