9.4 Bookeeping for Continued Fractions
In the first phase, the mfrac elements in a group carry attributes as in
<mfrac class="continued-mfrac">
with the exception of the bottom (internal) most leveles. The ‘cont’ parameter is
for determining whether the parent and the grandparent are frac elements marked as
continued.
if (node.hasAttributes()) {
Node cl = node.getAttributes().getNamedItem("class");
if (cl != null) { clValue = cl.getNodeValue(); }
}
-_-_-
if( (clValue != null)
&& clValue.equals("continued-mfrac") ) {
cont = 2;
} else { cont--; }
-_-_-