davidfarmer / LaTeXtoLaTeX

Utilities for converting LaTeX markup to a standard form
1 stars 8 forks source link

Pretty-printing a PreTeXt "cd" element #16

Closed rbeezer closed 6 years ago

rbeezer commented 6 years ago

Similar to the c element,

<cd>foo</cd>

is verbatim and all whitespace is meant to be significant. It is rendered as a display. So the pretty-printed version introduces extra whitespace.

It can be structured with the line element. So the following is possible:

<cd>
  <line>foo</line>
  <line>bar</line>
</cd>

and might ohnly contain a single line element. So cd is much like me and cd\line is like md\mrow except we can't mess with whitespace that might be significant in context. Search sample article for kng2 (case-insensitive) for an example of the first form.

I did not see anything similar with pre but it is in the same spirit.

davidfarmer commented 6 years ago

cd is no longer prettyprinted

open a new issue if something special has to happen for cd containing line.

rbeezer commented 6 years ago

Looks good. Thanks.